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
Backport PR #48686 on branch 1.5.x (BUG: to_datetime(tz_mix, utc=True) converts to UTC)
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index e9e5e5062b4e6..b810adde37d86 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -72,6 +72,7 @@ Fixed regressions - Fixed Regression in :meth:`Series.__setitem__` casting ``None`` to ``NaN`` for object dt...
Backport PR #48686: BUG: to_datetime(tz_mix, utc=True) converts to UTC
https://api.github.com/repos/pandas-dev/pandas/pulls/48882
2022-09-30T11:49:02Z
2022-09-30T13:31:03Z
2022-09-30T13:31:03Z
2022-09-30T13:31:03Z
WEB: Add Luke to maintainers list
diff --git a/web/pandas/config.yml b/web/pandas/config.yml index da63777c0cfc5..16e1357d405a0 100644 --- a/web/pandas/config.yml +++ b/web/pandas/config.yml @@ -88,6 +88,7 @@ maintainers: - twoertwein - lithomas1 - mzeitlin11 + - lukemanley inactive: - lodagro - jseabold
@lukemanley feel free to merge if it looks fine :)
https://api.github.com/repos/pandas-dev/pandas/pulls/48879
2022-09-30T08:35:53Z
2022-10-04T00:41:39Z
2022-10-04T00:41:39Z
2022-10-04T00:42:14Z
Backport PR #48833 on branch 1.5.x (BUG: ArrowExtensionArray compared to invalid object not raising)
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index 6690f067956a0..222bdd2964959 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -93,7 +93,7 @@ Bug fixes - Bug in :func:`assert_index_equal` for extension arrays with non matching ``NA`` raising ``ValueE...
Backport PR #48833: BUG: ArrowExtensionArray compared to invalid object not raising
https://api.github.com/repos/pandas-dev/pandas/pulls/48878
2022-09-30T07:28:33Z
2022-09-30T09:34:50Z
2022-09-30T09:34:50Z
2022-09-30T09:34:50Z
TST: MultiIndex.get_indexer with na/missing
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c2abb70988dad..f69c0a7e19f93 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -558,7 +558,7 @@ Missing MultiIndex ^^^^^^^^^^ -- Bug in :meth:`MultiIndex.get_indexer` not matching ``NaN`` values (:is...
- [x] closes #43222 - [x] closes #46173 - [x] closes #42883 - [x] closes #38623 - [x] closes #29252 - [x] closes #48905 - [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 pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/48877
2022-09-30T01:51:28Z
2022-11-09T21:01:55Z
2022-11-09T21:01:55Z
2022-11-10T03:18:10Z
Backport PR #48790 on branch 1.5.x (Created icons for dark theme)
diff --git a/doc/source/_static/index_api.svg b/doc/source/_static/index_api.svg index 70bf0d3504b1a..69f7ba1d2d114 100644 --- a/doc/source/_static/index_api.svg +++ b/doc/source/_static/index_api.svg @@ -64,29 +64,29 @@ inkscape:connector-curvature="0" id="path899" d="M 324.96812,187.0949...
Backport PR #48790: Created icons for dark theme
https://api.github.com/repos/pandas-dev/pandas/pulls/48875
2022-09-30T00:51:21Z
2022-09-30T07:23:37Z
2022-09-30T07:23:37Z
2022-09-30T07:23:37Z
Backport PR #48805 on branch 1.5.x (Added padding and fixed columns for sponsor logos in mobile view)
diff --git a/web/pandas/index.html b/web/pandas/index.html index 4c4c593fb76c6..2d5e44d725138 100644 --- a/web/pandas/index.html +++ b/web/pandas/index.html @@ -44,12 +44,12 @@ <h5>Community</h5> <section> <h5>With the support of:</h5> {% for row in sponsors.ac...
Backport PR #48805: Added padding and fixed columns for sponsor logos in mobile view
https://api.github.com/repos/pandas-dev/pandas/pulls/48874
2022-09-29T23:59:57Z
2022-09-30T07:23:55Z
2022-09-30T07:23:55Z
2022-09-30T07:23:55Z
Backport PR #48853 on branch 1.5.x (REGR: Avoid unnecessary warning when setting empty dataframe)
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index 4e29ad4ed844a..102df98f5e584 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -72,6 +72,7 @@ Fixed regressions - Fixed Regression in :meth:`Series.__setitem__` casting ``None`` to ``NaN`` for object dt...
Backport PR #48853: REGR: Avoid unnecessary warning when setting empty dataframe
https://api.github.com/repos/pandas-dev/pandas/pulls/48873
2022-09-29T23:54:38Z
2022-09-30T09:34:38Z
2022-09-30T09:34:38Z
2022-09-30T09:34:38Z
Backport PR #48866 on branch 1.5.x (REGR: replace replacing wrong values with inplace and datetime)
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index 4e29ad4ed844a..6690f067956a0 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -77,6 +77,7 @@ Fixed regressions - Fixed performance regression in :func:`factorize` when ``na_sentinel`` is not ``None`` a...
Backport PR #48866: REGR: replace replacing wrong values with inplace and datetime
https://api.github.com/repos/pandas-dev/pandas/pulls/48872
2022-09-29T23:44:36Z
2022-09-30T07:24:10Z
2022-09-30T07:24:10Z
2022-09-30T07:24:10Z
TYP: Upgrade mypy to 0.981
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index a1313f2e20d81..5dd67458970aa 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -96,7 +96,7 @@ If installed, we now require: +-----------------+-----------------+----------+---------+ | Package ...
- [ ] 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/48871
2022-09-29T21:46:55Z
2022-09-30T07:24:41Z
2022-09-30T07:24:41Z
2022-10-13T17:01:55Z
TYP: disable flake8-pyi's Y041
diff --git a/setup.cfg b/setup.cfg index 4c5815cc0e02d..c164bd6be83d9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -123,7 +123,9 @@ ignore = # Use typing_extensions.TypeAlias for type aliases Y026, # Use "collections.abc.*" instead of "typing.*" (PEP 585 syntax) - Y027 + Y027, + # while int | float...
xref https://github.com/pandas-dev/pandas-stubs/pull/341#issuecomment-1262786774 https://github.com/pandas-dev/pandas/pull/48836#discussion_r982952166 https://github.com/pandas-dev/pandas/pull/48850#discussion_r983620339
https://api.github.com/repos/pandas-dev/pandas/pulls/48870
2022-09-29T21:14:00Z
2022-09-29T23:48:47Z
2022-09-29T23:48:47Z
2022-10-13T17:01:54Z
REGR: replace replacing wrong values with inplace and datetime
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index a8ec836ba93df..d6d7ed9ea4ad6 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -77,6 +77,7 @@ Fixed regressions - Fixed performance regression in :func:`factorize` when ``na_sentinel`` is not ``None`` a...
- [x] closes #48863 (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/48866
2022-09-29T16:02:02Z
2022-09-29T23:43:58Z
2022-09-29T23:43:58Z
2022-09-30T07:55:56Z
REF: helpers to de-duplicate datetimelike arithmetic
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 71f834e0f4e01..848d2f879fbf2 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -36,6 +36,7 @@ Period, Resolution, Tick, + Timedelta, Timestamp, astype_overflow...
Same helpers as #48844, used in a different subset of methods.
https://api.github.com/repos/pandas-dev/pandas/pulls/48862
2022-09-29T14:46:48Z
2022-10-03T17:09:53Z
2022-10-03T17:09:53Z
2022-10-13T17:01:53Z
Backport PR #48820 on branch 1.5.x (BUG: to_datetime(format='...%f') parses nanoseconds)
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index 6a8fae61e23ba..4e29ad4ed844a 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -75,8 +75,10 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.describe` raising ``TypeError`` when result contai...
#48820
https://api.github.com/repos/pandas-dev/pandas/pulls/48860
2022-09-29T13:44:05Z
2022-09-29T17:01:15Z
2022-09-29T17:01:15Z
2022-09-29T17:39:07Z
Backport PR #48850 on branch 1.5.x (TYP: Fix typing errors caused by new numpy)
diff --git a/pandas/_typing.py b/pandas/_typing.py index 08096569c61a7..03fb5fcb1b0d4 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -65,9 +65,19 @@ from pandas.io.formats.format import EngFormatter + ScalarLike_co = Union[ + int, + float, + complex, + str, + by...
#48850
https://api.github.com/repos/pandas-dev/pandas/pulls/48859
2022-09-29T13:30:39Z
2022-09-29T17:38:54Z
2022-09-29T17:38:54Z
2022-09-29T17:38:57Z
BUG: convert_dtypes not converting with pd.NA and object dtype
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index 9f793532e5e6b..a25fcaaff46bf 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -186,6 +186,7 @@ Conversion ^^^^^^^^^^ - Bug in constructing :class:`Series` with ``int64`` dtype from a string list raisi...
- [x] closes #48791 (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/48857
2022-09-29T13:24:54Z
2022-09-29T23:51:02Z
2022-09-29T23:51:02Z
2022-10-13T17:01:53Z
BUG: to_timedelta raising for ea float
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index 9f793532e5e6b..0c4b5ac88a4ac 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -169,7 +169,7 @@ Datetimelike Timedelta ^^^^^^^^^ -- +- Bug in :func:`to_timedelta` raising error when input has nullabl...
- [x] closes #48796 (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/48854
2022-09-29T12:45:13Z
2022-09-29T23:52:15Z
2022-09-29T23:52:15Z
2022-10-13T17:01:52Z
REGR: Avoid unnecessary warning when setting empty dataframe
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index ee66f2f649bc2..54febe3aecd71 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -72,6 +72,7 @@ Fixed regressions - Fixed Regression in :meth:`Series.__setitem__` casting ``None`` to ``NaN`` for object dt...
- [x] closes #48480 (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/48853
2022-09-29T11:27:08Z
2022-09-29T23:54:31Z
2022-09-29T23:54:31Z
2022-10-26T20:25:27Z
TYP: Fix typing errors caused by new numpy
diff --git a/pandas/_typing.py b/pandas/_typing.py index af037ff0473e3..5c22baa4bd42e 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -65,9 +65,19 @@ from pandas.io.formats.format import EngFormatter + ScalarLike_co = Union[ + int, + float, + complex, + str, + by...
- [ ] 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/48850
2022-09-29T09:34:58Z
2022-09-29T13:22:20Z
2022-09-29T13:22:20Z
2022-09-29T14:26:39Z
DEP: Enforce deprecations of read_csv keywords
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 92bd239d51ae4..b4bf3ef024d4c 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -154,25 +154,6 @@ usecols : list-like or callable, default ``None`` Using this parameter results in much faster parsing time and ...
#40413 #43427
https://api.github.com/repos/pandas-dev/pandas/pulls/48849
2022-09-29T09:15:10Z
2022-11-03T14:35:55Z
2022-11-03T14:35:55Z
2022-11-03T14:55:30Z
BUG: add_categories losing dtype information
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index 9f793532e5e6b..3511f1afe8cfc 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -158,7 +158,7 @@ Bug fixes Categorical ^^^^^^^^^^^ -- +- Bug in :meth:`Categorical.set_categories` losing dtype informat...
- [x] closes #48812 (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/48847
2022-09-29T08:41:16Z
2022-09-29T20:48:23Z
2022-09-29T20:48:23Z
2022-10-13T17:01:51Z
REF: helpers to de-duplicate datetimelike arithmetic
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 997cef7b09576..f29930b010795 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1112,6 +1112,41 @@ def _cmp_method(self, other, op): __divmod__ = make_invalid_op("__divmod__") _...
1-2 more PRs after this using these helpers
https://api.github.com/repos/pandas-dev/pandas/pulls/48844
2022-09-29T02:45:18Z
2022-09-29T23:43:35Z
2022-09-29T23:43:35Z
2022-10-13T17:01:50Z
DEPR: Enforce ewm(times=str) deprecation
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 4ac737bb6b29a..91ca4c0210d64 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -165,6 +165,7 @@ Removal of prior version deprecations/changes - Remove :meth:`DataFrameGroupBy.pad` and :meth:`DataFrameGr...
Introduced in https://github.com/pandas-dev/pandas/pull/43265
https://api.github.com/repos/pandas-dev/pandas/pulls/48842
2022-09-29T00:40:44Z
2022-10-21T18:30:12Z
2022-10-21T18:30:12Z
2022-10-21T18:30:15Z
DEPR Enforce ewm.vol deprecation
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 1050eed40fbb4..5efec0b16d1d0 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -210,6 +210,7 @@ Removal of prior version deprecations/changes - Removed deprecated :meth:`Categorical.replace`, use :meth:...
Introduced in https://github.com/pandas-dev/pandas/pull/39220
https://api.github.com/repos/pandas-dev/pandas/pulls/48841
2022-09-29T00:37:46Z
2022-10-25T21:02:35Z
2022-10-25T21:02:35Z
2022-10-25T21:03:50Z
DEPR: Enforce expanding(center) deprecation
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index e57ba92267855..a2a0812429050 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -147,6 +147,7 @@ Removal of prior version deprecations/changes - Disallow passing non-round floats to :class:`Timestamp` wi...
Introduced in https://github.com/pandas-dev/pandas/pull/34887
https://api.github.com/repos/pandas-dev/pandas/pulls/48840
2022-09-29T00:34:47Z
2022-10-20T08:21:30Z
2022-10-20T08:21:30Z
2022-10-20T16:15:09Z
DEPR: Enforce rolling.count min_periods deprecation
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 596c16a5b3621..728b59ae6b0c2 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -146,6 +146,7 @@ Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Disallow pa...
Introduced in https://github.com/pandas-dev/pandas/pull/36649
https://api.github.com/repos/pandas-dev/pandas/pulls/48839
2022-09-29T00:23:51Z
2022-10-19T23:07:06Z
2022-10-19T23:07:06Z
2022-10-19T23:10:30Z
DEPR: Enforce Rolling.validate/is_datetimelike/win_type deprecation
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index fb8f5affe5a7b..91ce5269f7a1b 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -156,6 +156,9 @@ Removal of prior version deprecations/changes - Disallow passing positional arguments to :meth:`MultiIndex...
Introduced in https://github.com/pandas-dev/pandas/pull/43665, https://github.com/pandas-dev/pandas/pull/38963
https://api.github.com/repos/pandas-dev/pandas/pulls/48838
2022-09-29T00:09:57Z
2022-10-21T18:27:52Z
2022-10-21T18:27:51Z
2022-10-21T18:27:55Z
CLN: small cleanups
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index f5f2aa23459e4..25da4f8eb8278 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -296,7 +296,7 @@ def box_expected(expected, box_cls, transpose: bool = True): # pd.array would return an IntegerArray ...
- [ ] 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/48836
2022-09-28T20:58:53Z
2022-09-29T23:56:03Z
2022-09-29T23:56:03Z
2022-10-13T17:01:50Z
BUG: EWM(online) not raising NotImplementedError for unsupported
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index 566e3d7c66b79..108566c8866ee 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -237,6 +237,7 @@ Plotting Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ +- Bug in :class:`.ExponentialMovingWindow` ...
- [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 an entry in th...
https://api.github.com/repos/pandas-dev/pandas/pulls/48834
2022-09-28T17:39:46Z
2022-09-29T13:47:38Z
2022-09-29T13:47:38Z
2022-10-13T17:01:49Z
BUG: ArrowExtensionArray compared to invalid object not raising
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index a8ec836ba93df..4f4898fe64e35 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -91,7 +91,7 @@ Bug fixes - Bug in :func:`assert_index_equal` for extension arrays with non matching ``NA`` raising ``ValueE...
- [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 an entry in th...
https://api.github.com/repos/pandas-dev/pandas/pulls/48833
2022-09-28T17:23:06Z
2022-09-30T07:28:04Z
2022-09-30T07:28:04Z
2022-09-30T16:15:55Z
Document better PyObject printing via gdb
diff --git a/doc/source/development/debugging_extensions.rst b/doc/source/development/debugging_extensions.rst index 7ba2091e18853..cfed8dfbc5a85 100644 --- a/doc/source/development/debugging_extensions.rst +++ b/doc/source/development/debugging_extensions.rst @@ -77,6 +77,34 @@ Or for gdb Once the process launches,...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/48827
2022-09-28T02:00:16Z
2022-09-29T16:30:26Z
2022-09-29T16:30:26Z
2023-04-12T20:16:02Z
Backport PR #48760 on branch 1.5.x (REGR: groupby.size with axis=1 doesn't return a Series)
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index a3c82111c630a..6a8fae61e23ba 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -76,6 +76,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.plot` ignoring invalid ``colormap`` for ``kind="sca...
* REGR: groupby.size with axis=1 doesn't return a Series * Remove code block (cherry picked from commit 3622f15b5056b8f038d3b7adeb82eecfe980beca) - [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_cod...
https://api.github.com/repos/pandas-dev/pandas/pulls/48825
2022-09-28T01:24:42Z
2022-09-28T12:10:46Z
2022-09-28T12:10:46Z
2022-09-28T14:42:50Z
REGR: groupby fails with nullable dtypes and dropna=False
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index f58e10a701740..ab80bdb9ed782 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -83,7 +83,7 @@ Fixed regressions - Fixed :meth:`.DataFrameGroupBy.size` not returning a Series when ``axis=1`` (:issue:`487...
- [x] closes #48794 (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/48824
2022-09-28T01:05:12Z
2022-10-04T18:28:21Z
2022-10-04T18:28:21Z
2022-10-04T22:16:20Z
DEPR: Enforce DTI.to_series(keep_tz) removal
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 30acc117c237a..f295218dc4c76 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -144,6 +144,7 @@ Deprecations Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature. Introduced in https://github.com/pandas-dev/pandas/pull/29731
https://api.github.com/repos/pandas-dev/pandas/pulls/48823
2022-09-28T00:14:17Z
2022-10-20T08:19:44Z
2022-10-20T08:19:44Z
2022-10-20T16:13:37Z
DEPR: Enforce is_extension_type removal
diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst index 61ee894f4b126..1011159a9ae5f 100644 --- a/doc/source/reference/arrays.rst +++ b/doc/source/reference/arrays.rst @@ -630,7 +630,6 @@ Data type introspection api.types.is_datetime64_dtype api.types.is_datetime64_ns_dtype a...
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature. Introduced in https://github.com/pandas-dev/pandas/pull/29457
https://api.github.com/repos/pandas-dev/pandas/pulls/48822
2022-09-28T00:01:17Z
2022-10-19T21:32:58Z
2022-10-19T21:32:58Z
2022-10-19T22:56:36Z
DEPR: Enforce deprecation of Categorical.min/max(numeric_only)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d49181238b6bc..281dd1feca522 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -145,6 +145,7 @@ Deprecations Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...
- [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature. Added in https://github.com/pandas-dev/pandas/pull/27929
https://api.github.com/repos/pandas-dev/pandas/pulls/48821
2022-09-27T23:51:47Z
2022-10-20T08:17:55Z
2022-10-20T08:17:55Z
2022-10-20T16:16:44Z
BUG: to_datetime(format='...%f') parses nanoseconds
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index ee66f2f649bc2..a8ec836ba93df 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -76,6 +76,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.plot` ignoring invalid ``colormap`` for ``kind="sca...
- [x] closes #48767 (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/48820
2022-09-27T23:27:01Z
2022-09-29T13:40:39Z
2022-09-29T13:40:39Z
2022-09-29T15:25:05Z
API: make Timestamp/Timedelta _as_unit public as_unit
diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst index 33a611b15675d..5b41de4e12e6f 100644 --- a/doc/source/reference/arrays.rst +++ b/doc/source/reference/arrays.rst @@ -139,6 +139,7 @@ Properties Timestamp.second Timestamp.tz Timestamp.tzinfo + Timestamp.unit Timestamp....
- [ ] 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/48819
2022-09-27T23:18:19Z
2022-11-10T20:56:43Z
2022-11-10T20:56:43Z
2022-11-10T20:56:49Z
BUG: DTI-datetime_scalar preserve freq
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index 566e3d7c66b79..9f793532e5e6b 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -165,6 +165,7 @@ Datetimelike ^^^^^^^^^^^^ - Bug in :func:`pandas.infer_freq`, raising ``TypeError`` when inferred on :cla...
- [ ] 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/48818
2022-09-27T23:03:26Z
2022-09-28T23:23:54Z
2022-09-28T23:23:54Z
2022-10-13T17:01:48Z
Backport PR #48579 on branch 1.5.x (BUG: Fix calling groupBy(...).apply(func) on an empty dataframe invokes func)
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index 7ea2406a63d83..75d15184bcec7 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -75,6 +75,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.describe` raising ``TypeError`` when result contain...
(#48579) (cherry picked from commit 8b0ad717d1ec54dd40136817a326b41817ffcb86)
https://api.github.com/repos/pandas-dev/pandas/pulls/48817
2022-09-27T20:30:19Z
2022-09-27T22:34:15Z
2022-09-27T22:34:15Z
2022-09-27T22:34:20Z
BUG: DTI/TDI.get_loc with mismatched-reso scalars
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 58be977299e99..1d0eb256ca051 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -17,6 +17,10 @@ cnp.import_array() from pandas._libs cimport util from pandas._libs.hashtable cimport HashTable from pandas._libs.tslibs.nattype cimport ...
- [ ] 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/48815
2022-09-27T17:14:00Z
2022-09-27T22:32:36Z
2022-09-27T22:32:36Z
2022-10-13T17:01:48Z
STYLE,BUG: autotyping hook fails if run on no files
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8df6d70a3bed4..c64898cf7df09 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -268,7 +268,7 @@ repos: |/_testing/ - id: autotyping name: autotyping - entry: python -m libcst.tool codemod autotyp...
- [ ] closes #48808 (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/48814
2022-09-27T16:08:29Z
2022-09-28T13:43:03Z
2022-09-28T13:43:03Z
2022-09-28T15:42:56Z
DOC: Fix whatsnew
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index b29cf0424a9e7..cd56f590a33bf 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -206,7 +206,7 @@ Indexing Missing ^^^^^^^ -- Bug in :meth:`Index.equals` raising ``TypeError` when :class:`Index` consis...
- [ ] 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/48810
2022-09-27T12:20:52Z
2022-09-27T16:02:07Z
2022-09-27T16:02:07Z
2022-09-28T20:37:30Z
Backport PR #48785 on branch 1.5.x (BUG: still emitting unnecessary FutureWarning in DataFrame.sort_values with sparse columns)
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index a7bdf90c0f333..8b73cd84e9e00 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -86,6 +86,7 @@ Bug fixes - Bug in :meth:`Series.__getitem__` not falling back to positional for integer keys and boolean :c...
Backport PR #48785: BUG: still emitting unnecessary FutureWarning in DataFrame.sort_values with sparse columns
https://api.github.com/repos/pandas-dev/pandas/pulls/48807
2022-09-27T10:05:45Z
2022-09-27T12:19:57Z
2022-09-27T12:19:57Z
2022-09-27T12:19:57Z
Added padding and fixed columns for sponsor logos in mobile view
diff --git a/web/pandas/index.html b/web/pandas/index.html index 385084d479c98..ce1e1e1a8f561 100644 --- a/web/pandas/index.html +++ b/web/pandas/index.html @@ -44,12 +44,12 @@ <h5>Community</h5> <section> <h5>With the support of:</h5> {% for row in sponsors.ac...
Added padding and fixed columns for sponsor logos in mobile view - [ ] closes #48519 (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 ch...
https://api.github.com/repos/pandas-dev/pandas/pulls/48805
2022-09-27T04:54:17Z
2022-09-29T23:59:50Z
2022-09-29T23:59:50Z
2023-09-27T05:11:48Z
TST: Suppress Series constructor warning
diff --git a/pandas/tests/groupby/test_size.py b/pandas/tests/groupby/test_size.py index 92012436f6b47..d067efe3b61e5 100644 --- a/pandas/tests/groupby/test_size.py +++ b/pandas/tests/groupby/test_size.py @@ -33,7 +33,7 @@ def test_size_axis_1(df, axis_1, by, sort, dropna): counts = {key: sum(value == key for valu...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/48804
2022-09-27T03:24:19Z
2022-09-27T12:21:55Z
2022-09-27T12:21:55Z
2022-10-13T17:01:47Z
PERF: Delay creation of indexer in RangeIndex.sort_values
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index d726f69286469..b29cf0424a9e7 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -148,7 +148,7 @@ Performance improvements - Performance improvement for :meth:`MultiIndex.intersection` (:issue:`48604`) -...
- [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/v1.6.0.rst` file if fixing a bug or adding a new feature. ``` In [2]: ri = pd.RangeIndex(1_000_000) In [3]: %memit ri.sort_values()...
https://api.github.com/repos/pandas-dev/pandas/pulls/48801
2022-09-26T23:30:16Z
2022-09-27T07:53:13Z
2022-09-27T07:53:13Z
2022-10-13T17:01:46Z
Backport PR #48608 on branch 1.5.x (REGR: assert_index_equal raising with non matching pd.NA)
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index 6798c7074228c..509e30be96144 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -84,6 +84,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in :meth:`DataFrame.to_hdf` raising ``AssertionError`` with bo...
Backport PR #48608: REGR: assert_index_equal raising with non matching pd.NA
https://api.github.com/repos/pandas-dev/pandas/pulls/48800
2022-09-26T23:00:51Z
2022-09-27T12:19:43Z
2022-09-27T12:19:43Z
2022-09-27T12:19:43Z
Backport PR #48662 on branch 1.5.x (BUG: Series.getitem not falling back to positional for bool index)
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index 6798c7074228c..a7bdf90c0f333 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -83,6 +83,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- Bug in :meth:`Series.__getitem__` not falling back to positional...
Backport PR #48662: BUG: Series.getitem not falling back to positional for bool index
https://api.github.com/repos/pandas-dev/pandas/pulls/48799
2022-09-26T22:58:17Z
2022-09-27T07:04:04Z
2022-09-27T07:04:04Z
2022-09-27T07:04:04Z
Backport PR #48751 on branch 1.5.x (WEB: Update link to datapythonista blog url)
diff --git a/web/pandas/config.yml b/web/pandas/config.yml index df31b1a4fde19..da63777c0cfc5 100644 --- a/web/pandas/config.yml +++ b/web/pandas/config.yml @@ -62,7 +62,7 @@ blog: - https://wesmckinney.com/feeds/pandas.atom.xml - https://tomaugspurger.github.io/feed - https://jorisvandenbossche.github.io/feed...
Backport PR #48751: WEB: Update link to datapythonista blog url
https://api.github.com/repos/pandas-dev/pandas/pulls/48798
2022-09-26T22:47:52Z
2022-09-27T07:53:55Z
2022-09-27T07:53:55Z
2022-09-27T07:53:55Z
REGR: fix df.apply with keyword non-zero axis
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index ce19453691018..855bcb706b210 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -81,6 +81,8 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.fillna` replacing wrong values for ``datetime64[ns]...
Fixes #48656. Builds on top of #48693. An alternative fix could be to use `inspect.signature`, since `inspect.signature` defaults to following wrapped functions. But this seems like a more minimal change. - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.ht...
https://api.github.com/repos/pandas-dev/pandas/pulls/48797
2022-09-26T22:39:05Z
2022-09-30T14:18:56Z
2022-09-30T14:18:56Z
2022-09-30T16:18:10Z
Backport PR #48693 on branch 1.5.x (ENH: Make deprecate_nonkeyword_arguments alter function signature)
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index da0bd746e3da5..6db89e3536dc8 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -92,6 +92,7 @@ Bug fixes Other ~~~~~ +- Avoid showing deprecated signatures when introspecting functions with warnings a...
Backport PR #48693: ENH: Make deprecate_nonkeyword_arguments alter function signature
https://api.github.com/repos/pandas-dev/pandas/pulls/48795
2022-09-26T21:52:46Z
2022-09-27T20:59:01Z
2022-09-27T20:59:01Z
2022-09-27T20:59:02Z
Backport PR #48782 on branch 1.5.x (REGR: describe raising when result contains NA)
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index da0bd746e3da5..6798c7074228c 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -72,6 +72,7 @@ Fixed regressions - Fixed Regression in :meth:`Series.__setitem__` casting ``None`` to ``NaN`` for object dt...
Backport PR #48782: REGR: describe raising when result contains NA
https://api.github.com/repos/pandas-dev/pandas/pulls/48793
2022-09-26T20:40:52Z
2022-09-26T22:51:45Z
2022-09-26T22:51:45Z
2022-09-26T22:51:45Z
Created icons for dark theme
diff --git a/doc/source/_static/index_api.svg b/doc/source/_static/index_api.svg index 70bf0d3504b1a..69f7ba1d2d114 100644 --- a/doc/source/_static/index_api.svg +++ b/doc/source/_static/index_api.svg @@ -64,29 +64,29 @@ inkscape:connector-curvature="0" id="path899" d="M 324.96812,187.0949...
- [x] closes #48762 For the `svg` images mentioned in the referred issue, I created a version for the dark theme as suggested by @datapythonista. The images are retrieved by the pydata sphinx theme as explained in [PyData Theme documentation](https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/light-dar...
https://api.github.com/repos/pandas-dev/pandas/pulls/48790
2022-09-26T19:04:45Z
2022-09-30T00:51:13Z
2022-09-30T00:51:13Z
2022-10-04T15:33:38Z
DOC: Add example for `Series.get()`
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b520aab2cfa5b..14c28a1277759 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4314,10 +4314,17 @@ def get(self, key, default=None): 2014-02-14 22.0 medium 2014-02-15 35.0 medium + >>...
Add an example of `Series.get()` to `NDFrame`. Previously, [the docs for `Series.get()`](https://pandas.pydata.org/docs/reference/api/pandas.Series.get.html) only showed examples for `DataFrame.get()`, confusingly.
https://api.github.com/repos/pandas-dev/pandas/pulls/48789
2022-09-26T18:13:53Z
2022-09-30T00:52:21Z
2022-09-30T00:52:21Z
2023-03-30T02:42:16Z
BUG: still emitting unnecessary FutureWarning in DataFrame.sort_values with sparse columns
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index ef41b749c89e6..852166cbfaa7f 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -88,6 +88,7 @@ Bug fixes - Bug in :meth:`DataFrame.to_hdf` raising ``AssertionError`` with boolean index (:issue:`48667`) ...
- [x] closes #48784 (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/48785
2022-09-26T14:33:32Z
2022-09-27T10:05:20Z
2022-09-27T10:05:20Z
2022-09-27T10:05:20Z
REGR: describe raising when result contains NA
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index da0bd746e3da5..6798c7074228c 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -72,6 +72,7 @@ Fixed regressions - Fixed Regression in :meth:`Series.__setitem__` casting ``None`` to ``NaN`` for object dt...
- [x] closes #48778 (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/48782
2022-09-26T11:23:02Z
2022-09-26T20:40:21Z
2022-09-26T20:40:21Z
2022-09-26T21:06:46Z
ENH: Add option to use nullable dtypes in read_csv
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 15b3b894c68b6..1552f2a8d257b 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -197,6 +197,14 @@ dtype : Type name or dict of column -> type, default ``None`` Support for defaultdict was added. Specify a d...
- [x] closes #36712 (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/48776
2022-09-25T20:45:54Z
2022-10-07T16:41:34Z
2022-10-07T16:41:33Z
2022-10-13T17:01:45Z
DOC: Correct default color
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index c03cbf2ac60c3..471e77b56608d 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -105,7 +105,7 @@ def _mpl(func: Callable) -> Generator[tuple[Any, Any], None, None]: CSS properties to use for highlighting. If ...
Default color is not always yellow - [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/48775
2022-09-25T19:02:08Z
2022-09-26T17:51:02Z
2022-09-26T17:51:02Z
2022-10-13T17:01:44Z
ENH: Raise ParserError instead of IndexError when specifying an incorrect number of columns with index_col for the read_csv C parser.
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index d726f69286469..79d498c4d1669 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -115,7 +115,7 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor Other API changes ^^^^...
- [x] closes #16393 (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/48774
2022-09-25T18:44:06Z
2022-09-27T16:43:12Z
2022-09-27T16:43:12Z
2022-10-13T17:01:44Z
BUG: Bug fix for GH48567
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index a7c9a7eb88221..7c07d3112be3c 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -196,6 +196,7 @@ Plotting Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ - Bug in :meth:`DataFrameGroupBy.sample` rais...
Groupby for Series fails if an entry of the index of the Series is equal to the name of the index. Analyzing the bug, I think the following small change would solve the issue: diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 5fc713d84e..9281040a79 100644 --- a/pandas/core/groupby/g...
https://api.github.com/repos/pandas-dev/pandas/pulls/48772
2022-09-25T13:35:07Z
2022-09-30T16:20:03Z
2022-09-30T16:20:03Z
2022-10-13T17:01:43Z
DOC: Add docs for DataFrameGroupBy.fillna and SeriesGroupBy.fillna
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b520aab2cfa5b..4f851551e6a99 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6730,9 +6730,9 @@ def fillna( each index (for a Series) or column (for a DataFrame). Values not in the dict/Series/DataFrame wil...
- [ ] 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/48771
2022-09-25T13:06:15Z
2022-09-26T18:36:03Z
2022-09-26T18:36:03Z
2022-10-13T17:01:42Z
added sytle in stylesheet for <blockquote>
diff --git a/web/pandas/static/css/pandas.css b/web/pandas/static/css/pandas.css index 96ea6a6f2ae52..ec9a4bd502dd1 100644 --- a/web/pandas/static/css/pandas.css +++ b/web/pandas/static/css/pandas.css @@ -96,3 +96,10 @@ table.logo td { table.logo img { height: 4rem; } +blockquote { + background: #f9f9f9; + ...
Closes #48758 added styles for stylesheets for `<blockquote>` tag 1. added left-padding 2. also changed the font color ( default black to gray ) ### - screenshot of desktop ![op1](https://user-images.githubusercontent.com/76431630/192936005-221d7037-be4c-4e97-a896-f4e7b54069cc.png) ### - screenshot of mobil...
https://api.github.com/repos/pandas-dev/pandas/pulls/48770
2022-09-25T10:07:50Z
2022-10-14T22:39:56Z
2022-10-14T22:39:56Z
2022-10-14T22:40:03Z
SAS7BDAT parser: Drop unused instance variables
diff --git a/pandas/io/sas/sas7bdat.py b/pandas/io/sas/sas7bdat.py index 27bd0378e374a..9f16e0def0882 100644 --- a/pandas/io/sas/sas7bdat.py +++ b/pandas/io/sas/sas7bdat.py @@ -138,7 +138,7 @@ class SAS7BDATReader(ReaderBase, abc.Iterator): Return SAS7BDATReader object for iterations, returns chunks w...
I'm suggesting this as an alternative to https://github.com/pandas-dev/pandas/pull/48004. The `_page_count` attribute is read incorrectly (see https://github.com/pandas-dev/pandas/pull/48004) but it's also unused. I'm removing it here, along with some other unused things. - [ ] closes #xxxx (Replace xxxx with the...
https://api.github.com/repos/pandas-dev/pandas/pulls/48764
2022-09-24T20:20:35Z
2022-10-04T21:23:09Z
2022-10-04T21:23:09Z
2022-10-13T17:01:42Z
TYP: type all arguments with int default values
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 966fda1ed710a..8df6d70a3bed4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -268,7 +268,7 @@ repos: |/_testing/ - id: autotyping name: autotyping - entry: python -m libcst.tool codemod autotyp...
This enables the last missing check from autotyping: adding type annotations for int default values. Some of the `axis` might need some more scrutiny whether they allow only ints or also "index" and "columns". Wouldn't mind postponing that when tightening `Axis` to `Literal[0, 1, "index", "columns", "rows"]`.
https://api.github.com/repos/pandas-dev/pandas/pulls/48761
2022-09-24T15:35:06Z
2022-09-26T22:39:57Z
2022-09-26T22:39:57Z
2023-08-09T15:08:19Z
REGR: groupby.size with axis=1 doesn't return a Series
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index d61a8f720a0b4..96b5a554071b3 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -75,6 +75,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.plot` ignoring invalid ``colormap`` for ``kind="sca...
- [x] closes #48738 (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/48760
2022-09-24T13:36:05Z
2022-09-26T22:43:32Z
2022-09-26T22:43:32Z
2022-09-30T14:23:31Z
pylint pre-commit
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c64898cf7df09..039b3c4e4d86c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -59,6 +59,10 @@ repos: - flake8==5.0.4 - flake8-bugbear==22.7.1 - pandas-dev-flaker==0.5.0 +- repo: https://github.com/pycq...
- [ ] closes #48737 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Added pylint to CI. Disabled most messages due to the sheer amount of warnings and changes that would need to be fixed in other PR. @MarcoGorelli
https://api.github.com/repos/pandas-dev/pandas/pulls/48759
2022-09-24T12:58:28Z
2022-09-29T12:56:12Z
2022-09-29T12:56:12Z
2022-10-13T17:01:40Z
Updated docstring for MultiIndex.get_level_values
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 26dd957ff4d57..8e341cd8f80e0 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1729,7 +1729,7 @@ def get_level_values(self, level): Index(['d', 'e', 'f'], dtype='object', name='level_2') If ...
The docstring read "maybe casted to", instead of "may be cast to".
https://api.github.com/repos/pandas-dev/pandas/pulls/48756
2022-09-24T09:05:44Z
2022-09-26T19:40:29Z
2022-09-26T19:40:29Z
2022-10-13T17:01:39Z
Backport PR #40877 on branch 1.2.x (Skipt failing tests for numpy dev)
diff --git a/pandas/tests/arrays/boolean/test_arithmetic.py b/pandas/tests/arrays/boolean/test_arithmetic.py index 01de64568a011..9b854a81f2def 100644 --- a/pandas/tests/arrays/boolean/test_arithmetic.py +++ b/pandas/tests/arrays/boolean/test_arithmetic.py @@ -66,7 +66,10 @@ def test_div(left_array, right_array): @pyt...
Backport PR #40877 Had to add the is_numpy_dev import, we could otherwise import from other directory if this would be preferrable
https://api.github.com/repos/pandas-dev/pandas/pulls/40882
2021-04-11T16:43:29Z
2021-04-12T07:57:16Z
2021-04-12T07:57:16Z
2021-04-18T16:00:29Z
DOC: 1.2.4 release date
diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst index fffdf333178fc..54652ecc4dceb 100644 --- a/doc/source/whatsnew/v1.2.4.rst +++ b/doc/source/whatsnew/v1.2.4.rst @@ -1,7 +1,7 @@ .. _whatsnew_124: -What's new in 1.2.4 (April ??, 2021) ---------------------------------------- +What's new...
draft till #40878 is merged as may cause conflicts.
https://api.github.com/repos/pandas-dev/pandas/pulls/40880
2021-04-11T14:12:34Z
2021-04-12T12:17:07Z
2021-04-12T12:17:07Z
2021-04-12T12:18:08Z
REGR: ufunc with DataFrame input not passing all kwargs
diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst index fffdf333178fc..f9d62ba9bd61c 100644 --- a/doc/source/whatsnew/v1.2.4.rst +++ b/doc/source/whatsnew/v1.2.4.rst @@ -21,6 +21,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.where` not returning a copy in the case of an all T...
- [x] closes #40662 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry Credit to @attack68 for the fix, just figured we should try to get this is in for 1.2.4 if...
https://api.github.com/repos/pandas-dev/pandas/pulls/40878
2021-04-11T13:36:47Z
2021-04-12T14:27:29Z
2021-04-12T14:27:29Z
2021-04-12T15:07:58Z
Skipt failing tests for numpy dev
diff --git a/pandas/tests/arrays/boolean/test_arithmetic.py b/pandas/tests/arrays/boolean/test_arithmetic.py index f8f1af4c3da51..8e879372cba31 100644 --- a/pandas/tests/arrays/boolean/test_arithmetic.py +++ b/pandas/tests/arrays/boolean/test_arithmetic.py @@ -69,7 +69,10 @@ def test_div(left_array, right_array): @pyt...
- [x] xref #40874 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them Skipping for now.
https://api.github.com/repos/pandas-dev/pandas/pulls/40877
2021-04-11T12:57:21Z
2021-04-11T16:32:10Z
2021-04-11T16:32:10Z
2021-04-11T18:34:13Z
Backport PR #40850 on branch 1.2.x (REGR: object column repr not respecting float format)
diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst index 9cef1307278e8..fffdf333178fc 100644 --- a/doc/source/whatsnew/v1.2.4.rst +++ b/doc/source/whatsnew/v1.2.4.rst @@ -20,7 +20,7 @@ Fixed regressions - Fixed regression in (in)equality comparison of ``pd.NaT`` with a non-datetimelike numpy ...
Backport PR #40850: REGR: object column repr not respecting float format
https://api.github.com/repos/pandas-dev/pandas/pulls/40875
2021-04-11T12:41:00Z
2021-04-11T14:05:59Z
2021-04-11T14:05:59Z
2021-04-11T14:05:59Z
Add test to check check_like with different indexes
diff --git a/pandas/tests/util/test_assert_frame_equal.py b/pandas/tests/util/test_assert_frame_equal.py index bf1311460a5f5..24ee6afb7c254 100644 --- a/pandas/tests/util/test_assert_frame_equal.py +++ b/pandas/tests/util/test_assert_frame_equal.py @@ -321,3 +321,11 @@ def test_frame_equal_mixed_dtypes(frame_or_series,...
- [x] closes #39739 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/40872
2021-04-11T11:54:11Z
2021-04-11T13:01:50Z
2021-04-11T13:01:50Z
2021-04-11T13:01:55Z
Two missing spaces in argmax, argmin docs
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 4e7c311f39cdb..65adc258a9b69 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10843,7 +10843,7 @@ def median( @doc( _num_doc, desc="Return the maximum of the values over the requested axis.\n\n" - ...
I fixed the missing space that made the documentation render "isthe" instead of "is the". Before the change: - This **isthe** equivalent of the numpy.ndarray method argmax. - This **isthe** equivalent of the numpy.ndarray method argmin. After the change: - This **is the** equivalent of the numpy.ndarray method...
https://api.github.com/repos/pandas-dev/pandas/pulls/40871
2021-04-11T00:30:41Z
2021-04-11T06:02:43Z
2021-04-11T06:02:43Z
2021-04-11T06:02:44Z
Deprecate level keyword for dataframe and series aggregations
diff --git a/doc/source/user_guide/advanced.rst b/doc/source/user_guide/advanced.rst index 6377aeb0e7c74..bd9463c50ab1f 100644 --- a/doc/source/user_guide/advanced.rst +++ b/doc/source/user_guide/advanced.rst @@ -498,7 +498,7 @@ values across a level. For instance: ) df = pd.DataFrame(np.random.randn(4, 2), ind...
- [x] closes #39983 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry This would deprecate the level keyword if we want to move forward with this
https://api.github.com/repos/pandas-dev/pandas/pulls/40869
2021-04-10T21:16:50Z
2021-04-13T11:53:28Z
2021-04-13T11:53:28Z
2021-04-13T11:59:08Z
ARM64 parallel builds
diff --git a/.travis.yml b/.travis.yml index 8ede978074a9c..0098e3872bec7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,16 +35,9 @@ matrix: fast_finish: true include: - - arch: arm64 + - arch: arm64-graviton2 env: - - JOB="3.7, arm64" PYTEST_WORKERS=1 ENV_FILE="ci/deps/travis-37-arm64.ya...
- [x] closes #36719 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry Seems to have gotten build from > 1 hr to ~ 38 min.
https://api.github.com/repos/pandas-dev/pandas/pulls/40868
2021-04-10T20:16:59Z
2021-04-13T15:55:37Z
2021-04-13T15:55:36Z
2021-04-15T07:33:45Z
TYP: Overload series/drop_dupicates
diff --git a/pandas/core/series.py b/pandas/core/series.py index 968ab27d6d58c..5ba68aaa5c16d 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -2003,6 +2003,22 @@ def unique(self) -> ArrayLike: """ return super().unique() + @overload + def drop_duplicates(self, keep=..., inpla...
- [ ] closes part of https://github.com/MarcoGorelli/pyladies-sprint-April-2021/issues/29 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40867
2021-04-10T19:15:52Z
2021-04-12T08:11:23Z
2021-04-12T08:11:23Z
2021-05-11T08:27:12Z
TST Add test for iloc on interval index
diff --git a/pandas/tests/indexing/test_iloc.py b/pandas/tests/indexing/test_iloc.py index e2a063a7697d9..853c7079a3c1b 100644 --- a/pandas/tests/indexing/test_iloc.py +++ b/pandas/tests/indexing/test_iloc.py @@ -17,6 +17,7 @@ CategoricalDtype, DataFrame, Index, + Interval, NaT, Series, ...
- [ ] closes #17130 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them Adds tests for using iloc on an interval as index.
https://api.github.com/repos/pandas-dev/pandas/pulls/40866
2021-04-10T15:11:13Z
2021-04-12T13:31:43Z
2021-04-12T13:31:43Z
2021-04-12T13:35:28Z
REF: separate 2D only methods from ArrayManager
diff --git a/pandas/_typing.py b/pandas/_typing.py index c8df3ea0d7f76..9f23fcc56597f 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -185,11 +185,11 @@ ] # internals -Manager = Union["ArrayManager", "BlockManager", "SingleBlockManager"] +Manager = Union[ + "ArrayManager", "SingleArrayManager", "BlockM...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry ArrayManager analogue to #40843, discussed briefly in #40853
https://api.github.com/repos/pandas-dev/pandas/pulls/40863
2021-04-09T23:18:32Z
2021-04-14T13:05:49Z
2021-04-14T13:05:49Z
2021-04-14T14:06:40Z
Fix bug in index.union with duplicates and not a subset of each other
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 17cb0a7836fbe..f15c9ae4f7715 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -678,7 +678,7 @@ Interval Indexing ^^^^^^^^ -- Bug in :meth:`Index.union` dropping duplicate ``Index`` values when ``Ind...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them The previous fix missed one case where other has dups which are unique in self
https://api.github.com/repos/pandas-dev/pandas/pulls/40862
2021-04-09T22:57:33Z
2021-04-14T14:12:43Z
2021-04-14T14:12:43Z
2021-04-14T20:14:45Z
Fix fillna accepting downcast as dict
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 21e6f0ea57451..8b0fec2f2c6f9 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -682,7 +682,7 @@ Missing - Bug in :class:`Grouper` now correctly propagates ``dropna`` argument and :meth:`DataFrameGroup...
- [x] closes #40809 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry This fix makes sense in this case I think, but this does not fix the case for non-list lik...
https://api.github.com/repos/pandas-dev/pandas/pulls/40861
2021-04-09T22:15:49Z
2021-04-13T23:22:59Z
2021-04-13T23:22:59Z
2021-04-16T20:37:01Z
TYP: Improve clip() return and argument typing.
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 62ef9c91770b6..6b59841c909d6 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -7367,16 +7367,124 @@ def _clip_with_one_bound(self, threshold, method, axis, inplace): threshold = align_method_FRAME(self, threshold, axi...
- [x] closes #40829 - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/40860
2021-04-09T20:16:04Z
2021-04-11T11:13:41Z
2021-04-11T11:13:40Z
2021-04-14T14:56:45Z
REF: NDFrame dont mixin SelectionMixin
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index e3a643a38e24c..a603222094bdb 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -918,12 +918,12 @@ def external_error_raised(expected_exception: type[Exception]) -> ContextManager return pytest.raises(expected_e...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40857
2021-04-09T19:29:24Z
2021-04-10T01:25:32Z
2021-04-10T01:25:32Z
2021-04-10T01:31:24Z
CI: doc failure
diff --git a/doc/source/user_guide/window.rst b/doc/source/user_guide/window.rst index 5efb3f40f5018..b692685b90234 100644 --- a/doc/source/user_guide/window.rst +++ b/doc/source/user_guide/window.rst @@ -158,7 +158,9 @@ By default the labels are set to the right edge of the window, but a This can also be applied ...
Attempt to fix doc failure
https://api.github.com/repos/pandas-dev/pandas/pulls/40856
2021-04-09T19:03:33Z
2021-04-09T21:20:00Z
2021-04-09T21:20:00Z
2021-04-09T21:55:25Z
TYP: implement typing.Manager2D
diff --git a/pandas/_typing.py b/pandas/_typing.py index 36441e620286d..c8df3ea0d7f76 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -187,6 +187,9 @@ # internals Manager = Union["ArrayManager", "BlockManager", "SingleBlockManager"] SingleManager = Union["SingleArrayManager", "SingleBlockManager"] +Manager...
Makes it feasible to annotate a Manager as specifically-2D, which I find makes it easier to reason about some of the groupby code. @jorisvandenbossche any objection to a refactor of ArrayManager to make SingleArrayManager share a parent class with ArrayManager, but not subclass it? See https://github.com/pandas-dev...
https://api.github.com/repos/pandas-dev/pandas/pulls/40853
2021-04-09T16:41:52Z
2021-04-13T13:21:10Z
2021-04-13T13:21:10Z
2021-04-13T14:17:08Z
PERF: use ndarray.take instead of algos.take
diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py index 5bf9f81e3073d..6de9898a6dec0 100644 --- a/pandas/core/groupby/ops.py +++ b/pandas/core/groupby/ops.py @@ -67,7 +67,6 @@ maybe_fill, ) -from pandas.core import algorithms from pandas.core.arrays import ExtensionArray from pandas.core.ba...
Un-revert part of #40510 in the hopes of tracking down where the perf impact was.
https://api.github.com/repos/pandas-dev/pandas/pulls/40852
2021-04-09T16:13:45Z
2021-04-13T15:24:37Z
2021-04-13T15:24:37Z
2021-04-17T10:17:04Z
DEPS: drop numpy 1.16 #40814
diff --git a/ci/azure/windows.yml b/ci/azure/windows.yml index e510f4115b25f..5644ad46714d5 100644 --- a/ci/azure/windows.yml +++ b/ci/azure/windows.yml @@ -8,7 +8,7 @@ jobs: vmImage: ${{ parameters.vmImage }} strategy: matrix: - py37_np16: + py37_np17: ENV_FILE: ci/deps/azure-windows-37...
- [x] closes #40814
https://api.github.com/repos/pandas-dev/pandas/pulls/40851
2021-04-09T16:09:49Z
2021-04-13T23:09:02Z
2021-04-13T23:09:01Z
2022-11-18T02:21:49Z
REGR: object column repr not respecting float format
diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst index 9cef1307278e8..fffdf333178fc 100644 --- a/doc/source/whatsnew/v1.2.4.rst +++ b/doc/source/whatsnew/v1.2.4.rst @@ -20,7 +20,7 @@ Fixed regressions - Fixed regression in (in)equality comparison of ``pd.NaT`` with a non-datetimelike numpy ...
- [x] closes #40024 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry This is a regression caused by #38759
https://api.github.com/repos/pandas-dev/pandas/pulls/40850
2021-04-09T15:29:39Z
2021-04-11T12:39:10Z
2021-04-11T12:39:10Z
2021-04-11T12:49:42Z
BUG: fix kwargs in `Styler.where`
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 3a0e1b7568c91..a9ad369ed7b3a 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -814,6 +814,7 @@ Other - Bug in :meth:`Styler.background_gradient` where text-color was not determined correctly (:issue:`3...
Simple bug fix. `kwargs` not passed in correct place. partially closes #40124
https://api.github.com/repos/pandas-dev/pandas/pulls/40845
2021-04-09T07:31:48Z
2021-04-09T16:29:18Z
2021-04-09T16:29:18Z
2021-04-12T18:45:03Z
REF: move 2D-only methods to BlockManager
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index b93f09c7df806..07ee23cec6648 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -339,58 +339,6 @@ def __repr__(self) -> str: output += f"\n{block}" return output - d...
https://api.github.com/repos/pandas-dev/pandas/pulls/40843
2021-04-09T04:06:34Z
2021-04-14T12:58:59Z
2021-04-14T12:58:59Z
2021-04-14T14:05:09Z
PERF: put BlockManager constructor in cython
diff --git a/pandas/_libs/internals.pyi b/pandas/_libs/internals.pyi index d35d414aaa012..a46a1747d1d8d 100644 --- a/pandas/_libs/internals.pyi +++ b/pandas/_libs/internals.pyi @@ -11,6 +11,9 @@ from pandas._typing import ( T, ) +from pandas import Index +from pandas.core.internals.blocks import Block as B + d...
No idea why mypy started complaining about the io.parsers stuff
https://api.github.com/repos/pandas-dev/pandas/pulls/40842
2021-04-09T01:08:38Z
2021-04-19T16:23:24Z
2021-04-19T16:23:24Z
2021-04-20T08:57:48Z
PERF: NDArrayBackedExtensionArray in cython
diff --git a/pandas/_libs/arrays.pyx b/pandas/_libs/arrays.pyx new file mode 100644 index 0000000000000..1f4a47c4e252a --- /dev/null +++ b/pandas/_libs/arrays.pyx @@ -0,0 +1,167 @@ +""" +Cython implementations for internal ExtensionArrays. +""" +cimport cython + +import numpy as np + +cimport numpy as cnp +from numpy c...
This is a reboot of #40054, implements NDArrayBacked in a new arrays.pyx rather than in lib.pyx. The perf benefits have improved since #40054, as there is now the prospect of implementing a NDArrayBackedExtensionBlock in cython which will appreciably improve constructor and slicing performance.
https://api.github.com/repos/pandas-dev/pandas/pulls/40840
2021-04-08T22:27:24Z
2021-04-14T13:04:21Z
2021-04-14T13:04:21Z
2021-04-14T14:10:05Z
DOC: Fix wrong URL in web/README.md
diff --git a/web/README.md b/web/README.md index 7396fbd0833a1..2e0fa6c8885a4 100644 --- a/web/README.md +++ b/web/README.md @@ -1,4 +1,4 @@ -Directory containing the pandas website (hosted at https://pandas.io). +Directory containing the pandas website (hosted at https://pandas.pydata.org). The website sources are ...
- [x] closes #40828 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40838
2021-04-08T21:44:57Z
2021-04-09T01:40:51Z
2021-04-09T01:40:51Z
2021-04-09T07:28:42Z
TST: make flaky zip check less strict
diff --git a/pandas/tests/io/test_gcs.py b/pandas/tests/io/test_gcs.py index 356c82293359a..2ba4fbe71e244 100644 --- a/pandas/tests/io/test_gcs.py +++ b/pandas/tests/io/test_gcs.py @@ -99,12 +99,13 @@ def test_to_read_gcs(gcs_buffer, format): def assert_equal_zip_safe(result: bytes, expected: bytes): """ - W...
Saw this failure the other day: ``` pandas/tests/io/test_gcs.py:137: 71 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 72 73 result = b'PK\x03\x04\x14\x00\x00\x00\x08\x00\xe0\xa1\x87R3ET~\x18\x06\x00\x00\x8c\n\x00\x00\x03\x00\x00\x00zip-\x96]WT;\x0c\x8...x00\x00\x00\x00\x80\x...
https://api.github.com/repos/pandas-dev/pandas/pulls/40837
2021-04-08T18:08:44Z
2021-04-13T15:50:21Z
2021-04-13T15:50:21Z
2021-04-13T16:53:51Z
BUG: Incorrect index shape when using a user-defined function for aggregating a grouped series with object-typed index.
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index ea7e0f88ff81e..e379f3126fa77 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -789,6 +789,7 @@ Groupby/resample/rolling - :class:`core.window.ewm.ExponentialMovingWindow` now raises a ``NotImplementedE...
- [x] closes #40014 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40835
2021-04-08T14:02:33Z
2021-04-15T04:16:50Z
2021-04-15T04:16:49Z
2021-04-15T04:17:10Z
CLN: tighten cython declarations
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index f1f56c6c0c855..f7cec262ca302 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -74,6 +74,7 @@ cdef class IndexEngine: return val in self.mapping cpdef get_loc(self, object val): + # -> Py_ssize_t | slice | ndarra...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40834
2021-04-08T03:52:11Z
2021-04-13T11:36:23Z
2021-04-13T11:36:23Z
2021-04-13T14:22:55Z
TYP: writers.pyi
diff --git a/pandas/_libs/writers.pyi b/pandas/_libs/writers.pyi new file mode 100644 index 0000000000000..67f6059c2a825 --- /dev/null +++ b/pandas/_libs/writers.pyi @@ -0,0 +1,24 @@ +import numpy as np + +# TODO: can make this more specific +def write_csv_rows( + data: list, + data_index: np.ndarray, + nlevel...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40832
2021-04-07T23:03:01Z
2021-04-08T12:26:06Z
2021-04-08T12:26:06Z
2021-04-08T14:30:49Z
TYP: join.pyi
diff --git a/pandas/_libs/join.pyi b/pandas/_libs/join.pyi new file mode 100644 index 0000000000000..4ae3ef0781dde --- /dev/null +++ b/pandas/_libs/join.pyi @@ -0,0 +1,144 @@ +import numpy as np + +def inner_join( + left: np.ndarray, # const intp_t[:] + right: np.ndarray, # const intp_t[:] + max_groups: int...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40831
2021-04-07T23:02:05Z
2021-04-08T12:26:46Z
2021-04-08T12:26:46Z
2021-04-08T14:29:09Z
TST: add test on checking objects to concatenate
diff --git a/pandas/tests/reshape/concat/test_concat.py b/pandas/tests/reshape/concat/test_concat.py index 7b520171379c3..55ae754761a07 100644 --- a/pandas/tests/reshape/concat/test_concat.py +++ b/pandas/tests/reshape/concat/test_concat.py @@ -344,6 +344,10 @@ def test_concat_single_with_key(self): expected =...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry When looking through the enhancement xref #40820, I noticed that there was no test checkin...
https://api.github.com/repos/pandas-dev/pandas/pulls/40822
2021-04-07T08:22:34Z
2021-04-08T14:36:30Z
2021-04-08T14:36:30Z
2021-04-08T14:36:35Z
DEPR: `Styler.where` possible deprecation
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index ff25bb1411189..4394c2023ceb9 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -572,7 +572,6 @@ def apply( See Also -------- - Styler.where: Apply CSS-styles based on a conditional function el...
closes #40124 Proposal to deprecate the method: `Styler.where`, since `Styler.applymap` and `Styler.where` are so similar in function, and return signatures, that it is almost confusing to have 2 methods for the same thing. Note that `Styler.where` offers no advantage over `applymap` since internally it just res...
https://api.github.com/repos/pandas-dev/pandas/pulls/40821
2021-04-07T06:08:20Z
2021-04-26T12:16:07Z
2021-04-26T12:16:07Z
2021-04-26T12:34:15Z