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
BUG: DataFrame reductions with object dtype and axis=1
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 208bbfa10b9b2..050647b9e0ee5 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -814,7 +814,7 @@ Numeric ^^^^^^^ - Bug in :meth:`DataFrame.add` cannot apply ufunc when inputs contain mixed DataFrame typ...
- [x] closes #49603 (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/50224
2022-12-13T04:24:31Z
2023-02-11T21:28:13Z
null
2023-03-02T01:02:50Z
DEPR: deprecate Index.is_categorical
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 3d0d6bc5d27f2..269c042ae4812 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -453,7 +453,7 @@ Other API changes Deprecations ~~~~~~~~~~~~ -- +- :meth:`Index.is_categorical` has been deprecated. Use...
- [ ] progress towards https://github.com/pandas-dev/pandas/issues/50042 - [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/devel...
https://api.github.com/repos/pandas-dev/pandas/pulls/50223
2022-12-13T04:14:47Z
2022-12-13T09:03:07Z
null
2022-12-13T09:07:05Z
REF: use astype_array instead of astype_nansafe
diff --git a/pandas/_libs/tslibs/np_datetime.pyx b/pandas/_libs/tslibs/np_datetime.pyx index c4f7812cea107..9db3f7cb4648e 100644 --- a/pandas/_libs/tslibs/np_datetime.pyx +++ b/pandas/_libs/tslibs/np_datetime.pyx @@ -312,10 +312,10 @@ cpdef ndarray astype_overflowsafe( """ if values.descr.type_num == dtype.ty...
Trying to ensure we have only one astype behavior. The BaseParser change _could_ change behavior if we can get there with dt64/td64 data (that includes at least one NaT) and an integer dtype, but we don't have any test cases that get there with dt64/td64 and it isn't clear to me if it is possible. If it is, the non...
https://api.github.com/repos/pandas-dev/pandas/pulls/50222
2022-12-13T01:50:09Z
2022-12-17T20:01:28Z
2022-12-17T20:01:28Z
2022-12-17T20:07:18Z
Initialize row data frame with list
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9f13471d0aa3f..a4d0882ec75ab 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -627,6 +627,7 @@ def __init__( data=None, index: Axes | None = None, columns: Axes | None = None, + direction: list =["arrow",None...
[X ] closes #48479(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/contri...
https://api.github.com/repos/pandas-dev/pandas/pulls/50221
2022-12-13T01:17:05Z
2022-12-13T18:49:49Z
null
2022-12-13T18:49:49Z
Initialize row data frame with list
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9f13471d0aa3f..a4d0882ec75ab 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -627,6 +627,7 @@ def __init__( data=None, index: Axes | None = None, columns: Axes | None = None, + direction: list =["arrow",None...
- [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/...
https://api.github.com/repos/pandas-dev/pandas/pulls/50220
2022-12-13T01:08:03Z
2022-12-13T01:10:51Z
null
2022-12-13T01:10:51Z
ENH: handle nonexistent shift for ZoneInfo
diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx index a54050fdf3cf2..547286bd40b64 100644 --- a/pandas/_libs/tslibs/tzconversion.pyx +++ b/pandas/_libs/tslibs/tzconversion.pyx @@ -240,6 +240,8 @@ timedelta-like} str stamp Localizer info = Localizer(tz, creso=cr...
- [ ] 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/50219
2022-12-13T00:41:27Z
2023-01-03T21:02:21Z
2023-01-03T21:02:21Z
2023-01-03T21:40:20Z
ENH: implement Float16Engine
diff --git a/pandas/_libs/index_class_helper.pxi.in b/pandas/_libs/index_class_helper.pxi.in index b9c02ba64f69c..8567e2c112708 100644 --- a/pandas/_libs/index_class_helper.pxi.in +++ b/pandas/_libs/index_class_helper.pxi.in @@ -63,3 +63,15 @@ cdef class {{name}}Engine(IndexEngine): {{endfor}} + + +class Float16En...
cc @topper-123 If we do go down this path, I'll try to fix the xfails before merging.
https://api.github.com/repos/pandas-dev/pandas/pulls/50218
2022-12-12T23:31:18Z
2022-12-20T22:18:52Z
null
2022-12-20T23:46:22Z
REF: de-duplicate period-dispatch
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 69b7d5a220d24..63940741c3fe3 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -4,6 +4,7 @@ datetime, timedelta, ) +from functools import wraps import operator from typing im...
@phofl you should be able to re-use with _accumulate to fix the PeriodDtype-with-Nat case
https://api.github.com/repos/pandas-dev/pandas/pulls/50215
2022-12-12T23:00:01Z
2022-12-13T19:25:06Z
2022-12-13T19:25:06Z
2022-12-13T21:44:22Z
REF: Move base indexes import in interval array
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 3028e276361d3..38e9733723230 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -89,7 +89,6 @@ extract_array, ) from pandas.core.indexers import check_array_indexer -from pandas.core.indexes.base i...
cc @jbrockmendel Nice! This will allow us to import BaseMaskedArray top level in base.
https://api.github.com/repos/pandas-dev/pandas/pulls/50212
2022-12-12T21:56:56Z
2022-12-13T02:23:37Z
2022-12-13T02:23:37Z
2022-12-13T22:31:50Z
Backport PR #50205 on branch 1.5.x (CI minimum mpl version everywhere)
diff --git a/ci/deps/actions-38-downstream_compat.yaml b/ci/deps/actions-38-downstream_compat.yaml index fd12b6f9a935d..f62f01a03671f 100644 --- a/ci/deps/actions-38-downstream_compat.yaml +++ b/ci/deps/actions-38-downstream_compat.yaml @@ -31,7 +31,7 @@ dependencies: - gcsfs - jinja2 - lxml - - matplotlib + ...
Backport PR #50205: CI minimum mpl version everywhere closes #50210
https://api.github.com/repos/pandas-dev/pandas/pulls/50211
2022-12-12T20:46:27Z
2022-12-13T13:41:00Z
2022-12-13T13:41:00Z
2022-12-13T13:41:00Z
CLN: Remove unsupported skips of pyarrow versions
diff --git a/pandas/tests/extension/base/casting.py b/pandas/tests/extension/base/casting.py index 0eb8123e6bdb8..6e1795b150b27 100644 --- a/pandas/tests/extension/base/casting.py +++ b/pandas/tests/extension/base/casting.py @@ -51,9 +51,7 @@ def test_astype_str(self, data): "nullable_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/50208
2022-12-12T19:16:08Z
2022-12-12T21:18:30Z
2022-12-12T21:18:30Z
2022-12-12T21:18:40Z
CI minimum mpl version everywhere
diff --git a/ci/deps/actions-38-downstream_compat.yaml b/ci/deps/actions-38-downstream_compat.yaml index 15ce02204ee99..bc3c4fbde2712 100644 --- a/ci/deps/actions-38-downstream_compat.yaml +++ b/ci/deps/actions-38-downstream_compat.yaml @@ -34,7 +34,7 @@ dependencies: - gcsfs - jinja2 - lxml - - matplotlib + ...
- [ ] closes #50202 (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/50205
2022-12-12T16:34:54Z
2022-12-12T17:04:45Z
2022-12-12T17:04:44Z
2022-12-12T20:45:53Z
Backport PR #48660 on branch 1.5.x (Fix Excel-specific border styles)
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 43021fcbc13fb..620e3806a33b5 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -1594,8 +1594,9 @@ "\n", "\n", "- Only CSS2 named colors and hex colors of the form `#rgb` or `#r...
#48660
https://api.github.com/repos/pandas-dev/pandas/pulls/50204
2022-12-12T16:33:44Z
2022-12-12T22:03:52Z
2022-12-12T22:03:52Z
2023-01-25T18:57:44Z
Backport PR #49212 on branch 1.5.x (Style concats)
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index 808b609700193..36dce687eb91e 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -26,7 +26,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ -- +- Bug when chaining several :meth:`.Styler.concat` calls, only ...
Backport PR #49212 on branch 1.5.x (Style concats) - [x] closes #49207 - [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/dev...
https://api.github.com/repos/pandas-dev/pandas/pulls/50203
2022-12-12T16:32:55Z
2022-12-12T19:17:15Z
2022-12-12T19:17:14Z
2022-12-12T20:15:28Z
WIP Does a smaller env fix CI?
diff --git a/ci/deps/actions-38-downstream_compat.yaml b/ci/deps/actions-38-downstream_compat.yaml index 15ce02204ee99..fcd453b9d9fee 100644 --- a/ci/deps/actions-38-downstream_compat.yaml +++ b/ci/deps/actions-38-downstream_compat.yaml @@ -39,7 +39,6 @@ dependencies: - numexpr - openpyxl - odfpy - - pandas-g...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50201
2022-12-12T16:06:52Z
2022-12-12T16:26:16Z
null
2022-12-12T16:26:17Z
Fix some dosctring RT02 error
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 38e9733723230..3c6686b5c0173 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -1368,7 +1368,7 @@ def closed(self) -> IntervalClosedType: Returns ------- - new_index : %(klass)...
- [ ] 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/50197
2022-12-12T06:37:15Z
2022-12-13T13:26:48Z
2022-12-13T13:26:48Z
2022-12-15T09:19:35Z
DEPR: deprecate Index.is_interval
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 605f1d4b26e13..c42f02c0be780 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -616,6 +616,7 @@ Deprecations - :meth:`Index.is_floating` has been deprecated. Use :func:`pandas.api.types.is_float_dtype` ...
- [ ] progress towards https://github.com/pandas-dev/pandas/issues/50042 - [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/devel...
https://api.github.com/repos/pandas-dev/pandas/pulls/50196
2022-12-12T05:56:16Z
2023-01-24T09:51:52Z
2023-01-24T09:51:52Z
2023-01-24T09:52:25Z
API: ensure IntervalIndex.left/right are 64bit if numeric, part II
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 2672e964736f0..f47ab83b6bde1 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -1787,5 +1787,7 @@ def _maybe_convert_platform_interval(values) -> ArrayLike: values = extract_array(values, extrac...
- [ ] 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/50195
2022-12-12T04:04:42Z
2023-01-10T15:41:18Z
2023-01-10T15:41:18Z
2023-01-10T15:48:29Z
ENH: Added string_as_repr method
diff --git a/pandas/io/formats/string.py b/pandas/io/formats/string.py index 071afc059b166..5c3f24cc93660 100644 --- a/pandas/io/formats/string.py +++ b/pandas/io/formats/string.py @@ -191,6 +191,9 @@ def _fit_strcols_to_terminal_width(self, strcols: list[list[str]]) -> str: strcols = self._get_strcols() ...
Adresses the issue #46744 The issue's author suggested creating a new module for this function/method, however, I think it is not a viable solution for a contributor to do. Instead, I added this method to string.py, however, I'm not sure if that's the right place for it to be added.
https://api.github.com/repos/pandas-dev/pandas/pulls/50194
2022-12-12T00:06:15Z
2022-12-13T02:25:18Z
null
2022-12-13T02:25:18Z
Index order fix
diff --git a/pandas/core/indexes/api.py b/pandas/core/indexes/api.py index c562eaffd241d..e1dd5feb6b55a 100644 --- a/pandas/core/indexes/api.py +++ b/pandas/core/indexes/api.py @@ -222,7 +222,10 @@ def union_indexes(indexes, sort: bool | None = True) -> Index: if len(indexes) == 1: result = indexes[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/50193
2022-12-11T22:45:49Z
2023-01-18T20:22:42Z
null
2023-01-18T20:22:43Z
BUG/TST Added support for empty dictionary when passed to agg for gro…
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 722de91ba5246..a9a110af857d1 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -413,11 +413,19 @@ def agg_dict_like(self) -> DataFrame | Series: keys_to_use = ktu axis: AxisInt = 0 if isinstance(obj, ABCSeries) ...
…upby This adds consistency across empty containers when passed to agg for groupby. Also added new test to check new functionality works as expected. - [x] closes #48581 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug ...
https://api.github.com/repos/pandas-dev/pandas/pulls/50192
2022-12-11T22:45:46Z
2023-01-18T20:23:03Z
null
2023-01-18T20:23:03Z
Groupby nan fix
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 52d18e8ffe540..a62c2d4e2b066 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -3256,8 +3256,12 @@ def ngroup(self, ascending: bool = True): dtype: type if self.grouper.has_dr...
- [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/50190
2022-12-11T21:54:52Z
2023-01-13T03:09:44Z
null
2023-01-13T03:09:44Z
CI make some more hooks manual
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index d1bc51cecc886..280b6ed601f08 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -39,8 +39,8 @@ jobs: with: extra_args: --verbose --all-files - docstring_typing_pylint: - ...
This was brought up by @jorisvandenbossche in Slack - `autotyping` is the slowest hook, and is really unlikely to fail for most contributions. Shall we just mark it as being in the `manual` hook-stage, so it'll still run on CI but won't slow down people's local development too much? Similar story for `yesqa` It m...
https://api.github.com/repos/pandas-dev/pandas/pulls/50188
2022-12-11T20:02:01Z
2022-12-13T08:12:53Z
2022-12-13T08:12:53Z
2022-12-13T08:51:01Z
Docs: remove duplicated code example
diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst index 2204c8b04e438..786192e8c3ebd 100644 --- a/doc/source/user_guide/basics.rst +++ b/doc/source/user_guide/basics.rst @@ -1213,12 +1213,6 @@ With a DataFrame, you can simultaneously reindex the index and columns: df df.reindex(in...
This example snippet can be deleted because it reappears further down (two code snippets below). In other words, the paragraph has two examples covering the `axis` keyword arg where only on is needed. - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata...
https://api.github.com/repos/pandas-dev/pandas/pulls/50187
2022-12-11T17:55:37Z
2022-12-11T21:47:31Z
2022-12-11T21:47:31Z
2022-12-11T21:47:37Z
TST:: Fixing pytest warning
diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py index 81a5e3d9947be..debfc0e80250a 100644 --- a/pandas/tests/frame/indexing/test_indexing.py +++ b/pandas/tests/frame/indexing/test_indexing.py @@ -1449,6 +1449,8 @@ def test_loc_bool_multiindex(self, dtype, indexer...
- [x] closes #48553(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/50186
2022-12-11T17:34:59Z
2022-12-28T19:40:22Z
null
2022-12-28T19:40:23Z
Fix some cases of mypy # type: ignore
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index 9bc02e90ebb9e..db38a70e5314a 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -2,6 +2,7 @@ # the more specific versions are specified in comments from typing import ( + TYPE_CHECKING, Any, Callable, Final, @@ -11,6 +12,...
- [ ] 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/50184
2022-12-11T16:09:00Z
2023-01-12T22:00:56Z
null
2023-01-12T22:00:57Z
Improve to_datetime bounds checking
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7555c8b68a4f7..1894ce4ee12d9 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -950,6 +950,7 @@ Datetimelike - Bug in :func:`to_datetime` was failing to parse date strings ``'today'`` and ``'now'`` if `...
to_datetime(errors='raise') is supposed to raise an exception on out-of-bounds input. However, it uses rounding to integer for this bounds checking but not the actual conversion, and hence, for input just outside the bounds it may instead return NaT ([on x86](https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=...
https://api.github.com/repos/pandas-dev/pandas/pulls/50183
2022-12-11T15:50:37Z
2023-01-20T17:25:48Z
2023-01-20T17:25:48Z
2023-01-20T17:25:55Z
DOC: update documentation for CustomBusinessHour
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index b80af0d3e158b..60199cacafa4f 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -3619,6 +3619,8 @@ cdef class CustomBusinessHour(BusinessHour): """ DateOffset subclass representing possibly ...
- [x] closes #49838 - [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 Updated documentation for `CustomBusinessHour`. Added missing parameters: `holidays`, `calendar`, and `offset`. Provided more exa...
https://api.github.com/repos/pandas-dev/pandas/pulls/50182
2022-12-11T14:38:15Z
2022-12-12T21:14:08Z
2022-12-12T21:14:08Z
2022-12-12T21:14:08Z
fix some dosctring-RT02-error
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 5a71ac247422a..ef6361d37cc90 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1116,7 +1116,7 @@ def _maybe_disallow_fill(self, allow_fill: bool, fill_value, indices) -> bool: Returns ------- - ...
- [x] some #49968 - [ ] [Tests added 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/50181
2022-12-11T08:26:24Z
2022-12-11T14:00:06Z
2022-12-11T14:00:06Z
2022-12-11T14:35:18Z
BUG: fixed issue where Index was being accessed with DatetimeIndex attribute
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 139a00b9df4d6..a80a398062878 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -717,7 +717,7 @@ Timezones ^^^^^^^^^ - Bug in :meth:`Series.astype` and :meth:`DataFrame.astype` with object-dtype contain...
- [x] Closes #49925 - [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/50179
2022-12-11T05:56:03Z
2023-02-07T20:41:56Z
null
2023-02-07T20:41:57Z
DEPR: deprecate Index.is_integer
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 1c99ba0b8e412..67359bc13caeb 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -563,8 +563,7 @@ Deprecations ~~~~~~~~~~~~ - Deprecated argument ``infer_datetime_format`` in :func:`to_datetime` and :fun...
- [ ] progress towards #50042 - [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-commi...
https://api.github.com/repos/pandas-dev/pandas/pulls/50178
2022-12-10T23:37:41Z
2023-01-13T14:11:20Z
2023-01-13T14:11:20Z
2023-01-13T14:24:21Z
BUG: Make io.sql.execute raise TypeError on Engine or URI string.
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index d6a00022efb79..fa834552585d1 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -5785,21 +5785,6 @@ Specifying this will return an iterator through chunks of the query result: for chunk in pd.read_sql_query(...
- [X] xref #50185 - [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] A...
https://api.github.com/repos/pandas-dev/pandas/pulls/50177
2022-12-10T23:35:11Z
2022-12-15T18:22:29Z
2022-12-15T18:22:29Z
2022-12-15T22:44:54Z
DEPR: deprecate Index.is_boolean
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b22590759ea3f..19f776162b767 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -569,6 +569,7 @@ Deprecations ~~~~~~~~~~~~ - Deprecated argument ``infer_datetime_format`` in :func:`to_datetime` and :fun...
- [ ] progress towards #50042 - [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-commi...
https://api.github.com/repos/pandas-dev/pandas/pulls/50176
2022-12-10T23:30:57Z
2023-01-14T11:05:20Z
2023-01-14T11:05:20Z
2023-01-14T11:06:54Z
BUG: isetitem coercing df columns to object
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b1387e9717079..d0e10af7c51a5 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -876,6 +876,7 @@ Indexing - Bug in :meth:`DataFrame.iloc` raising ``IndexError`` when indexer is a :class:`Series` with num...
- [x] closes #49922 (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/50175
2022-12-10T23:16:44Z
2023-01-04T01:37:19Z
2023-01-04T01:37:19Z
2023-01-04T13:48:12Z
Fixed issue with writing Decimal type to excel file - Issue #49598
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 6362e892f0012..35de5fb075e11 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -2,6 +2,7 @@ import abc import datetime +from decimal import Decimal from functools import partial from io import BytesIO import os @@ -48,6 ...
- [ ] closes #49598 (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/50174
2022-12-10T21:40:02Z
2023-01-12T22:01:38Z
null
2023-01-12T22:01:39Z
BUG: df.setitem raising for ea bool df indexer
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index cbad169fe4d56..6a765094c551f 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -831,6 +831,7 @@ Interval Indexing ^^^^^^^^ +- Bug in :meth:`DataFrame.__setitem__` raising when indexer is a :class:`Da...
- [x] closes #47125 (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/50173
2022-12-10T21:16:12Z
2022-12-17T20:54:50Z
2022-12-17T20:54:50Z
2022-12-17T21:42:44Z
Hello, i am new to programming and wanted to try a pull request. i ma…
diff --git a/pandas/io/stata.py b/pandas/io/stata.py index 18f89754cb672..464f95e506091 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -11,73 +11,38 @@ """ from __future__ import annotations -from collections import abc import datetime -from io import BytesIO import os import struct import sys -fro...
…de some minor changes that i am not so sure if its ok, the ones i think its good are the creation of to functions "_read_option_handler" and "_read_old_header_descriptors". Wainting for some feedback.
https://api.github.com/repos/pandas-dev/pandas/pulls/50172
2022-12-10T21:15:44Z
2022-12-10T21:17:35Z
null
2022-12-10T21:18:18Z
BUG: iloc raising for ea series
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d6e0bb2ae0830..b41768a215b68 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -753,6 +753,7 @@ Indexing - Bug in :meth:`DataFrame.loc` raising ``ValueError`` with ``bool`` indexer and :class:`MultiInde...
- [x] closes #49521 (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/50171
2022-12-10T20:55:32Z
2022-12-13T02:40:22Z
2022-12-13T02:40:22Z
2022-12-13T22:31:37Z
BUG: loc for ea index raising with oob slice end
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index cbad169fe4d56..d3710b69dd4c1 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -833,6 +833,7 @@ Indexing ^^^^^^^^ - Bug in :meth:`DataFrame.reindex` filling with wrong values when indexing columns and ...
- [x] closes #50161 (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/50170
2022-12-10T20:47:19Z
2022-12-17T22:35:27Z
2022-12-17T22:35:27Z
2022-12-19T16:08:57Z
Document generating compile_commands.json for C extensions
diff --git a/doc/source/development/debugging_extensions.rst b/doc/source/development/debugging_extensions.rst index cfed8dfbc5a85..32cb8f4c4d8cd 100644 --- a/doc/source/development/debugging_extensions.rst +++ b/doc/source/development/debugging_extensions.rst @@ -119,3 +119,13 @@ Note that code execution under valgrin...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/50169
2022-12-10T20:06:40Z
2022-12-12T19:33:54Z
2022-12-12T19:33:54Z
2022-12-12T19:33:54Z
PERF: _return_parsed_timezone_results
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d6e0bb2ae0830..c9d975952dbb5 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -662,6 +662,7 @@ Performance improvements - Performance improvement for :class:`Series` constructor passing integer numpy a...
- [x] closes #50107 (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/50168
2022-12-10T18:33:01Z
2022-12-10T21:52:31Z
2022-12-10T21:52:31Z
2022-12-20T00:46:18Z
Backport PR #50129 on branch 1.5.x (CI: fix with new numpy nightly)
diff --git a/pandas/tests/dtypes/test_missing.py b/pandas/tests/dtypes/test_missing.py index 9c8aeb050ec27..9f761c505075b 100644 --- a/pandas/tests/dtypes/test_missing.py +++ b/pandas/tests/dtypes/test_missing.py @@ -9,6 +9,7 @@ from pandas._libs import missing as libmissing from pandas._libs.tslibs import iNaT +fr...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50167
2022-12-10T17:08:21Z
2022-12-10T18:43:44Z
2022-12-10T18:43:44Z
2022-12-10T18:43:44Z
TYP #37715: Fix mypy errors in column.py
diff --git a/pandas/core/interchange/column.py b/pandas/core/interchange/column.py index d28da1158134e..13154c0e55900 100644 --- a/pandas/core/interchange/column.py +++ b/pandas/core/interchange/column.py @@ -81,7 +81,8 @@ def __init__(self, column: pd.Series, allow_copy: bool = True) -> None: self._col = colu...
- [ ] xref #37715 - [ ] [Tests added 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/50164
2022-12-10T05:57:38Z
2023-01-12T22:03:44Z
null
2023-01-12T22:03:45Z
DEV/STYLE: use ruff for linting
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 82043f79643e4..dfef9844ce6cb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,6 +15,10 @@ default_stages: [ ci: autofix_prs: false repos: +- repo: https://github.com/charliermarsh/ruff-pre-commit + rev: v0.0.215 + ...
`flake8` is one of the slow parts of our linting (which can become especially annoying when using it as a pre-commit check), and https://github.com/charliermarsh/ruff/ is a faster replacement, and is starting to picked up by several other projects. This PR only replaces flake8 and flake8-bugbear on code (not docs)...
https://api.github.com/repos/pandas-dev/pandas/pulls/50160
2022-12-09T16:49:22Z
2023-01-10T18:36:08Z
2023-01-10T18:36:08Z
2023-01-12T08:48:40Z
CI: Fix windows failures
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index 25623d9826030..bb9ba72a61ece 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -26,6 +26,7 @@ dependencies: - blosc - bottleneck - brotlipy + - cachetools>5.0.0 - fastparquet - fsspec - html5lib diff --git 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/50159
2022-12-09T16:32:47Z
2022-12-09T18:52:20Z
null
2022-12-10T19:59:51Z
CI: remove aiobotocore pin
diff --git a/ci/deps/actions-38-downstream_compat.yaml b/ci/deps/actions-38-downstream_compat.yaml index 4ed0de692f9fd..3f9fdf3ede923 100644 --- a/ci/deps/actions-38-downstream_compat.yaml +++ b/ci/deps/actions-38-downstream_compat.yaml @@ -56,7 +56,6 @@ dependencies: - zstandard # downstream packages - - aiob...
Closes https://github.com/pandas-dev/pandas/issues/44311
https://api.github.com/repos/pandas-dev/pandas/pulls/50158
2022-12-09T16:27:33Z
2022-12-17T20:12:50Z
2022-12-17T20:12:50Z
2022-12-17T20:17:09Z
DEV: remove downstream test packages from environment.yml
diff --git a/ci/deps/actions-38-downstream_compat.yaml b/ci/deps/actions-38-downstream_compat.yaml index bc3c4fbde2712..4ed0de692f9fd 100644 --- a/ci/deps/actions-38-downstream_compat.yaml +++ b/ci/deps/actions-38-downstream_compat.yaml @@ -39,7 +39,6 @@ dependencies: - numexpr - openpyxl - odfpy - - pandas-g...
xref https://github.com/pandas-dev/pandas/issues/49998
https://api.github.com/repos/pandas-dev/pandas/pulls/50157
2022-12-09T16:24:58Z
2022-12-12T20:40:28Z
2022-12-12T20:40:28Z
2022-12-12T20:40:28Z
TST: Added test for groupby dropping NA when grouping on columns
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 667656cb4de02..58c5e5155e4e8 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -2840,3 +2840,14 @@ def test_groupby_index_name_in_index_content(val_in, index, val_out): resul...
- [x] closes #21755 - [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/50156
2022-12-09T16:03:08Z
2023-01-14T13:48:47Z
null
2023-01-14T13:48:47Z
BUG: displaying NaN in complex numbers does not work
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d6e0bb2ae0830..e1a9b56ebe82d 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -784,6 +784,7 @@ MultiIndex I/O ^^^ - Bug in :func:`read_sas` caused fragmentation of :class:`DataFrame` and raised :clas...
- [x] closes #50069 (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/50155
2022-12-09T15:28:24Z
2023-02-22T13:53:13Z
null
2023-02-22T13:53:14Z
Fix bug #50153
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 8776d78ae6d9a..944b4874daff7 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -3288,7 +3288,7 @@ def _to_bool_indexer(indexer) -> npt.NDArray[np.bool_]: else: indexer &= lvl_indexe...
Instead of raising a KeyError in case a key is available in a level but not found with the combination of previous keys an empty array is returned. - [ ] closes #50153 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or ad...
https://api.github.com/repos/pandas-dev/pandas/pulls/50154
2022-12-09T15:10:27Z
2022-12-09T15:25:00Z
null
2022-12-09T15:25:00Z
DOC: add examples to get_indexer_non_unique
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 5a71ac247422a..8cbe6177447c1 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5557,6 +5557,31 @@ def _should_fallback_to_positional(self) -> bool: missing : np.ndarray[np.intp] An indexer int...
- [X] closes #50132 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Updated docstring for `Index.get_indexer_non_unique`. Added examples to clarify `Index.get_indexer_non_unique` behavior.
https://api.github.com/repos/pandas-dev/pandas/pulls/50152
2022-12-09T14:40:57Z
2022-12-10T18:34:59Z
2022-12-10T18:34:59Z
2022-12-10T18:34:59Z
BUG: displaying string dtypes not showing storage option
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index e16ef0857685d..c5c2f8ece4325 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -788,6 +788,7 @@ I/O - Improved error message in :func:`read_excel` by including the offending sheet name when an exception...
- [x] closes #50099 (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/50151
2022-12-09T14:28:00Z
2022-12-13T13:29:58Z
2022-12-13T13:29:57Z
2022-12-13T22:30:45Z
ENH: improve error reporting for dup columns in merge_asof
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d6e0bb2ae0830..316b4dd817b5a 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -83,6 +83,7 @@ Other enhancements - :func:`timedelta_range` now supports a ``unit`` keyword ("s", "ms", "us", or "ns") to s...
- [x] closes #50102 (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/50150
2022-12-09T14:03:09Z
2022-12-13T02:51:04Z
2022-12-13T02:51:04Z
2022-12-13T22:31:21Z
PERF: Speed up Period construction
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index abe5a4840d57f..cc56c1610000b 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -865,6 +865,7 @@ Performance improvements - Performance improvement in :func:`merge` when not merging on the index - the ne...
- [ ] closes #38312 (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/50149
2022-12-09T13:49:33Z
2023-01-18T19:25:08Z
2023-01-18T19:25:08Z
2023-01-18T19:25:09Z
PERF: Split blocks in blk.delete
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 65ea14da08c79..a5bba8e5592c7 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -476,6 +476,19 @@ def time_assign_list_of_columns_concat(self): concat([self.df, df], axis=1) +class Se...
- [x] closes #46267 (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/50148
2022-12-09T11:36:36Z
2023-01-09T17:52:49Z
2023-01-09T17:52:49Z
2023-01-12T08:15:34Z
BUG: keep value types when calling .items() on Series
diff --git a/pandas/core/series.py b/pandas/core/series.py index fd65aa9cf3733..49b723e3960cf 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1770,7 +1770,7 @@ def items(self) -> Iterable[tuple[Hashable, Any]]: Index : 1, Value : B Index : 2, Value : C """ - return z...
- [ ] closes #50125 - [ ] closes #25969 - [ ] [Tests added 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.htm...
https://api.github.com/repos/pandas-dev/pandas/pulls/50147
2022-12-09T10:58:26Z
2022-12-12T11:04:35Z
null
2022-12-12T11:04:36Z
DOC restructure contributing environment guide
diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index b79fe58c68e4b..942edd863a19a 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -15,24 +15,11 @@ locally before pushing ...
- [ ] closes #50134 (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/50145
2022-12-09T09:23:28Z
2022-12-16T09:39:55Z
2022-12-16T09:39:55Z
2023-01-12T08:28:20Z
DOC: BT for VisualStudio2022
diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index 69f7f054d865d..b79fe58c68e4b 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -36,29 +36,17 @@ These packages will aut...
- [x] closes #49799 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). The problem with documentation for the installation guide was fixed. I checked that the setting environment using Build Tools for Visual Studio 2022 works well. The set o...
https://api.github.com/repos/pandas-dev/pandas/pulls/50144
2022-12-09T09:03:06Z
2022-12-10T15:44:11Z
2022-12-10T15:44:11Z
2022-12-23T19:28:08Z
Backport PR #49772 on branch 1.5.x (PERF: first try inplace setitem for .at indexer)
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 69e3d166943a8..54da7c109e02a 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -143,6 +143,12 @@ def setup(self): def time_loc(self): self.df.loc[self.idx_scalar, self.col_scalar] ...
Backport PR #49772: PERF: first try inplace setitem for .at indexer
https://api.github.com/repos/pandas-dev/pandas/pulls/50142
2022-12-09T08:16:20Z
2022-12-09T13:01:43Z
2022-12-09T13:01:43Z
2022-12-09T13:01:44Z
DOC: Add example for pandas.DataFrame.rolling() with ``on``
diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index 08c1285b24d23..359682af46c07 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -1110,6 +1110,29 @@ class Window(BaseWindow): 2 2.958621 3 NaN 4 NaN + + **on** + + Rolling su...
- [x] closes #50080 I'm a newbie, and welcome any comments!
https://api.github.com/repos/pandas-dev/pandas/pulls/50139
2022-12-09T08:00:22Z
2022-12-14T15:41:36Z
2022-12-14T15:41:35Z
2022-12-15T09:18:52Z
DOC: fix a typo: "RBG" -> "RGB"
diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py index b2090fa33fe88..a967126e570c2 100644 --- a/pandas/plotting/_misc.py +++ b/pandas/plotting/_misc.py @@ -293,7 +293,7 @@ def andrews_curves( Number of points to plot in each curve. color : str, list[str] or tuple[str], optional 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/50138
2022-12-09T03:56:01Z
2022-12-09T08:48:26Z
2022-12-09T08:48:26Z
2022-12-09T08:48:26Z
feat: fsspec auto_mkdir set to true unless given
diff --git a/pandas/io/common.py b/pandas/io/common.py index 4dae46c8f39f6..0b7cf1b8be434 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -406,20 +406,29 @@ def _get_filepath_or_buffer( except ImportError: pass + # don't mutate user input. + storage_options = dict(sto...
- [X] closes https://github.com/pandas-dev/pandas/issues/50135 - [ ] [Tests added 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/50136
2022-12-09T02:09:17Z
2022-12-17T19:58:11Z
null
2022-12-17T19:58:11Z
Fix a typo in the docstring
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c659f8d0d9a4d..c5a931fe29ab1 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6411,7 +6411,7 @@ def convert_dtypes( By default, ``convert_dtypes`` will attempt to convert a Series (or each Series in a DataFrame) to ...
As you can see, `convert_boolean` is written twice here. Probably, instead of the second one, `convert_floating` was meant.
https://api.github.com/repos/pandas-dev/pandas/pulls/50131
2022-12-08T18:48:37Z
2022-12-09T15:57:01Z
2022-12-09T15:57:01Z
2022-12-09T15:57:08Z
API: ensure IntervalIndex.left/right are 64bit if numeric
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index ae2d054fe94fe..997bf7c9a7fb1 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -59,6 +59,8 @@ is_number, is_object_dtype, is_scalar, + is_signed_integer_dtype, + is_unsigned_inte...
Extracted part for #49560, slightly altered. `IntervalIndex` depends on `IntervalTree` which only accepts 64-bit int/uint/floats. This ensures that numpy numeric arrays in `IntervalTree` will always be 64-bit. A question is if we should have non-64bit `IntervalTree`s. I've considered that that is maybe a differen...
https://api.github.com/repos/pandas-dev/pandas/pulls/50130
2022-12-08T17:51:09Z
2022-12-11T18:02:14Z
2022-12-11T18:02:14Z
2022-12-11T19:33:28Z
CI: fix with new numpy nightly
diff --git a/pandas/tests/dtypes/test_missing.py b/pandas/tests/dtypes/test_missing.py index eeddf443dba86..94707dc2e68c5 100644 --- a/pandas/tests/dtypes/test_missing.py +++ b/pandas/tests/dtypes/test_missing.py @@ -9,6 +9,7 @@ from pandas._libs import missing as libmissing from pandas._libs.tslibs import iNaT +fr...
- [ ] xref #50124 (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/50129
2022-12-08T16:40:30Z
2022-12-10T17:02:53Z
2022-12-10T17:02:53Z
2022-12-10T17:08:50Z
Backport PR #49771 on branch 1.5.x (PERF: Use fastpath for accessing option value in internals)
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 82d39fab54106..fe0f4713a3204 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -15,7 +15,7 @@ import numpy as np -from pandas._config import get_option +from pandas._config.config import...
Backport PR #49771: PERF: Use fastpath for accessing option value in internals
https://api.github.com/repos/pandas-dev/pandas/pulls/50128
2022-12-08T15:23:24Z
2023-01-13T12:47:29Z
2023-01-13T12:47:29Z
2023-01-13T12:47:29Z
BUG: Series read_json tries to convert all column values to dates even when using keep_default_dates=True, if one column has an na value FIX
diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py index d6c154962ad83..236523d9ef7f8 100644 --- a/pandas/io/json/_json.py +++ b/pandas/io/json/_json.py @@ -478,7 +478,7 @@ def read_json( typ: Literal["frame", "series"] = "frame", dtype: DtypeArg | None = None, convert_axes=None, - convert...
- [ ] closes #49585 (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/50123
2022-12-08T05:01:23Z
2022-12-12T21:23:18Z
null
2022-12-12T21:23:18Z
Backport PR #50068 on branch 1.5.x (REGR: memory_usage showing unnecessary FutureWarning)
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index e0bcd81805cc1..cf079f43f6457 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed performance regression in ...
Backport PR #50068: REGR: memory_usage showing unnecessary FutureWarning
https://api.github.com/repos/pandas-dev/pandas/pulls/50122
2022-12-08T03:23:44Z
2022-12-08T16:21:43Z
2022-12-08T16:21:43Z
2022-12-08T16:21:43Z
PERF: I was looking into this file and a saw some duplicate strings so i cr…
diff --git a/.scannerwork/.sonar_lock b/.scannerwork/.sonar_lock new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/.scannerwork/report-task.txt b/.scannerwork/report-task.txt new file mode 100644 index 0000000000000..cae05e897ebf3 --- /dev/null +++ b/.scannerwork/report-task.txt @@ -0,0 +1,6 @@ +proj...
…eated a constant for those strings" - [ ] 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.py...
https://api.github.com/repos/pandas-dev/pandas/pulls/50120
2022-12-07T22:43:38Z
2022-12-08T09:14:55Z
null
2022-12-08T09:14:55Z
Auto backport of pr 50055 on 1.5.x
diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml index 002d0020c2df1..7d1e54052f938 100644 --- a/.github/actions/setup-conda/action.yml +++ b/.github/actions/setup-conda/action.yml @@ -18,7 +18,7 @@ runs: - name: Set Arrow version in ${{ inputs.environment-file }} to ${{...
- [ ] 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/50119
2022-12-07T22:09:40Z
2022-12-08T11:02:47Z
2022-12-08T11:02:47Z
2022-12-08T11:02:48Z
Alternate Ubuntu CI fix
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index c1004a505ea48..438d2c7b4174e 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -17,7 +17,7 @@ permissions: jobs: pytest: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 s...
@MarcoGorelli @lithomas1 @jbrockmendel I think if we clean up some of this dead code we can support a clean build on newer gcc. Lots of layers of indirection to sift through so not entirely clear on what's happening, but I think gcc isn't going to be happy with some of the paths this theoretically produces https...
https://api.github.com/repos/pandas-dev/pandas/pulls/50117
2022-12-07T21:47:30Z
2022-12-10T20:33:05Z
2022-12-10T20:33:05Z
2023-04-12T20:17:12Z
Standard library imports style check
diff --git a/pandas/tests/apply/test_series_apply.py b/pandas/tests/apply/test_series_apply.py index 5986f1f6cf51d..f66253badaf75 100644 --- a/pandas/tests/apply/test_series_apply.py +++ b/pandas/tests/apply/test_series_apply.py @@ -2,6 +2,8 @@ Counter, defaultdict, ) +from decimal import Decimal +import mat...
- [X] closes #49647 - [ ] [Tests added 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/50116
2022-12-07T21:04:30Z
2023-01-06T23:16:58Z
2023-01-06T23:16:58Z
2023-01-06T23:25:22Z
Backport PR #50113: CI try using ubuntu20.04
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index cf8a0fe0da91c..23ebd55200b66 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -17,7 +17,7 @@ permissions: jobs: pytest: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 ...
- [ ] 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/50114
2022-12-07T20:55:44Z
2022-12-08T09:12:43Z
2022-12-08T09:12:43Z
2022-12-08T09:12:43Z
CI try using ubuntu20.04
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index 806742c99abac..c1004a505ea48 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -17,7 +17,7 @@ permissions: jobs: pytest: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 ...
trying to fix broken CI builds closes https://github.com/pandas-dev/pandas/issues/50112
https://api.github.com/repos/pandas-dev/pandas/pulls/50113
2022-12-07T19:59:36Z
2022-12-07T20:49:26Z
2022-12-07T20:49:26Z
2022-12-07T21:01:23Z
Backport PR #50110: CI fix Code Checks install Python
diff --git a/.github/workflows/autoupdate-pre-commit-config.yml b/.github/workflows/autoupdate-pre-commit-config.yml index 9a41871c26062..5963e819c0dae 100644 --- a/.github/workflows/autoupdate-pre-commit-config.yml +++ b/.github/workflows/autoupdate-pre-commit-config.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-la...
- [ ] 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/50111
2022-12-07T18:30:44Z
2022-12-08T09:13:07Z
2022-12-08T09:13:07Z
2022-12-08T09:13:07Z
CI fix Code Checks install Python
diff --git a/.github/workflows/autoupdate-pre-commit-config.yml b/.github/workflows/autoupdate-pre-commit-config.yml index 9a41871c26062..5963e819c0dae 100644 --- a/.github/workflows/autoupdate-pre-commit-config.yml +++ b/.github/workflows/autoupdate-pre-commit-config.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-la...
- [ ] 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/50110
2022-12-07T18:22:15Z
2022-12-07T18:28:35Z
2022-12-07T18:28:35Z
2022-12-07T18:31:07Z
BUG: datetime.date objects don't get parsed for non-ISO formats
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 57558491e0e57..f88dc67da72ad 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -698,7 +698,7 @@ Datetimelike - Bug in subtracting a ``datetime`` scalar from :class:`DatetimeIndex` failing to retain the ...
- [ ] closes #50108 (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/50109
2022-12-07T18:15:24Z
2022-12-11T11:12:20Z
2022-12-11T11:12:20Z
2022-12-11T11:12:21Z
add test case for #50105
diff --git a/pandas/tests/io/pytables/test_round_trip.py b/pandas/tests/io/pytables/test_round_trip.py index e76f85c0c69d0..afea344832a2d 100644 --- a/pandas/tests/io/pytables/test_round_trip.py +++ b/pandas/tests/io/pytables/test_round_trip.py @@ -553,3 +553,24 @@ def test_round_trip_equals(tmp_path, setup_path): ...
- [ ] 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/50106
2022-12-07T16:52:46Z
2023-01-23T19:47:31Z
null
2023-01-23T19:47:32Z
TYP: fix mypy ignored error in pandas/compat/numpy/function.py
diff --git a/pandas/compat/numpy/function.py b/pandas/compat/numpy/function.py index b02dfac1400d1..a1fd4353b02a8 100644 --- a/pandas/compat/numpy/function.py +++ b/pandas/compat/numpy/function.py @@ -154,13 +154,13 @@ def validate_argsort_with_ascending(ascending: bool | int | None, args, kwargs) 'None', so check...
- [ ] xref https://github.com/pandas-dev/pandas/issues/37715 - [ ] [Tests added 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/50104
2022-12-07T14:14:21Z
2023-01-16T19:45:59Z
null
2023-01-16T19:45:59Z
BUG: #49889
diff --git a/pandas/core/interchange/from_dataframe.py b/pandas/core/interchange/from_dataframe.py index 449a1cc3fb5fa..31c642aebe085 100644 --- a/pandas/core/interchange/from_dataframe.py +++ b/pandas/core/interchange/from_dataframe.py @@ -182,7 +182,7 @@ def categorical_column_to_series(col: Column) -> tuple[pd.Serie...
Fix for issue: BUG: categorical_column_to_series() should not accept only PandasColumn #49889 Relaxed assert statement from `PandasColumn` to `Column` as not only Pandas column could be used here
https://api.github.com/repos/pandas-dev/pandas/pulls/50098
2022-12-07T00:53:03Z
2023-01-31T21:39:10Z
null
2023-01-31T21:39:11Z
TST: added test to ensure subclasses of ExcelWriter don't add any public attributes
diff --git a/pandas/tests/io/excel/test_writers.py b/pandas/tests/io/excel/test_writers.py index 161587a11fe9e..9c142b74ed460 100644 --- a/pandas/tests/io/excel/test_writers.py +++ b/pandas/tests/io/excel/test_writers.py @@ -29,6 +29,7 @@ _XlsxWriter, register_writer, ) +from pandas.io.excel._util import _wr...
- [ ] closes #49602 - not fully tested with style and pre-commit checks yet
https://api.github.com/repos/pandas-dev/pandas/pulls/50097
2022-12-06T23:12:44Z
2022-12-12T18:22:42Z
2022-12-12T18:22:42Z
2022-12-12T22:06:06Z
ENH: infer_objects copy kwd
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7838ef8df4164..16a30408c021d 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -84,6 +84,7 @@ Other enhancements - :meth:`DataFrame.to_json` now supports a ``mode`` keyword with supported inputs 'w' and...
- [ ] 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/50096
2022-12-06T22:59:33Z
2022-12-07T17:04:18Z
2022-12-07T17:04:18Z
2023-02-07T15:56:11Z
ENH: Allow convert_dtypes to convert to pd.ArrowDtype
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 75ca21e3e9f72..38ea26c014d4b 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -30,8 +30,8 @@ sql-other, html, xml, plot, output_formatting, clipboard, compression, test]`` ( .. _whatsnew_200.enhancem...
- [x] closes #49997 (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/50094
2022-12-06T22:04:36Z
2022-12-14T16:28:52Z
2022-12-14T16:28:52Z
2022-12-14T16:28:56Z
DEPR: Remove deprecated ExcelWriter methods
diff --git a/asv_bench/benchmarks/io/excel.py b/asv_bench/benchmarks/io/excel.py index 5bd4d832f3dde..3cc443f6cfbed 100644 --- a/asv_bench/benchmarks/io/excel.py +++ b/asv_bench/benchmarks/io/excel.py @@ -42,9 +42,8 @@ def setup(self, engine): def time_write_excel(self, engine): bio = BytesIO() b...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50093
2022-12-06T21:41:13Z
2022-12-13T03:02:52Z
2022-12-13T03:02:52Z
2022-12-13T18:43:33Z
PERF first-non-null
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 418daafd30f55..6f58fecd1ac81 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -434,7 +434,7 @@ def first_non_null(values: ndarray) -> int: if ( isinstance(val, str) and - (len(val) == 0 or...
As intuitied by @jbrockmendel [here](https://github.com/pandas-dev/pandas/pull/50039/files#r1040015439), there was indeed a slight perf hit from #50039 It's negligible compared with the time it'd take to parse the array with `to_datetime`, but still, better to fix it Timings on my laptop (this is copy-and-pasted ...
https://api.github.com/repos/pandas-dev/pandas/pulls/50092
2022-12-06T21:00:15Z
2022-12-07T12:16:41Z
2022-12-07T12:16:41Z
2022-12-07T12:16:42Z
BUG: infer_objects with Intervals
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index a4370a363bb57..45870245728ff 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -704,6 +704,7 @@ Strings Interval ^^^^^^^^ - Bug in :meth:`IntervalIndex.is_overlapping` incorrect output if interval has...
- [ ] 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/50090
2022-12-06T20:16:46Z
2022-12-07T18:41:53Z
2022-12-07T18:41:53Z
2022-12-07T18:53:53Z
PERF: 34% faster Series.to_dict
diff --git a/pandas/core/series.py b/pandas/core/series.py index 1e5f565934b50..535b64c8e2a60 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1818,7 +1818,7 @@ def to_dict(self, into: type[dict] = dict) -> dict: else: # Not an object dtype => all types will be the same so let th...
Improve the performance of Series.to_dict() by not including a generator that is not necessary. Local tests showed significant performance improvements. Note this builds off the changes of #46487 from @RogerThomas
https://api.github.com/repos/pandas-dev/pandas/pulls/50089
2022-12-06T19:18:22Z
2022-12-08T03:28:34Z
2022-12-08T03:28:34Z
2022-12-09T02:34:18Z
Truncate table option for to sql
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index b6c1c857717c7..ffffd8ee86987 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -32,7 +32,7 @@ Bug fixes Other ~~~~~ -- +- - .. -------------------------------------------------------------------...
- [X] closes #37210 - in order to reload a table but not drop it to avoid CASCADE-ing - [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-d...
https://api.github.com/repos/pandas-dev/pandas/pulls/50088
2022-12-06T17:43:32Z
2023-01-31T21:36:39Z
null
2023-04-28T16:56:57Z
BUG: SparseArray[dt64_weird_fill_value].astype(int64)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7838ef8df4164..c908825fd5da6 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -790,7 +790,7 @@ Reshaping Sparse ^^^^^^ -- Bug in :meth:`Series.astype` when converting a ``SparseDtype`` with ``dateti...
- [ ] 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/50087
2022-12-06T17:12:20Z
2022-12-07T19:00:06Z
2022-12-07T19:00:06Z
2022-12-07T19:04:52Z
STYLE: Enable Pylint warning redundant-keyword-arg
diff --git a/pandas/_testing/_io.py b/pandas/_testing/_io.py index 527e8c1d0d090..29618bdd64912 100644 --- a/pandas/_testing/_io.py +++ b/pandas/_testing/_io.py @@ -225,7 +225,7 @@ def wrapper(*args, **kwargs): ) try: return t(*args, **kwargs) - except Exception as err: # pyli...
Enables the Pylint warning `redundant-keyword-arg`. - [ ] 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/50086
2022-12-06T15:17:57Z
2022-12-06T17:38:58Z
2022-12-06T17:38:58Z
2022-12-06T17:39:16Z
BUG: unwrap setitem indexer for ArrowExtensionArray
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 12b0d90e68ab9..f6e0b5bc0cf36 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -853,6 +853,7 @@ Indexing - Bug in :meth:`DataFrame.loc` coercing dtypes when setting values with a list indexer (:issue:`4...
- [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/50085
2022-12-06T12:31:43Z
2023-01-04T01:42:00Z
2023-01-04T01:42:00Z
2023-01-19T04:31:31Z
BUG: DatetimeArray.astype(Sparse)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 54c7a8697e23f..690782c23a8b2 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -790,6 +790,7 @@ Reshaping Sparse ^^^^^^ - Bug in :meth:`Series.astype` when converting a ``SparseDtype`` with ``datetime...
- [ ] 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/50082
2022-12-06T03:26:10Z
2022-12-06T19:02:12Z
2022-12-06T19:02:12Z
2022-12-06T19:05:59Z
BUG: SeriesGroupBy.nunique raises when grouping with an empty categrorical
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 0ecdde89d9013..98ce62b7f5c64 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -773,6 +773,7 @@ Groupby/resample/rolling - Bug in :meth:`.DataFrameGroupBy.describe` would describe the group keys (:issue...
- [x] closes #21334 (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/50081
2022-12-06T02:19:19Z
2022-12-08T18:26:03Z
2022-12-08T18:26:03Z
2022-12-08T22:04:31Z
TST: Add test for groupby aggregatation with nested dictionary
diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py index 03b917edd357b..1c37770f3a2b4 100644 --- a/pandas/tests/groupby/aggregate/test_aggregate.py +++ b/pandas/tests/groupby/aggregate/test_aggregate.py @@ -468,6 +468,16 @@ def test_groupby_agg_coercing_bool...
- [ ] closes #25471 (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/50079
2022-12-06T01:52:23Z
2022-12-08T22:04:05Z
2022-12-08T22:04:05Z
2022-12-08T22:04:18Z
PERF: ExtensionBlock.fillna dispatch to underlying arrays
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index d535e37c89648..dc86352082cca 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -85,6 +85,7 @@ class Fillna: [ "datetime64[ns]", "float64...
- [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/50078
2022-12-06T00:26:36Z
2022-12-08T18:04:50Z
2022-12-08T18:04:50Z
2022-12-20T00:46:26Z
DEPR: enforce concat with bool dtype return object
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 0ecdde89d9013..54c7a8697e23f 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -562,6 +562,7 @@ Removal of prior version deprecations/changes - Changed behavior of :meth:`SparseArray.astype` when given ...
- [ ] 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/50077
2022-12-05T23:36:14Z
2022-12-06T02:05:53Z
2022-12-06T02:05:53Z
2022-12-06T03:16:00Z
DEPR: remove some more Int/UInt/Float64Index from tests
diff --git a/pandas/tests/arithmetic/test_timedelta64.py b/pandas/tests/arithmetic/test_timedelta64.py index 14d50acf3eadf..1fb1e96cea94b 100644 --- a/pandas/tests/arithmetic/test_timedelta64.py +++ b/pandas/tests/arithmetic/test_timedelta64.py @@ -26,11 +26,7 @@ timedelta_range, ) import pandas._testing as tm -...
Progress towards #42717, one easy step at a time... There are still some places that have these indexes, but maybe easier taking these things in steps.
https://api.github.com/repos/pandas-dev/pandas/pulls/50075
2022-12-05T21:25:15Z
2022-12-06T18:28:01Z
2022-12-06T18:28:01Z
2022-12-06T19:25:54Z
WIP: Dont double parse
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 35a4131d11d50..57128c7537235 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -12,6 +12,7 @@ from cpython.object cimport PyObject import_datetime() +import dateutil cimport numpy as cnp from numpy cimport ( float64_t, @@ -...
- [ ] closes #50071 (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/50073
2022-12-05T19:52:44Z
2022-12-06T19:05:14Z
null
2022-12-06T19:05:14Z
BUG: Series[object].astype(td64_unsupported)
diff --git a/pandas/core/dtypes/astype.py b/pandas/core/dtypes/astype.py index 53c2cfd345e32..57af8c22f76d3 100644 --- a/pandas/core/dtypes/astype.py +++ b/pandas/core/dtypes/astype.py @@ -7,6 +7,7 @@ import inspect from typing import ( TYPE_CHECKING, + cast, overload, ) @@ -36,7 +37,11 @@ from panda...
- [ ] 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/50070
2022-12-05T18:44:42Z
2022-12-05T23:34:12Z
2022-12-05T23:34:12Z
2022-12-05T23:37:12Z
REGR: memory_usage showing unnecessary FutureWarning
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index b6c1c857717c7..8e5e94fd7d9a0 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed performance regression in ...
- [x] closes #50066 (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/50068
2022-12-05T15:46:57Z
2022-12-08T03:23:10Z
2022-12-08T03:23:10Z
2022-12-08T13:18:18Z