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
TYP: add some types to pandas/core/arrays/numpy_.py
diff --git a/pandas/core/arrays/numpy_.py b/pandas/core/arrays/numpy_.py index 604bac4bf9b61..e116d180e3a14 100644 --- a/pandas/core/arrays/numpy_.py +++ b/pandas/core/arrays/numpy_.py @@ -1,4 +1,5 @@ import numbers +from typing import Union import numpy as np from numpy.lib.mixins import NDArrayOperatorsMixin @@ ...
broken off #28339
https://api.github.com/repos/pandas-dev/pandas/pulls/29969
2019-12-02T16:07:17Z
2019-12-03T18:59:26Z
2019-12-03T18:59:26Z
2019-12-03T21:03:14Z
TYP: some types for pandas/core/arrays/base.py
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index bf50d6e9b50e7..dc1a23e83f981 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -451,7 +451,9 @@ def _values_for_argsort(self) -> np.ndarray: # Note: this is used in `ExtensionArray.argsort`. return np....
broken off #28339
https://api.github.com/repos/pandas-dev/pandas/pulls/29968
2019-12-02T16:03:35Z
2019-12-02T16:53:40Z
2019-12-02T16:53:40Z
2019-12-03T12:07:39Z
API: Uses pd.NA in IntegerArray
diff --git a/doc/source/user_guide/integer_na.rst b/doc/source/user_guide/integer_na.rst index 77568f3bcb244..a45d7a4fa1547 100644 --- a/doc/source/user_guide/integer_na.rst +++ b/doc/source/user_guide/integer_na.rst @@ -15,6 +15,10 @@ Nullable integer data type IntegerArray is currently experimental. Its API or im...
Just a WIP for now. I haven't closely reviewed this since pd.NA was merged into master. cc @jorisvandenbossche Closes https://github.com/pandas-dev/pandas/issues/15375
https://api.github.com/repos/pandas-dev/pandas/pulls/29964
2019-12-02T12:45:04Z
2019-12-30T17:55:18Z
2019-12-30T17:55:18Z
2019-12-30T17:55:21Z
STY: "{foo!r}" -> "{repr(foo)}" #batch-5
diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index 5c14c3cd2a2b5..6c822fd5a6822 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -2589,11 +2589,6 @@ def df_main_dtypes(): class TestNLargestNSmallest: - dtype_error_msg_tem...
- [x] ref #29886 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/29963
2019-12-02T11:03:13Z
2019-12-10T14:49:36Z
2019-12-10T14:49:36Z
2019-12-20T14:41:40Z
Use new NA scalar in BooleanArray
diff --git a/pandas/_libs/missing.pyx b/pandas/_libs/missing.pyx index 9bf955ad369e7..30832a8e4daab 100644 --- a/pandas/_libs/missing.pyx +++ b/pandas/_libs/missing.pyx @@ -289,7 +289,8 @@ cdef inline bint is_null_period(v): def _create_binary_propagating_op(name, divmod=False): def method(self, other): - ...
Follow-up on https://github.com/pandas-dev/pandas/pull/29597 and https://github.com/pandas-dev/pandas/pull/29555, now actually using the `pd.NA` scalar in `BooleanArray`.
https://api.github.com/repos/pandas-dev/pandas/pulls/29961
2019-12-02T09:14:44Z
2019-12-04T19:27:34Z
2019-12-04T19:27:34Z
2019-12-04T20:05:24Z
STY: "{foo!r}" -> "{repr(foo)}" #batch-4
diff --git a/pandas/io/html.py b/pandas/io/html.py index 5f38f866e1643..b8cb6679a9562 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -560,9 +560,7 @@ def _parse_tables(self, doc, match, attrs): unique_tables.add(table) if not result: - raise ValueError( - "No...
- [x] ref #29886 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/29959
2019-12-02T08:41:53Z
2019-12-02T12:45:03Z
2019-12-02T12:45:03Z
2019-12-02T14:06:49Z
CLN: small things in pytables
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 39e9d467b652f..5a42df92ddf84 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -312,7 +312,7 @@ def read_hdf(path_or_buf, key=None, mode: str = "r", **kwargs): key : object, optional The group identifier in the store. Can be ...
Things I find myself doing in a bunch of local branches. cc @WillAyd.
https://api.github.com/repos/pandas-dev/pandas/pulls/29958
2019-12-02T03:37:07Z
2019-12-02T12:34:19Z
2019-12-02T12:34:19Z
2019-12-02T16:12:00Z
Make kwargs explicit in put, append
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index e19bf9c1c39ea..8f8cfe7f6618b 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2412,9 +2412,13 @@ def to_hdf( complib: Optional[str] = None, append: bool_t = False, format: Optional[str] = None, + ind...
Made possible by #29951, progress towards #20903 @jreback input needed on whether certain not-covered-in-tests cases should be considered possible. See that both `put` and `append` still contain `**kwargs`. In all extant tests, kwargs is always empty. But there are remaining keywords that write_to_group (which b...
https://api.github.com/repos/pandas-dev/pandas/pulls/29957
2019-12-02T02:42:54Z
2019-12-04T14:06:40Z
2019-12-04T14:06:40Z
2019-12-04T16:40:14Z
DOC : Typo fix in userguide/Styling
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 5e026e3a7d78f..633827eb79f46 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -677,7 +677,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Notice that you're able ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Fixed a typo in the user-guide/Styling: https://pandas-docs.github.io/pandas-docs-travis/user_guide/style.html#Sharing-Styles In the line: `Notic...
https://api.github.com/repos/pandas-dev/pandas/pulls/29956
2019-12-02T02:37:39Z
2019-12-02T12:35:15Z
2019-12-02T12:35:15Z
2019-12-02T12:35:21Z
DEPR: Change default value for CategoricalDtype.ordered from None to False
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 38051e9772ae9..3bd8d06d3973d 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -621,6 +621,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Changed :meth:`Timedelta.resolutio...
- [X] closes #27203 - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry A quick summary of the deprecation details can be found here: https://github.com/pandas-dev/pandas/pull/26403#issuecomment-507351745
https://api.github.com/repos/pandas-dev/pandas/pulls/29955
2019-12-02T02:10:23Z
2019-12-09T09:10:56Z
2019-12-09T09:10:56Z
2019-12-09T16:02:44Z
Reduce Loosely Typed Functions in objToJSON
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index 21f439ec93e0f..608504a668175 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -385,42 +385,8 @@ static PyObject *get_item(PyObject *obj, Py_ssize_t i) { ...
Part of my perpetual goal to simplify this. Right now we override the built-in capabilities of the JSON encoder and use multiple layers of loosely typed functions. I think this is pretty confusing, so I am trying to reduce the callbacks and set native values directly during iteration This isn't a full solve - rather...
https://api.github.com/repos/pandas-dev/pandas/pulls/29954
2019-12-02T01:44:02Z
2019-12-07T22:27:25Z
2019-12-07T22:27:25Z
2019-12-07T22:28:57Z
STY: "{foo!r}" -> "{repr(foo)}" #batch-3
diff --git a/pandas/core/missing.py b/pandas/core/missing.py index 9f4f7445509c9..5b9e37bd54bad 100644 --- a/pandas/core/missing.py +++ b/pandas/core/missing.py @@ -211,9 +211,9 @@ def interpolate_1d( valid_limit_directions = ["forward", "backward", "both"] limit_direction = limit_direction.lower() if li...
- [x] ref #29886 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/29953
2019-12-02T01:31:19Z
2019-12-10T12:04:50Z
2019-12-10T12:04:50Z
2019-12-10T12:08:07Z
CLN: f-string in pandas/core/window/*
diff --git a/pandas/core/window/common.py b/pandas/core/window/common.py index 453fd12495543..9f377c180a263 100644 --- a/pandas/core/window/common.py +++ b/pandas/core/window/common.py @@ -303,10 +303,7 @@ def calculate_min_periods( else: min_periods = max(required_min_periods, min_periods) if min_pe...
ref #29547 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/29952
2019-12-02T01:26:19Z
2019-12-02T23:29:21Z
2019-12-02T23:29:21Z
2019-12-02T23:29:29Z
CLN: fix pytables passing too many kwargs
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 6ef821fc52d46..dae9a01feeecf 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -1431,7 +1431,12 @@ def _validate_format(self, format: str, kwargs: Dict[str, Any]) -> Dict[str, Any return kwargs def _create_storer( - ...
We have a few methods that take `**kwargs` and ignore them. It turns out the reason for this is in `_write_to_group`, where we pass `**kwargs` to two separate functions (`_create_storer` and `write`), each of which actually needs a specific subset. By making kwargs explicit in _write_to_group, we can pass the correct...
https://api.github.com/repos/pandas-dev/pandas/pulls/29951
2019-12-02T00:41:44Z
2019-12-02T01:45:36Z
2019-12-02T01:45:36Z
2019-12-02T01:53:30Z
STY: "{foo!r}" -> "{repr(foo)}" #batch-2
diff --git a/pandas/core/computation/pytables.py b/pandas/core/computation/pytables.py index 65e38ff290ce4..8eef37a359a8e 100644 --- a/pandas/core/computation/pytables.py +++ b/pandas/core/computation/pytables.py @@ -52,7 +52,7 @@ def _resolve_name(self): if self.side == "left": # Note: The behavi...
- [x] ref #29886 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/29950
2019-12-02T00:17:58Z
2019-12-02T01:24:13Z
2019-12-02T01:24:13Z
2019-12-02T11:04:09Z
STY: Added space at the end of the sentence
diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index 9414786424245..89e80b3b42017 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -574,8 +574,8 @@ def update_dtype( "Constructing a CategoricalDtype without specifying " "...
Feeling strange about opening a PR just for this, but my OCD is killing me.
https://api.github.com/repos/pandas-dev/pandas/pulls/29949
2019-12-01T23:56:52Z
2019-12-02T00:55:05Z
2019-12-02T00:55:05Z
2019-12-02T00:58:23Z
STY: "{foo!r}" -> "{repr(foo)}" #batch-1
diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index 6bd8693dffebd..a99ddc16ac3af 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -179,8 +179,8 @@ cdef class IntervalMixin: When `other` is not closed exactly the same as self. """ if self.close...
- [x] ref #29886 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/29948
2019-12-01T23:36:30Z
2019-12-02T01:42:06Z
2019-12-02T01:42:06Z
2019-12-02T11:04:19Z
TYP: Annotated __eq__
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index c8985c365741d..41420dbceef9d 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -1,6 +1,7 @@ import cython import time +from typing import Any from cpython.datetime cimport (PyDateTime_IMPORT, ...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/29947
2019-12-01T22:28:46Z
2019-12-02T01:44:56Z
2019-12-02T01:44:56Z
2019-12-02T01:45:40Z
ENH: Allow column grouping in DataFrame.plot
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 45c32d689bd5b..fccfbb98f2591 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -133,6 +133,7 @@ Other enhancements - :meth:`MultiIndex.to_frame` now supports the argument ``allow_duplicates`` and raises...
- [X] closes #29688 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is an attempt at #29688 i.e. group some columns on the same ax when calling `df.plot` See [this gist](https://gist.github.com/NicolasHug/4d1...
https://api.github.com/repos/pandas-dev/pandas/pulls/29944
2019-12-01T20:04:47Z
2022-06-09T12:44:15Z
2022-06-09T12:44:15Z
2022-06-09T12:44:23Z
BUG: fix Series.interpolate(method='index') with unsorted index
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 3f8d9d3916797..2a65c5c8eb458 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -550,6 +550,7 @@ Numeric - Bug in :class:`UInt64Index` precision loss while constructing from a list with values in the ``n...
`Series.interpolate(method='index')` use [numpy.interp](https://docs.scipy.org/doc/numpy/reference/generated/numpy.interp.html) under the hood, which cannot work with unsorted X values. Here we sort the known data for `numpy.interp`. - [x] closes #21037 - [x] tests added / passed - [x] passes `black pandas` - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/29943
2019-12-01T15:18:48Z
2019-12-03T22:36:37Z
2019-12-03T22:36:37Z
2019-12-03T22:36:38Z
A closing parenthesis has been added to resolve a typo.
diff --git a/doc/source/getting_started/basics.rst b/doc/source/getting_started/basics.rst index 6301fee7775cf..d489d35dc1226 100644 --- a/doc/source/getting_started/basics.rst +++ b/doc/source/getting_started/basics.rst @@ -2006,7 +2006,7 @@ The number of columns of each type in a ``DataFrame`` can be found by calling...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This pull request addresses https://github.com/pandas-dev/pandas/issues/29934
https://api.github.com/repos/pandas-dev/pandas/pulls/29942
2019-12-01T02:46:53Z
2019-12-01T07:08:05Z
2019-12-01T07:08:05Z
2019-12-01T17:05:17Z
ENH: support datetime64, datetime64tz in nanops.mean, nanops.median
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 95ed60b075884..c1932d7e4b30d 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -73,6 +73,7 @@ Backwards incompatible API changes Deprecations ~~~~~~~~~~~~ - Lookups on a :class:`Series` with a single-...
Tracking down relevant issues and figuring out test coverage is the "WIP" part of this.
https://api.github.com/repos/pandas-dev/pandas/pulls/29941
2019-11-30T23:16:15Z
2020-02-12T16:19:13Z
2020-02-12T16:19:13Z
2020-02-12T16:28:16Z
BUG: merge_asof with tz_aware left index and right column
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 3f8d9d3916797..392089c2bb6d2 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -664,7 +664,8 @@ Reshaping - Bug where :meth:`DataFrame.equals` returned True incorrectly in some cases when two DataFrames...
- [x] closes #29864 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/29940
2019-11-30T22:33:58Z
2019-12-01T21:32:57Z
2019-12-01T21:32:57Z
2019-12-01T21:41:02Z
CLN: explicit signature for to_hdf
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 42b8214e07d49..48500a9a428d0 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2403,7 +2403,19 @@ def to_json( indent=indent, ) - def to_hdf(self, path_or_buf, key, **kwargs): + def to_hdf( + self,...
progress towards #20903
https://api.github.com/repos/pandas-dev/pandas/pulls/29939
2019-11-30T19:42:37Z
2019-12-01T23:20:37Z
2019-12-01T23:20:37Z
2019-12-01T23:23:20Z
STY: F-strings and repr
diff --git a/pandas/tests/tseries/offsets/test_fiscal.py b/pandas/tests/tseries/offsets/test_fiscal.py index 8b1aaafb94e0b..c97e0b8493f9c 100644 --- a/pandas/tests/tseries/offsets/test_fiscal.py +++ b/pandas/tests/tseries/offsets/test_fiscal.py @@ -79,10 +79,9 @@ def test_get_offset(): for name, expected in pair...
- [ ] ref #29886 and #29547 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/29938
2019-11-30T15:56:51Z
2019-12-01T21:35:41Z
2019-12-01T21:35:41Z
2019-12-01T22:28:23Z
CI: added unwanted pattern test case for "foo.__class__" instead of type(foo)
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 4e25fd0ddb5ea..ceb13c52ded9c 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -194,6 +194,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then invgrep -R --include="*.py" -P '# type: (?!ignore)' pandas RET=$(($RET + $?)) ; echo $MSG "DONE...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ref #29816 (splitted to #29889, #29893, #29894, #29902, #29904, #29905)
https://api.github.com/repos/pandas-dev/pandas/pulls/29937
2019-11-30T10:26:04Z
2019-12-01T17:45:23Z
2019-12-01T17:45:23Z
2019-12-01T20:46:08Z
CLN: make kwargs explicit in pytables constructors
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index dae16dfdef01f..8805cc438ac3b 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -1706,7 +1706,6 @@ class IndexCol: name: str cname: str - kind_attr: str def __init__( self, @@ -1717,12 +1716,10 @@ def __init__...
Orthogonal to #29935.
https://api.github.com/repos/pandas-dev/pandas/pulls/29936
2019-11-30T03:45:38Z
2019-12-01T22:22:06Z
2019-12-01T22:22:06Z
2019-12-01T22:29:19Z
CLN: make kwargs explicit for pytables read_ methods
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index dae16dfdef01f..cb6281fcb1579 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -8,7 +8,17 @@ import itertools import os import re -from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Type, Union +from typing import ( + ...
https://api.github.com/repos/pandas-dev/pandas/pulls/29935
2019-11-30T03:00:53Z
2019-12-01T23:10:31Z
2019-12-01T23:10:31Z
2019-12-01T23:23:56Z
CLN: assorted cleanups
diff --git a/doc/redirects.csv b/doc/redirects.csv index f124fdb840ce0..b8dac83e301d5 100644 --- a/doc/redirects.csv +++ b/doc/redirects.csv @@ -829,174 +829,6 @@ generated/pandas.MultiIndex.to_frame,../reference/api/pandas.MultiIndex.to_frame generated/pandas.notna,../reference/api/pandas.notna generated/pandas.notn...
https://api.github.com/repos/pandas-dev/pandas/pulls/29933
2019-11-30T01:22:59Z
2019-11-30T17:42:54Z
2019-11-30T17:42:54Z
2019-11-30T17:52:11Z
TST: add test for rolling max/min/mean with DatetimeIndex over different frequencies
diff --git a/pandas/tests/window/test_timeseries_window.py b/pandas/tests/window/test_timeseries_window.py index 02969a6c6e822..46582b4b50c84 100644 --- a/pandas/tests/window/test_timeseries_window.py +++ b/pandas/tests/window/test_timeseries_window.py @@ -535,15 +535,34 @@ def test_ragged_max(self): expected[...
Follow-up work on #29761 - parametrize over different operations and frequencies - [x] xref #21096 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/29932
2019-11-30T00:14:05Z
2019-12-01T23:22:15Z
2019-12-01T23:22:14Z
2019-12-01T23:22:21Z
DEPR: DataFrame.sort_index by keyword
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index bb4a24e1b4eb5..9aa9a168ef50c 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -408,6 +408,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Removed the previously deprecated ...
This one was deprecated back in 0.17.0, so long time coming. There's some more cleanup that can be done around this method in a follow-up.
https://api.github.com/repos/pandas-dev/pandas/pulls/29931
2019-11-29T22:02:49Z
2019-11-29T23:07:40Z
2019-11-29T23:07:40Z
2019-11-29T23:26:11Z
DEPR: DTI/TDI/PI constructor arguments
diff --git a/doc/source/whatsnew/v0.15.0.rst b/doc/source/whatsnew/v0.15.0.rst index c27ada6ef3b58..b328e549e8899 100644 --- a/doc/source/whatsnew/v0.15.0.rst +++ b/doc/source/whatsnew/v0.15.0.rst @@ -312,14 +312,13 @@ Timezone handling improvements previously this resulted in ``Exception`` or ``TypeError`` (:issue:...
https://api.github.com/repos/pandas-dev/pandas/pulls/29930
2019-11-29T20:57:35Z
2019-12-02T04:26:17Z
2019-12-02T04:26:17Z
2019-12-02T16:08:36Z
DEPR: tz_convert in the Timestamp constructor raises
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 3f8d9d3916797..5af529199c014 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -462,6 +462,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Changed the default ``fill_value``...
- [x] xref #23621 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/29929
2019-11-29T20:24:07Z
2019-12-01T21:38:47Z
2019-12-01T21:38:47Z
2019-12-01T21:41:12Z
DEPR: passing str alias to in DatetimeTZDtype
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index e54397e635c77..3b5c1f7a39b0e 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -427,6 +427,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Removed the previously deprecated ...
https://api.github.com/repos/pandas-dev/pandas/pulls/29927
2019-11-29T16:28:55Z
2019-11-29T22:27:07Z
2019-11-29T22:27:07Z
2019-11-29T23:20:44Z
BUG: Index.get_value implementation for ExtensionArray
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 486cc0cd9032d..1f7bba3a4ea34 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -69,6 +69,7 @@ from pandas.core.arrays import ExtensionArray from pandas.core.base import IndexOpsMixin, PandasObject import pandas.c...
Closes https://github.com/pandas-dev/pandas/issues/29708 cc @jreback @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/29926
2019-11-29T10:39:06Z
2019-12-04T14:15:14Z
2019-12-04T14:15:14Z
2019-12-04T14:21:49Z
DOC: remove reference to get_value (removed) in DataFrame.lookup docstring
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index cf55ce0c9a6d4..0229331127441 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -374,7 +374,7 @@ For getting values with a boolean array: df1.loc['a'] > 0 df1.loc[:, df1.loc['a'] >...
DataFrame.get_value was removed. (now we should maybe also consider deprecating `lookup`, but that is another issue)
https://api.github.com/repos/pandas-dev/pandas/pulls/29925
2019-11-29T09:20:58Z
2019-11-29T17:31:42Z
2019-11-29T17:31:42Z
2019-12-01T18:53:07Z
CLN/DOC: typos
diff --git a/pandas/_libs/hashtable_func_helper.pxi.in b/pandas/_libs/hashtable_func_helper.pxi.in index 5b6152a81a5bf..6b1fe25154e30 100644 --- a/pandas/_libs/hashtable_func_helper.pxi.in +++ b/pandas/_libs/hashtable_func_helper.pxi.in @@ -190,7 +190,7 @@ cdef ismember_{{dtype}}(const {{dtype}}_t[:] arr, const {{dtype...
- [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). Fix various typos
https://api.github.com/repos/pandas-dev/pandas/pulls/46328
2022-03-11T19:22:24Z
2022-03-11T21:58:50Z
2022-03-11T21:58:50Z
2022-03-20T23:18:57Z
BUG: Index.reindex raising with level and no MultiIndex
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index dfa87e3cd4574..67dd0365e66d9 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -384,6 +384,7 @@ Indexing - Bug in :meth:`Series.__setitem__` when setting incompatible values into a ``PeriodDtype`` or ``...
- [x] closes #35132 (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/46327
2022-03-11T16:45:30Z
2022-03-11T23:42:02Z
2022-03-11T23:42:02Z
2022-06-06T20:51:07Z
Regression in read csv causing segfault for invalid file input
diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst index badda6a73d1c8..239f02b0b6bcf 100644 --- a/doc/source/whatsnew/v1.4.2.rst +++ b/doc/source/whatsnew/v1.4.2.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`DataF...
- [x] closes #45957 (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/46325
2022-03-11T13:14:28Z
2022-03-11T23:44:12Z
2022-03-11T23:44:11Z
2022-06-06T20:51:04Z
Regression in loc.setitem losing mi names when df is empty
diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst index badda6a73d1c8..0b1c7af594110 100644 --- a/doc/source/whatsnew/v1.4.2.rst +++ b/doc/source/whatsnew/v1.4.2.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.drop` and :meth:`Series.drop` when :class:`Index` h...
- [x] closes #46317 (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/46322
2022-03-11T11:52:03Z
2022-03-11T23:45:10Z
2022-03-11T23:45:10Z
2022-06-06T20:51:30Z
CI: re-enable geopandas downstream test on MacOS
diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index ce1e396ad92ac..ce7c7a634f5a9 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -8,7 +8,6 @@ import numpy as np import pytest -from pandas.compat import is_platform_mac import pandas.util._test_d...
See pandas-dev/pandas#46296. I don't have a Mac, so can't check locally if the install issue is solved (I would assume so, since the relevant libraries on conda-forge have been rebuilt), and thus directly checking here on CI.
https://api.github.com/repos/pandas-dev/pandas/pulls/46320
2022-03-11T11:24:22Z
2022-03-11T23:45:51Z
2022-03-11T23:45:51Z
2022-03-12T01:20:15Z
DOC: Refactor Intro to Data Structures
diff --git a/doc/source/reference/index.rst b/doc/source/reference/index.rst index b6f2991cc0eb4..fc920db671ee5 100644 --- a/doc/source/reference/index.rst +++ b/doc/source/reference/index.rst @@ -47,20 +47,11 @@ public functions related to data types in pandas. .. .. toctree:: - api/pandas.DataFrame.blo...
* Added more references * Clarified & removed outdated notes * Linked to DataFrame and Series docstrings
https://api.github.com/repos/pandas-dev/pandas/pulls/46316
2022-03-11T06:13:20Z
2022-03-11T23:46:59Z
2022-03-11T23:46:59Z
2022-05-19T03:02:48Z
REF: re-share Period methods
diff --git a/pandas/_libs/tslibs/dtypes.pxd b/pandas/_libs/tslibs/dtypes.pxd index 71b4eeabbaaf5..ae25de38c5bfd 100644 --- a/pandas/_libs/tslibs/dtypes.pxd +++ b/pandas/_libs/tslibs/dtypes.pxd @@ -74,3 +74,5 @@ cdef enum PeriodDtypeCode: cdef class PeriodDtypeBase: cdef readonly: PeriodDtypeCode _dtype_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/46314
2022-03-10T21:25:59Z
2022-03-11T02:08:12Z
2022-03-11T02:08:12Z
2022-03-11T05:04:20Z
BUG: avoid OOB flow in read_gbq and to_gbq
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 089ba62e461d1..17c37199f7cef 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -196,7 +196,13 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor Other API changes ^^^...
The console-based copy-paste-a-token flow has been deprecated. See: https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html?m=1#disallowed-oob - [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contribu...
https://api.github.com/repos/pandas-dev/pandas/pulls/46312
2022-03-10T19:32:30Z
2022-03-18T00:31:34Z
2022-03-18T00:31:34Z
2022-03-18T19:19:24Z
DOC: example using `clipboard_set` for all output formats
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 80af10383e24e..23d2bb6787f06 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3058,6 +3058,9 @@ def to_clipboard( - Windows : none - macOS : none + This method uses the processes developed for the packa...
rather than change the underlying `DataFrame.to_clipboard` method, here I just included a simple example to demonstrate how to use pandas to send any output string (in any render format) to the clipboard. - [x] closes #46269
https://api.github.com/repos/pandas-dev/pandas/pulls/46311
2022-03-10T18:55:09Z
2022-03-11T23:48:04Z
2022-03-11T23:48:04Z
2022-03-12T06:05:36Z
CLN/DOC: fix test_register_entrypoint
diff --git a/asv_bench/benchmarks/plotting.py b/asv_bench/benchmarks/plotting.py index 249a8f3f556a1..789bb8d8533b1 100644 --- a/asv_bench/benchmarks/plotting.py +++ b/asv_bench/benchmarks/plotting.py @@ -1,9 +1,14 @@ -import importlib +import contextlib +import importlib.machinery +import importlib.util +import os +im...
and cleanup tests eg https://github.com/pandas-dev/pandas/issues/27517 - [x] closes #46302 (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 [co...
https://api.github.com/repos/pandas-dev/pandas/pulls/46302
2022-03-10T10:23:13Z
2022-03-11T23:50:09Z
2022-03-11T23:50:08Z
2022-03-12T05:14:50Z
BUG: DataFrame.getattribute raising if columns have dtype string
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index dfa87e3cd4574..dac4acb3fb964 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -393,6 +393,7 @@ Indexing - Bug in :meth:`Series.mask` with ``inplace=True`` or setting values with a boolean mask with sma...
- [x] closes #46185 (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/46301
2022-03-10T10:19:18Z
2022-03-12T22:58:00Z
2022-03-12T22:57:59Z
2022-06-06T20:51:47Z
TYP: sort_index
diff --git a/pandas/_typing.py b/pandas/_typing.py index 2b42a0a3efb44..8cab908d62507 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -307,10 +307,12 @@ def closed(self) -> bool: XMLParsers = Literal["lxml", "etree"] # Interval closed type - IntervalClosedType = Literal["left", "right", "both", "neither"...
Tested the overloads with mypy and pyright: ```py import pandas as pd def bool_() -> bool: ... frame = pd.DataFrame() reveal_type(frame.sort_index()) # DataFrame reveal_type(frame.sort_index(inplace=True)) # None reveal_type(frame.sort_index(inplace=False)) # DataFrame reveal_type(frame.sort_index(in...
https://api.github.com/repos/pandas-dev/pandas/pulls/46300
2022-03-10T03:50:51Z
2022-03-18T00:51:55Z
2022-03-18T00:51:55Z
2022-04-01T01:36:38Z
CI: xfail geopandas downstream test on MacOS due to fiona install
diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index ce7c7a634f5a9..ce1e396ad92ac 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -8,6 +8,7 @@ import numpy as np import pytest +from pandas.compat import is_platform_mac import pandas.util._test_d...
- [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). Not really familiar with...
https://api.github.com/repos/pandas-dev/pandas/pulls/46296
2022-03-09T18:46:42Z
2022-03-10T18:40:23Z
2022-03-10T18:40:23Z
2022-03-11T11:24:49Z
BUG: PandasArray[uint].factorize
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index d86c60d78195b..1827337b1b19a 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -190,6 +190,9 @@ def _from_factorized(cls, values, original): def _values_for_argsort(self) -> np.ndarray: return ...
- [ ] 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/46295
2022-03-09T17:44:41Z
2022-03-12T03:20:43Z
2022-03-12T03:20:43Z
2022-03-12T03:40:33Z
Backport PR #46274 on branch 1.4.x (CI/TST: numpy 1.22.3 release fixes)
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index dcb8437f30c9e..1168325378e92 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1088,9 +1088,7 @@ def _engine(self): # equivalent to sorting lexicographically the codes themselves. Notice # tha...
Backport PR #46274: CI/TST: numpy 1.22.3 release fixes
https://api.github.com/repos/pandas-dev/pandas/pulls/46290
2022-03-09T02:18:22Z
2022-03-09T10:59:34Z
2022-03-09T10:59:34Z
2022-03-09T10:59:35Z
PERF: MultiIndex.values for MI's with DatetimeIndex, TimedeltaIndex, or ExtensionDtype levels
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 8dac952874f89..610592bb3ce1f 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -311,6 +311,7 @@ Performance improvements - Performance improvement in :meth:`.GroupBy.transform` when broadcasting values ...
- [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/46288
2022-03-09T01:31:35Z
2022-03-15T22:43:03Z
2022-03-15T22:43:03Z
2022-03-20T23:18:48Z
CLN: address xfails
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index d86c60d78195b..91ba6e9ea7a00 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -222,10 +222,8 @@ def _concat_same_type( raise ValueError("to_concat must have the same dtype (tz)", dtypes) ...
- [ ] 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/46287
2022-03-08T23:47:18Z
2022-03-11T23:50:21Z
2022-03-11T23:50:21Z
2022-03-12T00:38:48Z
TYP: annotation of __init__ return type (PEP 484) (pandas/io)
diff --git a/pandas/io/clipboard/__init__.py b/pandas/io/clipboard/__init__.py index 94cda748e31e8..2ebe03f5f298c 100644 --- a/pandas/io/clipboard/__init__.py +++ b/pandas/io/clipboard/__init__.py @@ -93,7 +93,7 @@ class PyperclipException(RuntimeError): class PyperclipWindowsException(PyperclipException): - de...
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint...
https://api.github.com/repos/pandas-dev/pandas/pulls/46284
2022-03-08T22:55:16Z
2022-03-16T00:41:49Z
2022-03-16T00:41:48Z
2022-03-16T12:27:18Z
TYP: annotation of __init__ return type (PEP 484) (pandas/plotting)
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 85bc3121f5e4e..80ce66cc30c73 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -783,7 +783,7 @@ class PlotAccessor(PandasObject): _kind_aliases = {"density": "kde"} _all_kinds = _common_kinds + _series_kinds + _datafr...
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint...
https://api.github.com/repos/pandas-dev/pandas/pulls/46283
2022-03-08T22:55:09Z
2022-03-16T00:41:12Z
2022-03-16T00:41:12Z
2022-03-16T00:41:25Z
BUG: MaskedArray._quantile match non-nullable behavior
diff --git a/pandas/core/array_algos/quantile.py b/pandas/core/array_algos/quantile.py index 12c6691fe6c63..78e12fb3995fd 100644 --- a/pandas/core/array_algos/quantile.py +++ b/pandas/core/array_algos/quantile.py @@ -74,6 +74,14 @@ def quantile_with_mask( Quantile is computed along axis=1. """ + assert v...
- [ ] 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/46282
2022-03-08T22:53:05Z
2022-05-09T12:54:25Z
2022-05-09T12:54:25Z
2022-05-09T18:44:58Z
TYP: annotation of __init__ return type (PEP 484) (misc modules)
diff --git a/doc/make.py b/doc/make.py index 5d2476fcdca8d..c758c7fc84bbb 100755 --- a/doc/make.py +++ b/doc/make.py @@ -45,7 +45,7 @@ def __init__( single_doc=None, verbosity=0, warnings_are_errors=False, - ): + ) -> None: self.num_jobs = num_jobs self.include_api = i...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint...
https://api.github.com/repos/pandas-dev/pandas/pulls/46280
2022-03-08T22:37:11Z
2022-03-09T14:19:34Z
2022-03-09T14:19:34Z
2022-03-26T10:50:24Z
TYP: annotation of __init__ return type (PEP 484) (pandas/core)
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 5d5380be38de1..6c1dfc4c0da72 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1098,7 +1098,7 @@ def checked_add_with_arr( class SelectN: - def __init__(self, obj, n: int, keep: str): + def __init__(self, obj, n...
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint...
https://api.github.com/repos/pandas-dev/pandas/pulls/46279
2022-03-08T22:27:10Z
2022-03-16T00:40:48Z
2022-03-16T00:40:47Z
2022-03-16T00:40:52Z
TYP: annotation of __init__ return type (PEP 484) (pandas/tests)
diff --git a/pandas/tests/base/test_constructors.py b/pandas/tests/base/test_constructors.py index c845be1d0d1f5..44d6bc57b0431 100644 --- a/pandas/tests/base/test_constructors.py +++ b/pandas/tests/base/test_constructors.py @@ -51,7 +51,7 @@ def bar(self, *args, **kwargs): pass class Delegate(Panda...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint...
https://api.github.com/repos/pandas-dev/pandas/pulls/46278
2022-03-08T22:16:24Z
2022-03-09T14:20:56Z
2022-03-09T14:20:56Z
2022-03-26T10:49:11Z
BLD: Upload sdist artifact from CI
diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index 1d9c8701d42d4..431710a49a7dd 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -54,6 +54,12 @@ jobs: pip list python setup.py sdist --formats=gztar + - name: Upload sdist artifact + uses:...
Now it is possible to inspect the sdist that is built, to see what was included and for debugging. Inspired by needing to see what was acutally included in the sdist at https://github.com/pandas-dev/pandas/pull/46271 - [x] related to #46271 (Replace xxxx with the Github issue number) - [x] [Tests added and pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/46277
2022-03-08T22:11:06Z
2022-03-11T02:49:12Z
2022-03-11T02:49:12Z
2022-03-30T20:08:43Z
TYP: annotation of __init__ return type (PEP 484) (pandas/utils)
diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py index 39a729bc51f35..2b160d2946b2b 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -435,7 +435,7 @@ def some_function(x): "%s %s wrote the Raven" """ - def __init__(self, *args, **kwargs): + def __init...
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint...
https://api.github.com/repos/pandas-dev/pandas/pulls/46276
2022-03-08T22:08:26Z
2022-03-16T00:40:18Z
2022-03-16T00:40:18Z
2022-03-16T00:40:24Z
CI/TST: numpy 1.22.3 release fixes
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index f40857059a794..cdde510927081 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1088,9 +1088,7 @@ def _engine(self): # equivalent to sorting lexicographically the codes themselves. Notice # tha...
- [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). Looks like this is xpass...
https://api.github.com/repos/pandas-dev/pandas/pulls/46274
2022-03-08T19:52:37Z
2022-03-09T02:17:40Z
2022-03-09T02:17:40Z
2022-03-09T03:00:14Z
TYP: expand acceptable types for pd.to_datetime()
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 21683ed100c72..3ff6e7f09b72a 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -10,6 +10,7 @@ Hashable, List, Tuple, + TypedDict, Union, cast, overload, @@ -79,16 +80,42 ...
We document that `pd.to_datetime()` can accept a `DataFrame` or "dict-like" as an argument, but the overloads did not specify that. This PR adds that. In addition, there was no overload for `Index` or `ExtensionArray` as an input type that converts to `DatetimeIndex` Also, changed the overload for `pd.to_datet...
https://api.github.com/repos/pandas-dev/pandas/pulls/46273
2022-03-08T19:41:32Z
2022-03-11T23:58:40Z
2022-03-11T23:58:40Z
2023-02-13T21:00:27Z
BLD: drop `options.package_data` from setup.cfg
diff --git a/MANIFEST.in b/MANIFEST.in index 78464c9aaedc8..d2b1b8cb887bc 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,5 @@ include RELEASE.md +include versioneer.py graft doc prune doc/build @@ -54,9 +55,6 @@ global-exclude *.pxi # exclude the whole directory to avoid running related tests in sdist pru...
- [x] closes #46270 - [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/46271
2022-03-08T19:23:08Z
2022-04-10T16:55:20Z
2022-04-10T16:55:20Z
2022-04-10T16:55:23Z
REF: simplify reindexing in _align_series()
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 80af10383e24e..e806f6f469bd3 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9012,18 +9012,11 @@ def _align_series( if is_series: left = self._reindex_indexer(join_index, lidx, copy) - elif...
Follow-up to #46058
https://api.github.com/repos/pandas-dev/pandas/pulls/46266
2022-03-08T09:31:17Z
2022-03-11T23:51:02Z
2022-03-11T23:51:01Z
2022-03-11T23:51:05Z
BUG: fix rolling with centering and axis=1 (#46135)
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 931d18dc349f3..27d78d7c313c4 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -629,6 +629,7 @@ Groupby/resample/rolling - Bug in :meth:`Rolling.var` and :meth:`Rolling.std` would give non-zero result w...
- [x] closes #46135 - [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/46265
2022-03-08T07:45:07Z
2022-05-06T17:09:21Z
2022-05-06T17:09:21Z
2022-05-08T11:00:20Z
TYP: add type annotation to DataFrame.to_pickle
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index a0621e1ff9306..80af10383e24e 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2956,7 +2956,7 @@ def to_sql( ) def to_pickle( self, - path, + path: FilePath | WriteBuffer[bytes], compression: ...
- [x] closes #46081 - [ ] [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/46262
2022-03-08T02:37:34Z
2022-03-09T14:22:11Z
2022-03-09T14:22:10Z
2022-03-09T16:46:03Z
TST: merge high_memory mark with single_cpu
diff --git a/.circleci/config.yml b/.circleci/config.yml index dc357101e79fd..a16492b022264 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,6 +10,7 @@ jobs: PYTEST_WORKERS: auto PATTERN: "not slow and not network and not clipboard and not arm_slow" PYTEST_TARGET: "pandas" + ...
- [ ] [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). 3/4 tests that were usin...
https://api.github.com/repos/pandas-dev/pandas/pulls/46261
2022-03-08T02:08:20Z
2022-03-11T23:51:17Z
2022-03-11T23:51:17Z
2022-03-12T01:21:31Z
CI: Add missing dependencies for skipped tests
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index bbc468f9d8f43..8f333c72f002c 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -11,6 +11,8 @@ dependencies: - pytest-xdist>=1.31 - hypothesis>=5.5.3 - psutil + - pytest-asyncio + - boto3 # required dependencies ...
- [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/46260
2022-03-08T01:51:26Z
2022-03-11T23:56:38Z
2022-03-11T23:56:38Z
2022-03-30T10:48:40Z
REF: use standard patterns in tslibs
diff --git a/pandas/_libs/tslibs/conversion.pxd b/pandas/_libs/tslibs/conversion.pxd index 5b80193c1f27a..227cf454700d5 100644 --- a/pandas/_libs/tslibs/conversion.pxd +++ b/pandas/_libs/tslibs/conversion.pxd @@ -12,10 +12,10 @@ from pandas._libs.tslibs.np_datetime cimport npy_datetimestruct cdef class _TSObject: ...
- [ ] 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/46259
2022-03-08T00:51:11Z
2022-03-10T22:07:12Z
2022-03-10T22:07:12Z
2022-03-10T22:09:56Z
REF: de-duplicate libjoin
diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx index b908fa2c65e4d..3fc97e3660120 100644 --- a/pandas/_libs/join.pyx +++ b/pandas/_libs/join.pyx @@ -93,10 +93,13 @@ def left_outer_join(const intp_t[:] left, const intp_t[:] right, with nogil: # First pass, determine size of result set, do not u...
- [ ] 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/46256
2022-03-07T22:30:21Z
2022-03-12T21:07:22Z
2022-03-12T21:07:22Z
2022-03-12T21:14:53Z
TYP: annotation of __init__ return type (PEP 484) (pandas/core/arrays)
diff --git a/pandas/core/arrays/_arrow_utils.py b/pandas/core/arrays/_arrow_utils.py index 112772bc9e842..dae8e2c394abc 100644 --- a/pandas/core/arrays/_arrow_utils.py +++ b/pandas/core/arrays/_arrow_utils.py @@ -48,7 +48,7 @@ def pyarrow_array_to_numpy_and_mask(arr, dtype: np.dtype): class ArrowPeriodType(pyarrow...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint...
https://api.github.com/repos/pandas-dev/pandas/pulls/46255
2022-03-07T22:14:05Z
2022-03-08T00:21:51Z
2022-03-08T00:21:51Z
2022-03-08T08:20:37Z
TYP: annotation of __init__ return type (PEP 484) (pandas/core/computation)
diff --git a/pandas/core/computation/engines.py b/pandas/core/computation/engines.py index ec3548c9efc6c..0221256b2cbd8 100644 --- a/pandas/core/computation/engines.py +++ b/pandas/core/computation/engines.py @@ -48,7 +48,7 @@ class AbstractEngine(metaclass=abc.ABCMeta): has_neg_frac = False - def __init__(...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint...
https://api.github.com/repos/pandas-dev/pandas/pulls/46254
2022-03-07T21:52:18Z
2022-03-08T00:23:52Z
2022-03-08T00:23:52Z
2022-03-09T00:45:06Z
CI: Don't run PANDAS_DATA_MANAGER=array test for downstream tests
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index aa6bb714af9dd..e6de5caf955fc 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -33,9 +33,10 @@ fi echo $PYTEST_CMD sh -c "$PYTEST_CMD" -if [[ "$PANDAS_DATA_MANAGER" != "array" ]]; then +if [[ "$PANDAS_DATA_MANAGER" != "array" && "$PYTEST_TARGET" == "pandas" ]...
This should shorten the downstream build such that `pandas/tests/test_downstream.py` is run instead of `pandas/`
https://api.github.com/repos/pandas-dev/pandas/pulls/46253
2022-03-07T19:32:39Z
2022-03-08T01:38:27Z
2022-03-08T01:38:27Z
2022-03-08T01:44:28Z
DOC: update tutorial docs
diff --git a/doc/source/getting_started/intro_tutorials/03_subset_data.rst b/doc/source/getting_started/intro_tutorials/03_subset_data.rst index 79df2b4325091..291cbddff58eb 100644 --- a/doc/source/getting_started/intro_tutorials/03_subset_data.rst +++ b/doc/source/getting_started/intro_tutorials/03_subset_data.rst @@ ...
**N**itrogen Di-**O**xide
https://api.github.com/repos/pandas-dev/pandas/pulls/46249
2022-03-07T07:29:13Z
2022-03-18T00:53:03Z
2022-03-18T00:53:03Z
2022-03-18T00:53:07Z
an -> a
diff --git a/doc/source/getting_started/intro_tutorials/03_subset_data.rst b/doc/source/getting_started/intro_tutorials/03_subset_data.rst index 4106b0e064823..79df2b4325091 100644 --- a/doc/source/getting_started/intro_tutorials/03_subset_data.rst +++ b/doc/source/getting_started/intro_tutorials/03_subset_data.rst @@ ...
fixing typo in intro_tutorial
https://api.github.com/repos/pandas-dev/pandas/pulls/46247
2022-03-06T20:50:35Z
2022-03-06T22:52:52Z
2022-03-06T22:52:52Z
2022-03-06T22:52:56Z
Backport PR #46239 on branch 1.4.x (DOC+BUG: `Styler.to_excel` pseudo css `number-format`)
diff --git a/doc/source/_static/style/format_excel_css.png b/doc/source/_static/style/format_excel_css.png new file mode 100644 index 0000000000000..0bd4662c3f2d0 Binary files /dev/null and b/doc/source/_static/style/format_excel_css.png differ diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rs...
Backport PR #46239: DOC+BUG: `Styler.to_excel` pseudo css `number-format`
https://api.github.com/repos/pandas-dev/pandas/pulls/46245
2022-03-06T16:38:10Z
2022-03-06T22:51:49Z
2022-03-06T22:51:49Z
2022-03-08T11:50:55Z
DOC: Fix `DataFrame.plot.scatter` link in 1.5.0 changelog
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 1c809b2b77a6d..18fd1057c9b65 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -421,7 +421,7 @@ Plotting - Bug in :meth:`DataFrame.plot.box` that prevented labeling the x-axis (:issue:`45463`) - Bug in...
Fixes `DataFrame.scatter` -> `DataFrame.plot.scatter` in the changelog entry for #45966
https://api.github.com/repos/pandas-dev/pandas/pulls/46244
2022-03-06T06:35:45Z
2022-03-06T16:34:23Z
2022-03-06T16:34:23Z
2022-03-06T16:34:30Z
CLN: Assorted cleanups
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index f751d57c186b0..12fe78a0f8a18 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -30,8 +30,8 @@ from numpy.math cimport NAN cnp.import_array() +from pandas._libs cimport util from pandas._libs.algos cimport kth_smallest_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/46243
2022-03-06T01:59:27Z
2022-03-06T16:35:54Z
2022-03-06T16:35:54Z
2022-03-06T17:46:48Z
Backport PR #46204 on branch 1.4.x (PERF: avoid copies in frame[col].fillna(val, inplace=True) GH#46149)
diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst index 43b911cd24e1d..9f4d248ca7042 100644 --- a/doc/source/whatsnew/v1.4.2.rst +++ b/doc/source/whatsnew/v1.4.2.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`DataF...
Backport PR #46204: PERF: avoid copies in frame[col].fillna(val, inplace=True) GH#46149
https://api.github.com/repos/pandas-dev/pandas/pulls/46242
2022-03-05T22:52:36Z
2022-03-06T16:36:13Z
2022-03-06T16:36:13Z
2022-03-08T12:23:51Z
CI/TYP: pyright reportSelfClsParameterName
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index cb018103d07b4..3fe2d56a2ccb2 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -182,6 +182,7 @@ def equals(self, other) -> bool: return False return bool(array_equivalent(self._ndarray,...
Fixes: > pandas/core/arrays/_mixins.py:185:26 - warning: Instance methods should take a "self" parameter (reportSelfClsParameterName) I'm not familiar with the function, could also be a `classmethod` @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/46241
2022-03-05T19:42:50Z
2022-03-06T13:50:11Z
2022-03-06T13:50:11Z
2022-03-09T02:56:02Z
DOC+BUG: `Styler.to_excel` pseudo css `number-format`
diff --git a/doc/source/_static/style/format_excel_css.png b/doc/source/_static/style/format_excel_css.png new file mode 100644 index 0000000000000..0bd4662c3f2d0 Binary files /dev/null and b/doc/source/_static/style/format_excel_css.png differ diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rs...
- [x] closes #46152
https://api.github.com/repos/pandas-dev/pandas/pulls/46239
2022-03-05T16:31:58Z
2022-03-06T16:33:46Z
2022-03-06T16:33:46Z
2022-03-08T11:51:30Z
Bug fix - cannot construct Index of empty tuples
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index dbf9547f561d2..8c02785647861 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -485,7 +485,7 @@ MultiIndex - Bug in :meth:`DataFrame.loc` raising when slicing a :class:`MultiIndex` with a negative step ...
- [x] closes #45608 - [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/46238
2022-03-05T16:17:19Z
2022-03-28T12:47:43Z
2022-03-28T12:47:42Z
2022-03-28T12:47:49Z
REF: simplify groupby nullable wrapping
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index 12fe78a0f8a18..ff5258e37e352 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -1238,6 +1238,7 @@ def group_nth( if nobs[i, j] < min_count: if uses_mask: ...
- [ ] 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/46236
2022-03-05T02:51:25Z
2022-03-06T22:52:31Z
2022-03-06T22:52:31Z
2022-03-07T00:30:36Z
PERF: reindex with MultiIndex
diff --git a/asv_bench/benchmarks/reindex.py b/asv_bench/benchmarks/reindex.py index 5181b983c9f7a..9cc1f95ce7aa6 100644 --- a/asv_bench/benchmarks/reindex.py +++ b/asv_bench/benchmarks/reindex.py @@ -28,6 +28,7 @@ def setup(self): index = MultiIndex.from_arrays([level1, level2]) self.s = Series(np.ra...
- [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/46235
2022-03-04T23:51:17Z
2022-03-05T01:15:30Z
2022-03-05T01:15:30Z
2022-03-05T19:36:48Z
ASV: add benchmarks for DataFrame.xs with a MultiIndex
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index d5f165084505f..2c0e2e6ca442a 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -204,11 +204,11 @@ class MultiIndexing: param_names = ["unique_levels"] def setup(self, unique_levels): ...
- [x] closes #35188 - [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). Th...
https://api.github.com/repos/pandas-dev/pandas/pulls/46233
2022-03-04T21:53:45Z
2022-03-04T23:49:41Z
2022-03-04T23:49:40Z
2022-03-05T12:59:01Z
DOC: Added plt.show() at the end of each necessary block
diff --git a/doc/source/getting_started/intro_tutorials/04_plotting.rst b/doc/source/getting_started/intro_tutorials/04_plotting.rst index 1e0505a2f0e87..b6f1ac212f821 100644 --- a/doc/source/getting_started/intro_tutorials/04_plotting.rst +++ b/doc/source/getting_started/intro_tutorials/04_plotting.rst @@ -2,6 +2,12 @...
Added plt.show() at the end of each necessary block. Moved and reworded title section. - [ ] closes #45772 - [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/46231
2022-03-04T18:36:18Z
2022-04-26T00:40:46Z
2022-04-26T00:40:45Z
2022-04-26T00:40:49Z
Backport PR #46018 on branch 1.4.x (BUG: remove usage of _constructor._get_axis_number (fix when _constructor properties return callables))
diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst index 05bc7ff8c96d2..43b911cd24e1d 100644 --- a/doc/source/whatsnew/v1.4.2.rst +++ b/doc/source/whatsnew/v1.4.2.rst @@ -23,6 +23,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- Fix some cases for subclasses that define their ``_constructor``...
Backport PR #46018
https://api.github.com/repos/pandas-dev/pandas/pulls/46228
2022-03-04T15:54:14Z
2022-03-04T18:48:40Z
2022-03-04T18:48:40Z
2022-03-04T18:48:46Z
DOC: migrate from sphinx-panels to sphinx-design
diff --git a/doc/source/_static/css/getting_started.css b/doc/source/_static/css/getting_started.css index e4c5964259349..0d53bbde94ae3 100644 --- a/doc/source/_static/css/getting_started.css +++ b/doc/source/_static/css/getting_started.css @@ -138,15 +138,21 @@ ul.task-bullet > li > p:first-child { margin: 0px; } ...
- closes #52939 Eventually it is the goal that the sphinx-design package replaces the sphinx-panels package (see https://github.com/executablebooks/sphinx-panels/issues/67 and https://sphinx-design.readthedocs.io/en/furo-theme/get_started.html#migrating-from-sphinx-panels, sphinx-design has the same (and more) featu...
https://api.github.com/repos/pandas-dev/pandas/pulls/46227
2022-03-04T13:39:17Z
2023-04-30T01:59:17Z
2023-04-30T01:59:17Z
2023-04-30T01:59:17Z
Build: unpin version of base image of dockered development environment
diff --git a/Dockerfile b/Dockerfile index 2923cd60cc53b..34a13e69d73d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM quay.io/condaforge/miniforge3:4.11.0-0 +FROM quay.io/condaforge/miniforge3 # if you forked pandas, you can pass in your own GitHub username to use your fork # i.e. gh_username=mynam...
This PR removes the pinned version for the base image. The latest version of the base image, `quay.io/condaforge/miniforge3:4.11.0-4` (released Feb 26, 2022), works again. The pinned version was needed temporarily because of a misbehaving version of the base image: https://github.com/pandas-dev/pandas/pull/45889...
https://api.github.com/repos/pandas-dev/pandas/pulls/46224
2022-03-04T06:49:06Z
2022-03-05T01:17:14Z
2022-03-05T01:17:14Z
2022-03-07T09:21:05Z
DOC: Fix warnings on underline length (more)
diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py index cbfe177574665..be88b874908e8 100644 --- a/pandas/core/indexes/numeric.py +++ b/pandas/core/indexes/numeric.py @@ -327,7 +327,7 @@ def _format_native_types( None Methods - ---------- + ------- None See Also
I missed the other instance of the problem in https://github.com/pandas-dev/pandas/pull/46215. - [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 ne...
https://api.github.com/repos/pandas-dev/pandas/pulls/46223
2022-03-04T04:11:41Z
2022-03-04T19:40:23Z
2022-03-04T19:40:23Z
2022-03-04T19:40:32Z
TYP: pd.isna
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index 5294b4061ad44..d4ef9915d57b4 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -1,7 +1,10 @@ from __future__ import annotations import numbers -from typing import TYPE_CHECKING +from typing import ( + ...
Inferred by mypy and pyright: ```py import numpy as np import pandas as pd class A: ... # bool reveal_type(pd.isna(1)) # npt.NDArray[np.bool_] reveal_type(pd.isna([])) reveal_type(pd.isna(np.zeros(3))) reveal_type(pd.isna(pd.DatetimeIndex([None]))) # pd.DataFrame reveal_type(pd.isna(pd.DataFram...
https://api.github.com/repos/pandas-dev/pandas/pulls/46222
2022-03-04T04:01:01Z
2022-03-18T00:49:58Z
2022-03-18T00:49:57Z
2022-04-01T01:36:37Z
BUG: GroupBy.cummin altering nullable arrays inplace
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 52c8b82ab47f9..86c44685e7df9 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -429,8 +429,9 @@ Groupby/resample/rolling - Bug in :meth:`.ExponentialMovingWindow.mean` with ``axis=1`` and ``engine='numb...
- [ ] 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/46220
2022-03-04T00:31:55Z
2022-03-05T17:04:37Z
2022-03-05T17:04:37Z
2022-03-05T21:09:19Z
Build: configure timezone for dockered development environment
diff --git a/Dockerfile b/Dockerfile index 2923cd60cc53b..b3e12200d0965 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,11 @@ ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \ # + # Install tzdata and configure timezone (fix...
- [x] closes #46217 - [x] [Tests 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). - [ ] Added an ...
https://api.github.com/repos/pandas-dev/pandas/pulls/46219
2022-03-03T23:51:45Z
2022-03-05T01:17:01Z
2022-03-05T01:17:01Z
2022-03-07T09:20:52Z
BUG: GroupBy.cumsum td64, skipna=False
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index adee9271c23b0..52c8b82ab47f9 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -429,6 +429,9 @@ Groupby/resample/rolling - Bug in :meth:`.ExponentialMovingWindow.mean` with ``axis=1`` and ``engine='numb...
- [ ] 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/46216
2022-03-03T23:32:47Z
2022-03-04T01:18:44Z
2022-03-04T01:18:43Z
2022-03-04T02:13:34Z
DOC: Fix warnings on underline length
diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py index d4cb4a20be66b..cbfe177574665 100644 --- a/pandas/core/indexes/numeric.py +++ b/pandas/core/indexes/numeric.py @@ -62,7 +62,7 @@ class NumericIndex(Index): None Methods - ---------- + ------- None See Also di...
In the CI run https://github.com/pandas-dev/pandas/runs/5413504567?check_suite_focus=true I noticed a few warnings when building the docs such as ``` /home/runner/miniconda3/envs/pandas-dev/lib/python3.8/site-packages/numpydoc/docscrape.py:434: UserWarning: potentially wrong underline length... Methods -------...
https://api.github.com/repos/pandas-dev/pandas/pulls/46215
2022-03-03T21:33:18Z
2022-03-04T01:54:24Z
2022-03-04T01:54:24Z
2022-03-04T03:57:43Z
REF: simplify factorize, fix factorize_array return type
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 8c838d8944d14..55d1bbaa20c71 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -11,7 +11,6 @@ Hashable, Literal, Sequence, - Union, cast, final, ) @@ -30,7 +29,6 @@ ArrayLike, DtypeObj...
- [ ] 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/46214
2022-03-03T18:09:07Z
2022-03-03T20:28:18Z
2022-03-03T20:28:18Z
2022-03-03T20:33:32Z
TYP: loosen types of to_markdown, align to docs
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b7974e5764100..e23c735fe41df 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -18,7 +18,6 @@ import itertools from textwrap import dedent from typing import ( - IO, TYPE_CHECKING, Any, Callable, @@ -2717,7 +2716,7 @@ def ...
Docs already allowed pathlib.Path objects and such code runs, but failed mypy typechecks. This fixes it. - [x] closes #46211 - [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 check...
https://api.github.com/repos/pandas-dev/pandas/pulls/46212
2022-03-03T15:51:07Z
2022-03-03T18:46:16Z
2022-03-03T18:46:15Z
2022-03-03T18:46:19Z
BUG: Fix some cases of groupby(...).transform with dropna=True
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 18fd1057c9b65..a58d86e6e037e 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -82,17 +82,32 @@ did not have the same index as the input. .. code-block:: ipython + In [3]: df.groupby('a', dropna=...
Part of #17093 - [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] Adde...
https://api.github.com/repos/pandas-dev/pandas/pulls/46209
2022-03-03T01:48:05Z
2022-03-07T23:49:10Z
2022-03-07T23:49:10Z
2023-02-20T04:12:08Z
PERF: avoid object dtype cast for Categorical in _ensure_data
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 8c838d8944d14..1638df6b40dbe 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -140,7 +140,6 @@ def _ensure_data(values: ArrayLike) -> np.ndarray: # extract_array would raise values = extract_array(values,...
- [ ] 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/46208
2022-03-03T00:31:41Z
2022-03-03T23:35:29Z
2022-03-03T23:35:29Z
2022-03-03T23:46:51Z