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
TST/CI: xfail test_round_sanity for 32 bit
diff --git a/pandas/tests/scalar/timedelta/test_timedelta.py b/pandas/tests/scalar/timedelta/test_timedelta.py index b6559385e1597..0dd3a88670ece 100644 --- a/pandas/tests/scalar/timedelta/test_timedelta.py +++ b/pandas/tests/scalar/timedelta/test_timedelta.py @@ -14,6 +14,7 @@ iNaT, ) from pandas._libs.tslibs.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). xfailing just to get the...
https://api.github.com/repos/pandas-dev/pandas/pulls/47803
2022-07-20T16:32:48Z
2022-07-22T19:38:10Z
2022-07-22T19:38:10Z
2022-07-23T11:06:04Z
TST: Test series construct of dtype timedelta64 #35465
diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py index 4e4ee4fd12d5f..de9a682acdfd6 100644 --- a/pandas/tests/series/test_constructors.py +++ b/pandas/tests/series/test_constructors.py @@ -1879,6 +1879,28 @@ def test_constructor_bool_dtype_missing_values(self): e...
- [x] closes #35465 - [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/47801
2022-07-20T15:25:24Z
2022-07-27T16:58:17Z
2022-07-27T16:58:17Z
2022-07-27T16:58:23Z
DEPS: drop np19 support
diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index 2e1ffe6d0d17e..1a06ea31ccbb8 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -79,9 +79,9 @@ jobs: run: | case "${{matrix.python-version}}" in 3.8) - pip install numpy==1.19.5 ;; +...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47796
2022-07-20T05:59:17Z
2022-08-01T23:31:34Z
2022-08-01T23:31:34Z
2022-11-18T02:18:01Z
Backport PR #47792 on branch 1.4.x (DOC: Fix versionadded for callable in on_bad_lines)
diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index 3e792786b863a..d3a8b01e1da7b 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -371,6 +371,8 @@ .. versionadded:: 1.3.0 + .. versionadded:: 1.4.0 + - callable, function with signature ...
Backport PR #47792
https://api.github.com/repos/pandas-dev/pandas/pulls/47795
2022-07-20T00:38:36Z
2022-07-20T13:36:35Z
2022-07-20T13:36:35Z
2022-08-01T18:08:46Z
BUG: fixed OutOfBoundsDatetime exception when errors=coerce #45319
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index a0d33cb513722..3a9c24251b12f 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -897,6 +897,7 @@ Datetimelike - Bug in :meth:`DatetimeIndex.resolution` incorrectly returning "day" instead of "nanosecond"...
- [ ] closes #45319 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/47794
2022-07-19T23:56:13Z
2022-08-15T16:49:43Z
2022-08-15T16:49:43Z
2022-08-15T16:49:51Z
TST: test for inconsistency due to dtype=string #46512
diff --git a/pandas/tests/arrays/string_/test_string.py b/pandas/tests/arrays/string_/test_string.py index 6a17a56a47cbc..5b4d586e69c1b 100644 --- a/pandas/tests/arrays/string_/test_string.py +++ b/pandas/tests/arrays/string_/test_string.py @@ -611,3 +611,11 @@ def test_setitem_scalar_with_mask_validation(dtype): ...
- [x] closes #46512 - [ ] [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 - [ ] Added an entry in the latest `pandas/core/generic.py` file if fixing a bug or adding a new feature.
https://api.github.com/repos/pandas-dev/pandas/pulls/47793
2022-07-19T23:49:48Z
2022-10-04T18:30:57Z
null
2022-10-04T18:30:58Z
DOC: Fix versionadded for callable in on_bad_lines
diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index 35227dcf6a82d..4858d56d71c42 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -381,6 +381,8 @@ .. versionadded:: 1.3.0 + .. versionadded:: 1.4.0 + - callable, function with signature ...
- [x] closes #47788 (Replace xxxx with the Github issue number) - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). would backport this
https://api.github.com/repos/pandas-dev/pandas/pulls/47792
2022-07-19T18:34:43Z
2022-07-20T00:35:30Z
2022-07-20T00:35:29Z
2022-07-20T00:39:09Z
Backport PR #47763 on branch 1.4.x (BUG: fix regression in Series[string] setitem setting a scalar with a mask)
diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst index 6ee140f59e096..6bd7378e05404 100644 --- a/doc/source/whatsnew/v1.4.4.rst +++ b/doc/source/whatsnew/v1.4.4.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :func:`conca...
Backport PR #47763: BUG: fix regression in Series[string] setitem setting a scalar with a mask
https://api.github.com/repos/pandas-dev/pandas/pulls/47784
2022-07-18T22:29:38Z
2022-07-19T14:10:03Z
2022-07-19T14:10:03Z
2022-07-19T14:10:03Z
BUG: PeriodIndex + TimedeltaArray-with-NaT
diff --git a/pandas/_libs/tslibs/dtypes.pxd b/pandas/_libs/tslibs/dtypes.pxd index 6e41a55f30929..352680143113d 100644 --- a/pandas/_libs/tslibs/dtypes.pxd +++ b/pandas/_libs/tslibs/dtypes.pxd @@ -3,7 +3,7 @@ from numpy cimport int64_t from pandas._libs.tslibs.np_datetime cimport NPY_DATETIMEUNIT -cdef str npy_uni...
Implements the same round_ok behavior in astype_overflowsafe that we use in Timestamp/Timedelta _as_reso, i.e. this will lead to more code-sharing in follow-ups.
https://api.github.com/repos/pandas-dev/pandas/pulls/47783
2022-07-18T21:23:11Z
2022-07-20T00:10:24Z
2022-07-20T00:10:24Z
2022-07-20T16:43:19Z
Concatenating unordered ``CategoricalIndex`` overrides indices - GH24845
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index c1ae3cb1b16ea..baf13b2f62417 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -571,6 +571,26 @@ def map(self, mapper): def _concat(self, to_concat: list[Index], name: Hashable) -> Index: ...
- [ ] 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/47782
2022-07-18T20:08:02Z
2022-07-24T22:38:02Z
null
2022-07-24T22:38:02Z
PERF: Bypass chunking/validation logic in StringDtype__from_arrow__
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index f6a6c81bfe25d..3b24310014ff8 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -102,6 +102,7 @@ Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ - Performance improvement in :meth:`DataFrame.first_val...
Instead of converting each chunk to a StringArray after casting to array and then concatenating, instead use pyarrow to concatenate chunks and convert to numpy. Finally, bypass validation logic (unneeded as validated on parquet write) by initializing NDArrayBacked instead of StringArray. This removes most of the...
https://api.github.com/repos/pandas-dev/pandas/pulls/47781
2022-07-18T19:25:46Z
2023-02-24T18:08:10Z
2023-02-24T18:08:10Z
2023-02-24T18:08:24Z
BUG: PeriodIndex fails to handle NA, rather than putting NaT in its place (#46673)
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 7f07187e34c78..b9f2bf00355f0 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -908,6 +908,7 @@ Indexing - Bug in :meth:`NDFrame.xs`, :meth:`DataFrame.iterrows`, :meth:`DataFrame.loc` and :meth:`DataFra...
- [x] closes #46673 - [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/47780
2022-07-18T18:21:57Z
2022-08-01T20:08:54Z
2022-08-01T20:08:53Z
2022-08-01T20:09:02Z
PERF: efficient argmax/argmin for SparseArray
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index f313b49cd198d..7a90d96926475 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -802,6 +802,7 @@ Performance improvements - Performance improvement in datetime arrays string formatting when one of the de...
- [ ] partially closes #34197 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commi...
https://api.github.com/repos/pandas-dev/pandas/pulls/47779
2022-07-18T18:04:22Z
2022-07-27T16:40:20Z
2022-07-27T16:40:20Z
2022-07-27T17:03:36Z
Specify that both ``by`` and ``level`` should not be specified in ``groupby`` - GH40378
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index 5d8ef7ce02097..34244a8edcbfa 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -345,6 +345,17 @@ Index level names may be supplied as keys. More on the ``sum`` function and aggregation lat...
- [ ] closes #40378 (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/47778
2022-07-18T14:07:41Z
2022-07-18T16:59:08Z
2022-07-18T16:59:07Z
2022-07-22T20:50:36Z
BUG: PeriodIndex fails to handle NA, rather than putting NaT in its place (#46673)
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 9651269963803..c2038eeb42631 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -906,6 +906,7 @@ Indexing - Bug in :meth:`NDFrame.xs`, :meth:`DataFrame.iterrows`, :meth:`DataFrame.loc` and :meth:`DataFra...
- [x] closes #46673 - [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/47777
2022-07-18T08:00:47Z
2022-07-18T16:25:49Z
null
2022-07-18T16:25:49Z
Cln tests interval wrt inclusive
diff --git a/pandas/tests/arrays/test_array.py b/pandas/tests/arrays/test_array.py index f7f015cbe4a23..79e73fec706f1 100644 --- a/pandas/tests/arrays/test_array.py +++ b/pandas/tests/arrays/test_array.py @@ -298,7 +298,7 @@ def test_array_inference(data, expected): [ # mix of frequencies [pd.Per...
I think this is the last one of those
https://api.github.com/repos/pandas-dev/pandas/pulls/47775
2022-07-18T00:48:10Z
2022-07-18T17:00:23Z
2022-07-18T17:00:23Z
2022-07-20T00:39:38Z
BUG: Fix fillna on multi indexed Dataframe doesn't work
diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst index dbdeebad06af0..3d0a6e01826f8 100644 --- a/doc/source/whatsnew/v1.4.4.rst +++ b/doc/source/whatsnew/v1.4.4.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :meth:`Dat...
- [ ] closes #47649 (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/47774
2022-07-17T23:34:50Z
2022-08-23T12:10:45Z
2022-08-23T12:10:45Z
2022-08-23T16:29:32Z
REF: avoid converting input to cut if passing IntervalIndex bins
diff --git a/pandas/core/reshape/tile.py b/pandas/core/reshape/tile.py index 00b2b30eb3122..05005006ad9e4 100644 --- a/pandas/core/reshape/tile.py +++ b/pandas/core/reshape/tile.py @@ -240,7 +240,9 @@ def cut( original = x x = _preprocess_for_cut(x) - x, dtype = _coerce_to_type(x) + dtype = None + ...
xref https://github.com/pandas-dev/pandas/issues/47772, https://github.com/pandas-dev/pandas/issues/46218#issuecomment-1186600310
https://api.github.com/repos/pandas-dev/pandas/pulls/47773
2022-07-17T20:23:37Z
2023-02-22T13:55:12Z
null
2023-02-22T13:55:13Z
REGR: fix pd.cut with datetime IntervalIndex as bins
diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst index 96e4ad4321c60..0393879a766a5 100644 --- a/doc/source/whatsnew/v1.4.4.rst +++ b/doc/source/whatsnew/v1.4.4.rst @@ -16,6 +16,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in taking NULL :class:`objects` from a :class:`DataF...
Closes #46218 xref https://github.com/pandas-dev/pandas/issues/46218#issuecomment-1073362376 for the actual reason that causes `cut` to fail: inside the implementation, we convert the actual timestamp data to floats (to pass to the underlying algorithm), but then when passing those values to `IntervalIndex.get_index...
https://api.github.com/repos/pandas-dev/pandas/pulls/47771
2022-07-17T19:52:47Z
2022-08-19T19:31:05Z
2022-08-19T19:31:05Z
2022-08-20T06:51:44Z
REF: de-duplicate get_conversion_factor
diff --git a/pandas/_libs/tslibs/dtypes.pxd b/pandas/_libs/tslibs/dtypes.pxd index 356bd9dc3d7a0..6e41a55f30929 100644 --- a/pandas/_libs/tslibs/dtypes.pxd +++ b/pandas/_libs/tslibs/dtypes.pxd @@ -8,7 +8,6 @@ cdef NPY_DATETIMEUNIT abbrev_to_npy_unit(str abbrev) cdef NPY_DATETIMEUNIT freq_group_code_to_npy_unit(int fre...
Moving it to np_datetime bc we'll end up using it in astype_overflowsafe
https://api.github.com/repos/pandas-dev/pandas/pulls/47770
2022-07-17T19:35:54Z
2022-07-18T17:14:44Z
2022-07-18T17:14:44Z
2022-07-18T18:46:39Z
STYLE add future annotations where possible
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 06025c730700f..92f3b3ce83297 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -94,8 +94,6 @@ repos: stages: [manual] additional_dependencies: &pyright_dependencies - pyright@1.1.258 -- repo: local - ...
- [x] closes #41901 (Replace xxxx with the Github issue number) - [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/47769
2022-07-17T19:24:02Z
2022-07-18T17:16:24Z
2022-07-18T17:16:24Z
2022-07-19T14:52:33Z
TYP: Appender also works with properties
diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py index cec4ee40a8c7a..f8359edaa8d44 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -12,7 +12,10 @@ import warnings from pandas._libs.properties import cache_readonly -from pandas._typing import F +from pandas._typing im...
Technically, `Appender` works with literally any `object` as all of them have `__doc__`. This change helps pyright in this case https://github.com/pandas-dev/pandas/blob/bdd9314c7006611021bab2b7adf7210cd874a0c2/pandas/core/series.py#L738 Mypy still needs the ignore because it doesn't support decorating a property...
https://api.github.com/repos/pandas-dev/pandas/pulls/47768
2022-07-17T19:16:53Z
2022-07-18T17:17:17Z
2022-07-18T17:17:17Z
2022-09-10T01:39:01Z
PERF: operations with zoneinfo tzinfos
diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx index 2b7f9b9659354..4487136aa7fb8 100644 --- a/pandas/_libs/tslibs/tzconversion.pyx +++ b/pandas/_libs/tslibs/tzconversion.pyx @@ -642,9 +642,7 @@ cdef int64_t _tz_localize_using_tzinfo_api( if not to_utc: # tz.utcof...
``` import zoneinfo import pandas as pd tz = zoneinfo.ZoneInfo("US/Pacific") dti = pd.date_range("2016-01-01", periods=10**5, freq="s", tz=tz) In [3]: %timeit dti.normalize() 142 ms ± 3.44 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- main 90.4 ms ± 4.34 ms per loop (mean ± std. dev. of 7 run...
https://api.github.com/repos/pandas-dev/pandas/pulls/47767
2022-07-17T17:59:21Z
2022-07-18T17:19:28Z
2022-07-18T17:19:28Z
2022-07-18T18:19:52Z
add ignore for new mypy error 'type-var'
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index 83626a42134d6..917382544199a 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -205,7 +205,7 @@ def __getattr__(self, attr: str): # error: Signature of "obj" incompatible with supertype "BaseGroupBy" @property - def ...
A new error introduced to mypy is detected in pandas' repository. This PR adds comment to ignore that error. > pandas (https://github.com/pandas-dev/pandas) > + pandas/core/resample.py:208: error: A function returning TypeVar should receive at least one argument containing the same Typevar [type-var] > + pandas/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/47766
2022-07-17T17:08:29Z
2022-07-17T23:29:07Z
2022-07-17T23:29:07Z
2022-07-18T11:51:05Z
TST: misplaced string array test
diff --git a/pandas/tests/arrays/numpy_/test_indexing.py b/pandas/tests/arrays/numpy_/test_indexing.py index f92411efe774c..225d64ad7d258 100644 --- a/pandas/tests/arrays/numpy_/test_indexing.py +++ b/pandas/tests/arrays/numpy_/test_indexing.py @@ -7,6 +7,17 @@ class TestSearchsorted: + def test_searchsorted_st...
Just encountered this because I wanted to add a test there for another PR. Those tests were moved and splitted in https://github.com/pandas-dev/pandas/pull/46136, but the "string" tests are not actually about StringArray, they are about PandasArray with string numpy dtype (`np.dtype("U")`), and thus belong with the o...
https://api.github.com/repos/pandas-dev/pandas/pulls/47765
2022-07-17T15:27:21Z
2022-07-18T15:36:09Z
2022-07-18T15:36:08Z
2022-07-18T19:48:43Z
TYP: a few mismatches found by stubtest
diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi index 29d1365cad6fc..f55ff0ae8b574 100644 --- a/pandas/_libs/algos.pyi +++ b/pandas/_libs/algos.pyi @@ -42,7 +42,7 @@ def groupsort_indexer( np.ndarray, # ndarray[int64_t, ndim=1] ]: ... def kth_smallest( - a: np.ndarray, # numeric[:] + arr: np...
xref #47760
https://api.github.com/repos/pandas-dev/pandas/pulls/47764
2022-07-17T14:19:18Z
2022-07-18T17:20:26Z
2022-07-18T17:20:26Z
2022-07-18T17:20:34Z
BUG: fix regression in Series[string] setitem setting a scalar with a mask
diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst index 6ee140f59e096..6bd7378e05404 100644 --- a/doc/source/whatsnew/v1.4.4.rst +++ b/doc/source/whatsnew/v1.4.4.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :func:`conca...
- [x] closes #47628 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/47763
2022-07-17T13:47:12Z
2022-07-18T22:29:09Z
2022-07-18T22:29:08Z
2022-07-19T06:13:31Z
REGR: preserve reindexed array object (instead of creating new array) for concat with all-NA array
diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst index e03e6cd41ebd3..2ce4d4b37f922 100644 --- a/doc/source/whatsnew/v1.4.4.rst +++ b/doc/source/whatsnew/v1.4.4.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.fillna` not working :class:`DataFrame` with :class:...
Originally reported in GeoPandas: https://github.com/geopandas/geopandas/issues/2493 This worked in pandas 1.3.5, was then originally "broken" by https://github.com/pandas-dev/pandas/pull/43043 (as an unintended side effect of some of the (proper) changes in that PR) somewhere between 1.3 and 1.4.0 but got fixed aga...
https://api.github.com/repos/pandas-dev/pandas/pulls/47762
2022-07-17T12:04:03Z
2022-08-30T12:16:17Z
2022-08-30T12:16:17Z
2022-09-06T17:59:48Z
DEPR: returning tuple when grouping by a list containing single element
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index b69cf415ac21e..b5a6cf50fcb6a 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -776,6 +776,7 @@ Other Deprecations - Deprecated argument ``errors`` for :meth:`Series.mask`, :meth:`Series.where`, :meth:`...
- [X] closes #42795 (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/47761
2022-07-17T03:32:25Z
2022-08-01T20:15:10Z
2022-08-01T20:15:10Z
2022-12-05T03:22:33Z
TYP: reflect ensure_* function removals
diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi index 0cc9209fbdfc5..29d1365cad6fc 100644 --- a/pandas/_libs/algos.pyi +++ b/pandas/_libs/algos.pyi @@ -129,18 +129,11 @@ def diff_2d( ) -> None: ... def ensure_platform_int(arr: object) -> npt.NDArray[np.intp]: ... def ensure_object(arr: object) -> npt.ND...
These were removed in #44207
https://api.github.com/repos/pandas-dev/pandas/pulls/47758
2022-07-16T21:00:12Z
2022-07-17T14:38:21Z
2022-07-17T14:38:21Z
2022-08-25T05:21:37Z
BUG: wide_to_long fails when stubname misses and i contains string type column
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 22a5f2a08362f..841b24bb06b6c 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -1019,6 +1019,7 @@ Reshaping - Bug in :meth:`DataFrame.join` with a list when using suffixes to join DataFrames with duplic...
- [x] closes #46044 - [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/47757
2022-07-16T20:57:00Z
2022-07-19T19:22:39Z
2022-07-19T19:22:39Z
2022-07-19T19:27:37Z
TYP: Update timestamps.pyi
diff --git a/pandas/_libs/tslibs/timestamps.pyi b/pandas/_libs/tslibs/timestamps.pyi index f6a62688fc72d..082f26cf6f213 100644 --- a/pandas/_libs/tslibs/timestamps.pyi +++ b/pandas/_libs/tslibs/timestamps.pyi @@ -85,10 +85,10 @@ class Timestamp(datetime): def fold(self) -> int: ... @classmethod def fromt...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47756
2022-07-16T20:42:59Z
2022-07-17T14:39:24Z
2022-07-17T14:39:24Z
2022-07-18T11:54:41Z
TST: Add additional test for future warning when call Series.str.cat(Series.str)
diff --git a/pandas/tests/strings/test_cat.py b/pandas/tests/strings/test_cat.py index 8abbc59343e78..4decdff8063a8 100644 --- a/pandas/tests/strings/test_cat.py +++ b/pandas/tests/strings/test_cat.py @@ -376,3 +376,22 @@ def test_cat_different_classes(klass): result = s.str.cat(klass(["x", "y", "z"])) expect...
- [x] closes #28277 (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/47755
2022-07-16T20:41:33Z
2022-07-19T19:06:30Z
2022-07-19T19:06:30Z
2022-07-19T21:30:34Z
BUG: Set y-axis label, limits and ticks for a secondary y-axis (#47753)
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index b081f743f9b0b..6283321c7f710 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -977,6 +977,7 @@ Plotting - The function :meth:`DataFrame.plot.scatter` now accepts ``color`` as an alias for ``c`` and ``s...
When passing `secondary_y=True` to a plotting function, a second axes with a y-axis on the right side is created. Passing `ylabel`, `ylim` or `yticks` changed these properties of the original invisible left y-axis, not the secondary y-axis. - [x] closes #47753 - [x] [Tests added and passed](https://pandas.pydat...
https://api.github.com/repos/pandas-dev/pandas/pulls/47754
2022-07-16T19:03:10Z
2022-07-18T17:37:41Z
2022-07-18T17:37:41Z
2022-07-19T08:22:49Z
BUG: Fix pc.power_checked min version
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 07b09d78016fd..8957ea493e9ad 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -18,6 +18,7 @@ from pandas.compat import ( pa_version_under1p01, pa_version_under2p0, + pa_version...
xref https://github.com/pandas-dev/pandas/pull/47645#discussion_r922685768= First supported in pyarrow 4.0: https://arrow.apache.org/docs/4.0/python/api/compute.html
https://api.github.com/repos/pandas-dev/pandas/pulls/47752
2022-07-16T18:01:28Z
2022-07-17T09:53:59Z
2022-07-17T09:53:59Z
2022-07-17T17:27:16Z
FIX: REGR: setting numeric value in Categorical Series with enlargement raise internal error
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 502e37705abfb..aace7ae221304 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -962,6 +962,7 @@ Indexing - Bug in :meth:`DataFrame.sum` min_count changes dtype if input contains NaNs (:issue:`46947`) -...
- [x] closes #47677 - [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/47751
2022-07-16T16:48:54Z
2022-08-16T21:24:23Z
null
2022-08-16T21:25:04Z
TYP: def validate_*
diff --git a/pandas/_libs/tslibs/offsets.pyi b/pandas/_libs/tslibs/offsets.pyi index 12b113f0b73b1..4567dde4e056b 100644 --- a/pandas/_libs/tslibs/offsets.pyi +++ b/pandas/_libs/tslibs/offsets.pyi @@ -104,7 +104,9 @@ class SingleConstructorOffset(BaseOffset): @overload def to_offset(freq: None) -> None: ... @overloa...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47750
2022-07-16T15:49:09Z
2022-07-18T17:38:58Z
2022-07-18T17:38:58Z
2022-09-10T01:39:04Z
BUG: Correct numeric_only default for resample var and std
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index 2af9e09d1c713..83626a42134d6 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -937,7 +937,13 @@ def asfreq(self, fill_value=None): """ return self._upsample("asfreq", fill_value=fill_value) - def std(self, d...
- [x] closes #46560 (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/47749
2022-07-16T15:42:47Z
2022-07-16T18:19:56Z
2022-07-16T18:19:56Z
2022-07-18T21:09:50Z
FIX: PeriodIndex json roundtrip
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 82090c93a965e..252bea3ba774a 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -956,6 +956,7 @@ I/O - Bug in :func:`read_sas` that scrambled column names (:issue:`31243`) - Bug in :func:`read_sas` with...
- [X] closes #44720 - [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/47747
2022-07-16T11:09:54Z
2022-07-18T22:41:22Z
2022-07-18T22:41:21Z
2022-07-18T22:41:28Z
Update environment.yml
diff --git a/environment.yml b/environment.yml index 0a6055d80c071..39458a8de2d8c 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,7 @@ name: pandas-dev channels: - conda-forge dependencies: - - python=3.8 + - python=3.9 # test dependencies - cython=0.29.30
- update python version - [ ] 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/pand...
https://api.github.com/repos/pandas-dev/pandas/pulls/47746
2022-07-16T04:56:32Z
2022-07-16T05:00:17Z
null
2022-07-16T05:00:17Z
BUG: Behavior with fallback between raise and coerce #46071
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index a1a2149da7cf6..74e3e1093eb75 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -902,6 +902,7 @@ Datetimelike - Bug in :meth:`DatetimeIndex.resolution` incorrectly returning "day" instead of "nanosecond"...
- [ ] closes #46071 (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/47745
2022-07-15T23:50:02Z
2022-11-28T12:26:13Z
null
2022-11-28T12:26:13Z
ENH/TST: Add quantile & mode tests for ArrowExtensionArray
diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index 5db859897b663..147134afd70c3 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -28,6 +28,7 @@ pa_version_under6p0, pa_version_under7p0, pa_version_under8p0, + pa_version_under9p0, ) if TYPE_CHECKING: @...
- [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/47744
2022-07-15T21:27:05Z
2022-07-28T18:12:36Z
2022-07-28T18:12:36Z
2022-07-28T18:23:36Z
DOC: Clarify return type cases in pandas.unique
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 159c0bb2e72c0..f72371d046578 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -325,15 +325,14 @@ def unique(values): Returns ------- - numpy.ndarray or ExtensionArray - - The return can be: - - ...
- [ ] closes #47426 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/47742
2022-07-15T17:45:47Z
2022-09-09T18:12:06Z
null
2022-09-09T18:12:06Z
DOC: Clarify return type cases in pandas.unique
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 159c0bb2e72c0..f6c6c81e73ea3 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -333,7 +333,8 @@ def unique(values): * Categorical : when the input is a Categorical dtype * ndarray : when the input is a Ser...
- [ ] closes #47426 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/47741
2022-07-15T17:34:19Z
2022-07-15T17:38:37Z
null
2022-07-15T17:38:37Z
DEPR: deprecate pandas.tests
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 9651269963803..955e496be6592 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -771,6 +771,7 @@ Other Deprecations - Clarified warning from :func:`to_datetime` when delimited dates can't be parsed in ac...
- [x] closes #46651 - [ ] [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] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature. Not sure how t...
https://api.github.com/repos/pandas-dev/pandas/pulls/47738
2022-07-15T15:52:52Z
2022-07-18T01:28:53Z
null
2022-09-10T01:39:02Z
TST: add test for last() on dataframe grouped by on boolean column (#46409)
diff --git a/pandas/tests/frame/methods/test_dtypes.py b/pandas/tests/frame/methods/test_dtypes.py index 31592f987f04d..87e6ed5b1b135 100644 --- a/pandas/tests/frame/methods/test_dtypes.py +++ b/pandas/tests/frame/methods/test_dtypes.py @@ -1,6 +1,7 @@ from datetime import timedelta import numpy as np +import pytes...
- [x] closes #46409 - [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/47736
2022-07-15T14:17:44Z
2022-07-18T19:06:22Z
2022-07-18T19:06:21Z
2022-07-18T19:06:31Z
DOC: Updating some capitalization in doc/source/user_guide #32550
diff --git a/doc/source/user_guide/sparse.rst b/doc/source/user_guide/sparse.rst index ef2cb8909b59d..bc4eec1c23a35 100644 --- a/doc/source/user_guide/sparse.rst +++ b/doc/source/user_guide/sparse.rst @@ -266,8 +266,8 @@ have no replacement. .. _sparse.scipysparse: -Interaction with scipy.sparse ------------------...
- [x] contributes to #32550 - [x] I left RadViz, SparseArray, SparseDtype, and PandasObject as is
https://api.github.com/repos/pandas-dev/pandas/pulls/47732
2022-07-15T04:00:32Z
2022-07-22T18:05:06Z
2022-07-22T18:05:06Z
2022-07-22T18:05:06Z
BUG: groupby.corrwith fails with axis=1 and other=df
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 89e47af4cb614..b44db88723742 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -1024,7 +1024,7 @@ def curried(x): curried, self._obj_with_exclusions, is_transform=is_transform ...
- [x] closes #47723 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Sin...
https://api.github.com/repos/pandas-dev/pandas/pulls/47731
2022-07-15T03:43:15Z
2022-07-15T20:50:50Z
2022-07-15T20:50:50Z
2022-07-15T21:01:38Z
ENH/TST: Add Reduction tests for ArrowExtensionArray
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 8957ea493e9ad..ab0e262caa6a9 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -628,6 +628,69 @@ def _concat_same_type( arr = pa.chunked_array(chunks) return cls(arr) + ...
- [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/47730
2022-07-15T03:10:09Z
2022-07-22T02:30:18Z
2022-07-22T02:30:18Z
2022-07-22T02:57:02Z
TYP: freq and na_value
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 325c94d0ea267..c3fbd716ad09d 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -2202,7 +2202,9 @@ def validate_periods(periods: int | float | None) -> int | None: return periods # t...
Type annotations are only related by having `lib.no_default` as a default value (pyright then assumes that their type is `lib.NoDefault`).
https://api.github.com/repos/pandas-dev/pandas/pulls/47729
2022-07-15T02:19:11Z
2022-07-18T19:19:56Z
2022-07-18T19:19:56Z
2022-09-10T01:39:00Z
DEPR: deprecate unused errors in NDFrame.where/mask
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 9651269963803..112f5f08a3393 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -771,6 +771,7 @@ Other Deprecations - Clarified warning from :func:`to_datetime` when delimited dates can't be parsed in ac...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47728
2022-07-15T02:15:41Z
2022-07-15T17:37:34Z
2022-07-15T17:37:34Z
2022-09-10T01:39:06Z
DOC: update min package versions in install.rst to align with v.1.5.0 requirements
diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst index 39c9db2c883b8..5d9bfd97030b5 100644 --- a/doc/source/getting_started/install.rst +++ b/doc/source/getting_started/install.rst @@ -199,7 +199,7 @@ the code base as of this writing. To run it on your machine to verify that ...
Documentation update: should be part of the 1.5 milestone Closes #47740 Makes the min package versions in `doc/source/install.rst` consistent with those recommended in [`doc/source/whatsnew/v1.5.0.rst`.](https://github.com/pandas-dev/pandas/blob/main/doc/source/whatsnew/v1.5.0.rst#increased-minimum-versions-for-de...
https://api.github.com/repos/pandas-dev/pandas/pulls/47727
2022-07-15T02:11:45Z
2022-07-18T19:07:48Z
2022-07-18T19:07:48Z
2022-09-28T20:45:45Z
BUG: numeric_only with axis=1 in DataFrame.corrwith and DataFrameGroupBy.cummin/max
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e70312c562907..629f711d8ec73 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10550,7 +10550,8 @@ def corrwith( else: return this.apply(lambda x: other.corr(x, method=method), axis=axis) - other = other...
Part of #46560 - [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/47724
2022-07-14T22:35:42Z
2022-07-16T18:14:59Z
2022-07-16T18:14:59Z
2022-07-17T14:16:12Z
ENH: Timestamp.min/max/resolution support non-nano
diff --git a/pandas/_libs/tslibs/np_datetime.pyx b/pandas/_libs/tslibs/np_datetime.pyx index 692b4430fa577..5c47c176b52ef 100644 --- a/pandas/_libs/tslibs/np_datetime.pyx +++ b/pandas/_libs/tslibs/np_datetime.pyx @@ -1,4 +1,5 @@ from cpython.datetime cimport ( + PyDateTime_CheckExact, PyDateTime_DATE_GET_HOUR,...
- [ ] 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/47720
2022-07-14T15:08:31Z
2022-07-21T17:41:44Z
2022-07-21T17:41:44Z
2022-07-22T17:43:21Z
GroupBy enhancement unifies the return of iterating over GroupBy #42795
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index a882d3a955469..61fe7ee7a1b39 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -294,6 +294,8 @@ def __getitem__(self, item: PositionalIndexer): ) # We are not an array i...
- [x] closes #42795 - [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/47719
2022-07-14T14:48:04Z
2022-12-05T18:01:19Z
null
2022-12-05T18:01:20Z
TST: add test for groupby with dropna=False on multi-index
diff --git a/pandas/tests/groupby/test_groupby_dropna.py b/pandas/tests/groupby/test_groupby_dropna.py index ca55263146db3..515c96780e731 100644 --- a/pandas/tests/groupby/test_groupby_dropna.py +++ b/pandas/tests/groupby/test_groupby_dropna.py @@ -378,3 +378,12 @@ def test_groupby_nan_included(): tm.assert_nu...
- [x] closes #39895 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/47717
2022-07-14T07:28:01Z
2022-07-14T16:53:47Z
2022-07-14T16:53:46Z
2022-07-14T16:57:51Z
opt out of bottleneck for nanmean
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index a6408b940119d..a8af7f023d34d 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -844,7 +844,7 @@ Numeric - Bug in operations with array-likes with ``dtype="boolean"`` and :attr:`NA` incorrectly altering ...
- [x] closes #42878 - [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/47716
2022-07-14T07:23:58Z
2022-07-18T19:14:18Z
2022-07-18T19:14:17Z
2022-07-18T19:51:36Z
TST: Test for the Enum triggering TypeError (#22551 issue)
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index 0864032b741c9..25257a2c102fd 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -1,5 +1,6 @@ from collections import deque from datetime import datetime +from enum import Enu...
- [x] closes #22551
https://api.github.com/repos/pandas-dev/pandas/pulls/47715
2022-07-14T04:20:41Z
2022-07-16T18:08:28Z
2022-07-16T18:08:27Z
2022-07-16T18:08:41Z
BUG: df.fillna ignores axis when df is single block
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index a6408b940119d..9651269963803 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -914,6 +914,7 @@ Missing - Bug in :meth:`Series.fillna` and :meth:`DataFrame.fillna` with :class:`IntervalDtype` and incomp...
- [x] closes #47713 - [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/47714
2022-07-14T04:11:29Z
2022-07-14T20:41:38Z
2022-07-14T20:41:37Z
2022-07-14T20:56:04Z
DOC: fix typos in "See also" documentation section
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e70312c562907..5c3fdf04c4342 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10355,9 +10355,10 @@ def cov( See Also -------- Series.cov : Compute covariance with another Series. - core.window.ExponentialMov...
- [ ] 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/47712
2022-07-14T02:02:42Z
2022-07-16T19:53:02Z
2022-07-16T19:53:02Z
2022-07-17T01:15:09Z
ENH/TST: Add BaseUnaryOpsTests tests for ArrowExtensionArray
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 92aedbb836b38..69cd2a44dfed4 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -235,6 +235,20 @@ def __arrow_array__(self, type=None): """Convert myself to a pyarrow ChunkedArray."""...
- [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/47711
2022-07-14T00:13:00Z
2022-07-21T20:35:51Z
2022-07-21T20:35:51Z
2022-07-21T21:58:54Z
GH: Add CITATION.cff
diff --git a/CITATION.cff b/CITATION.cff new file mode 100644 index 0000000000000..0161dfa92fdef --- /dev/null +++ b/CITATION.cff @@ -0,0 +1,10 @@ +cff-version: 1.2.0 +title: 'pandas-dev/pandas: Pandas' +message: 'If you use this software, please cite it as below.' +authors: + - name: "The pandas development team" +li...
Enables a citation widget on the side of the repository that provides a copy-pastable ABA & Bibtex citation: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files Followed this schema: https://github.com/citation-file-format/citation-...
https://api.github.com/repos/pandas-dev/pandas/pulls/47710
2022-07-13T22:18:24Z
2022-07-16T02:12:22Z
2022-07-16T02:12:22Z
2022-07-16T17:35:38Z
Backport PR #47670 on branch 1.4.x (CI: Fix npdev build post Cython annotation change)
diff --git a/pandas/_libs/arrays.pyx b/pandas/_libs/arrays.pyx index 8895a2bcfca89..f63d16e819c92 100644 --- a/pandas/_libs/arrays.pyx +++ b/pandas/_libs/arrays.pyx @@ -157,7 +157,7 @@ cdef class NDArrayBacked: return self._from_backing_data(res_values) # TODO: pass NPY_MAXDIMS equiv to axis=None? - ...
Backport PR #47670: CI: Fix npdev build post Cython annotation change
https://api.github.com/repos/pandas-dev/pandas/pulls/47709
2022-07-13T20:58:59Z
2022-07-14T11:42:15Z
2022-07-14T11:42:15Z
2022-07-14T11:42:15Z
BUG: json_normalize raises boardcasting error with list-like metadata
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 48c808819d788..32c7a0e73fa06 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -1047,6 +1047,7 @@ I/O - Bug in :func:`read_parquet` with ``use_nullable_dtypes=True`` where ``float64`` dtype was returned...
- [x] closes #37782 - [x] closes #47182 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.htm...
https://api.github.com/repos/pandas-dev/pandas/pulls/47708
2022-07-13T20:09:29Z
2022-10-24T21:22:44Z
null
2022-10-24T21:22:45Z
WEB: Governance community members
diff --git a/web/pandas/about/governance.md b/web/pandas/about/governance.md index 92923db6e6763..f017b153c1e8d 100644 --- a/web/pandas/about/governance.md +++ b/web/pandas/about/governance.md @@ -49,145 +49,142 @@ manage project donations and acts as a parent legal entity. NumFOCUS is the only legal entity that has a...
xref #47694 Draft of the different groups of the pandas community worth mentioning in the governance. I personally find this format (a concise description with responsibilities, and a section for how membership works) the best. I think it keeps simple, while having all the information so decision making is clear. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/47706
2022-07-13T18:34:42Z
2022-07-28T17:17:15Z
null
2022-07-28T17:26:56Z
GH: Convert feature request template to GH form
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 0c30b941bc520..0000000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,33 +0,0 @@ ---- - -name: Feature Request -about: Suggest an idea for pandas -title: "ENH:" -l...
Mostly a 1:1 transfer. I removed the `API breaking implications` section though as the reviewers should have more/just-as-good insight into potential API impacts.
https://api.github.com/repos/pandas-dev/pandas/pulls/47696
2022-07-13T06:19:16Z
2022-07-16T02:13:34Z
2022-07-16T02:13:34Z
2022-07-16T17:37:35Z
DOC: Centeralized testing guidance for contributions
diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index 81cd69aa384a4..c74c44fb1d5f0 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -324,8 +324,169 @@ Writing tests All tests should...
* Move contents of `doc/source/development/test_writing.rst` to testing section in `doc/source/development/contributing_codebase.rst` * Consolidate 2 warning testing sections to 1
https://api.github.com/repos/pandas-dev/pandas/pulls/47692
2022-07-13T00:30:01Z
2022-07-16T02:15:05Z
2022-07-16T02:15:05Z
2022-07-22T03:58:34Z
ENH: dt64/td64 comparison support non-nano
diff --git a/pandas/_libs/tslibs/np_datetime.pyi b/pandas/_libs/tslibs/np_datetime.pyi index 27871a78f8aaf..757165fbad268 100644 --- a/pandas/_libs/tslibs/np_datetime.pyi +++ b/pandas/_libs/tslibs/np_datetime.pyi @@ -1,5 +1,7 @@ import numpy as np +from pandas._typing import npt + class OutOfBoundsDatetime(ValueErr...
- [ ] 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/47691
2022-07-12T23:31:55Z
2022-07-13T20:00:40Z
2022-07-13T20:00:40Z
2022-07-13T20:40:01Z
Specify that both ``by`` and ``level`` should not be specified in ``groupby`` - GH40378
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index 5d8ef7ce02097..3a6ec0bfd6c5c 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -274,15 +274,16 @@ the length of the ``groups`` dict, so it is largely just a convenience: df gb = df.gr...
- [ ] closes #40378 (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/47690
2022-07-12T22:39:57Z
2022-07-18T13:30:37Z
null
2022-07-18T13:30:37Z
First proj
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ead4ea744c647..1de871942aeb1 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8332,6 +8332,18 @@ def update( 1 Falcon 370.0 2 Parrot 24.0 3 Parrot 26.0 + +When using ``.groupby()`` on a multiple index dataframe, +do n...
- [ ] 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/47689
2022-07-12T21:10:25Z
2022-07-13T21:11:47Z
null
2022-07-13T21:11:47Z
BUG/TST fix replace with panda NAType #47480
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 0b450fab53137..0e5bde5fc29ae 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -910,6 +910,7 @@ Missing - Bug in :meth:`Series.fillna` and :meth:`DataFrame.fillna` with :class:`IntervalDtype` and incomp...
- [ ] closes #47480 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pand...
https://api.github.com/repos/pandas-dev/pandas/pulls/47688
2022-07-12T21:10:10Z
2022-07-13T17:50:11Z
null
2022-07-13T17:50:21Z
updated the docstring in accordance with GH40378
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ead4ea744c647..1de871942aeb1 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8332,6 +8332,18 @@ def update( 1 Falcon 370.0 2 Parrot 24.0 3 Parrot 26.0 + +When using ``.groupby()`` on a multiple index dataframe, +do n...
- [ ] 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/47686
2022-07-12T20:36:32Z
2022-07-12T21:05:41Z
null
2022-07-12T21:06:18Z
TST: avoid sort when concat int-index Dataframes with sort=False
diff --git a/pandas/tests/reshape/concat/test_sort.py b/pandas/tests/reshape/concat/test_sort.py index a789dc0f8dc83..e83880625f3d6 100644 --- a/pandas/tests/reshape/concat/test_sort.py +++ b/pandas/tests/reshape/concat/test_sort.py @@ -93,6 +93,22 @@ def test_concat_frame_with_sort_false(self): tm.assert_fr...
- [x] closes #37937 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Thi...
https://api.github.com/repos/pandas-dev/pandas/pulls/47685
2022-07-12T19:14:38Z
2022-07-12T21:40:09Z
2022-07-12T21:40:09Z
2022-07-13T01:23:39Z
DOC: Clarify that FrozenList is hashable
diff --git a/pandas/core/indexes/frozen.py b/pandas/core/indexes/frozen.py index deb6ac2c80a81..90713e846fbd1 100644 --- a/pandas/core/indexes/frozen.py +++ b/pandas/core/indexes/frozen.py @@ -18,7 +18,7 @@ class FrozenList(PandasObject, list): """ Container that doesn't allow setting item *but* - because...
- [x] closes #47683 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x...
https://api.github.com/repos/pandas-dev/pandas/pulls/47684
2022-07-12T18:48:11Z
2022-07-12T19:10:32Z
2022-07-12T19:10:32Z
2022-07-12T19:10:40Z
CLN: non-nano follow-ups
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index ee3964b892e2e..9c7f35d240f96 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -152,7 +152,7 @@ def format_array_from_datetime( # a format based on precision basic_format = format is None if basic_format: - ...
- [ ] 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/47682
2022-07-12T16:10:23Z
2022-07-12T19:01:24Z
2022-07-12T19:01:24Z
2022-07-12T19:19:11Z
WEB: Updating links of the governance page
diff --git a/web/pandas/about/governance.md b/web/pandas/about/governance.md index 56ca0a2aac3db..92923db6e6763 100644 --- a/web/pandas/about/governance.md +++ b/web/pandas/about/governance.md @@ -1,23 +1,21 @@ -# Main Governance Document +# Project governance The official version of this document, along with a list...
Changing links and header formatting of the governance page. There are no material changes in this PR, I'll follow up with actual proposed updates to the governance.
https://api.github.com/repos/pandas-dev/pandas/pulls/47679
2022-07-12T10:57:09Z
2022-07-12T17:15:00Z
2022-07-12T17:15:00Z
2022-07-12T17:15:10Z
WEB: Update sponsors in website
diff --git a/web/pandas/config.yml b/web/pandas/config.yml index aeef826157b90..1330addf9a229 100644 --- a/web/pandas/config.yml +++ b/web/pandas/config.yml @@ -118,17 +118,27 @@ sponsors: url: https://www.twosigma.com/ logo: /static/img/partners/two_sigma.svg kind: partner - description: "Phillip Clo...
Still waiting for the logos of the new sponsors, and final confirmation that we want to replace Ursa Labs by Voltron, but opening early in case there is feedback.
https://api.github.com/repos/pandas-dev/pandas/pulls/47678
2022-07-12T09:42:04Z
2022-07-24T09:24:51Z
2022-07-24T09:24:51Z
2022-07-24T09:24:52Z
TYP: make na_value consistently a property
diff --git a/pandas/core/arrays/string_.py b/pandas/core/arrays/string_.py index 083acf16ec758..c9abef226770c 100644 --- a/pandas/core/arrays/string_.py +++ b/pandas/core/arrays/string_.py @@ -90,8 +90,11 @@ class StringDtype(StorageExtensionDtype): name = "string" - #: StringDtype.na_value uses pandas.NA -...
Similar to `_engine_type`, `na_value` is sometimes a property and sometimes a class variable. There were multiple places that access `StringDtype.na_value` (works with class variables but not properties). I replaced these cases with the value of `StringDtype().na_value`. (and one `_engine_type` class variable I...
https://api.github.com/repos/pandas-dev/pandas/pulls/47676
2022-07-12T01:21:53Z
2022-07-12T17:21:45Z
2022-07-12T17:21:45Z
2022-09-10T01:39:07Z
ENH: TDA+datetime_scalar support non-nano
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index a2251c49a2cc5..eadf47b36d7fc 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -73,7 +73,6 @@ from pandas.util._exceptions import find_stack_level from pandas.core.dtypes.common impor...
- [ ] 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/47675
2022-07-11T23:31:51Z
2022-07-12T01:49:14Z
2022-07-12T01:49:14Z
2022-07-12T16:05:08Z
ENH: Move database error to error/__init__.py per GH27656
diff --git a/doc/source/reference/testing.rst b/doc/source/reference/testing.rst index e617712aa8f5e..338dd87aa8c62 100644 --- a/doc/source/reference/testing.rst +++ b/doc/source/reference/testing.rst @@ -29,6 +29,7 @@ Exceptions and warnings errors.AttributeConflictWarning errors.ClosedFileError errors.CSS...
- [x] xref #27656. this GitHub issue is being done in multiple parts - [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/developme...
https://api.github.com/repos/pandas-dev/pandas/pulls/47674
2022-07-11T20:35:47Z
2022-07-14T16:35:35Z
2022-07-14T16:35:35Z
2022-08-03T04:21:56Z
Bug fix using GroupBy.resample produces inconsistent behavior when calling it over empty df #47705
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index 098750aa3a2b2..6e435c8eaaf2f 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -244,6 +244,7 @@ Groupby/resample/rolling - Bug in :class:`.ExponentialMovingWindow` with ``online`` not raising a ``NotImp...
- [X] closes #47705 - [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] A...
https://api.github.com/repos/pandas-dev/pandas/pulls/47672
2022-07-11T19:16:15Z
2022-10-03T20:27:31Z
2022-10-03T20:27:31Z
2022-10-13T16:59:54Z
BUG #43767 GroupBy resambler fix
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index c70acc0a0b18c..1cb1156da379d 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -277,6 +277,7 @@ Other enhancements - Allow reading compressed SAS files with :func:`read_sas` (e.g., ``.sas7bdat.gz`` file...
- [ ] closes #43767 - [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/47671
2022-07-11T19:08:55Z
2022-07-11T19:10:41Z
null
2022-07-11T19:10:41Z
CI: Fix npdev build post Cython annotation change
diff --git a/pandas/_libs/arrays.pyx b/pandas/_libs/arrays.pyx index 8895a2bcfca89..f63d16e819c92 100644 --- a/pandas/_libs/arrays.pyx +++ b/pandas/_libs/arrays.pyx @@ -157,7 +157,7 @@ cdef class NDArrayBacked: return self._from_backing_data(res_values) # TODO: pass NPY_MAXDIMS equiv to axis=None? - ...
- [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). Appears the new build fa...
https://api.github.com/repos/pandas-dev/pandas/pulls/47670
2022-07-11T18:33:03Z
2022-07-13T20:58:30Z
2022-07-13T20:58:30Z
2022-07-13T20:58:45Z
ENH: Add reversed to Series so that it is also a Sequence
diff --git a/pandas/core/base.py b/pandas/core/base.py index 1fa840bcbd51f..be8530d3633c4 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -757,6 +757,25 @@ def __iter__(self): else: return map(self._values.item, range(self._values.size)) + def __reversed__(self): + """ + ...
Add Reversed so that it fulfills all properties of Sequence - [ ] 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 pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/47669
2022-07-11T18:13:14Z
2022-07-12T07:31:52Z
null
2022-07-12T07:31:52Z
ENH: TDA.__mul__ support non-nano
diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index fbd27aa026a37..5f227cb45a65b 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -398,7 +398,7 @@ def __mul__(self, other) -> TimedeltaArray: freq = None if self.freq is n...
- [ ] 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/47668
2022-07-11T14:27:37Z
2022-07-11T22:36:14Z
2022-07-11T22:36:14Z
2022-07-11T23:29:01Z
Code review from #46759 : moved strftime benchmark file outside of tslibs dir
diff --git a/asv_bench/benchmarks/tslibs/strftime.py b/asv_bench/benchmarks/strftime.py similarity index 100% rename from asv_bench/benchmarks/tslibs/strftime.py rename to asv_bench/benchmarks/strftime.py
Minor : suggested by https://github.com/pandas-dev/pandas/pull/46759#discussion_r915263401
https://api.github.com/repos/pandas-dev/pandas/pulls/47665
2022-07-11T07:53:59Z
2022-07-11T17:02:04Z
2022-07-11T17:02:04Z
2022-07-11T17:02:11Z
TYP: make _engine_type consistently a property
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c8123f90ab3a3..06025c730700f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -93,7 +93,7 @@ repos: types: [python] stages: [manual] additional_dependencies: &pyright_dependencies - - pyright@1.1....
`_engine_type` was sometimes a property and sometimes a class variable.
https://api.github.com/repos/pandas-dev/pandas/pulls/47664
2022-07-11T01:34:19Z
2022-07-11T16:49:49Z
2022-07-11T16:49:49Z
2022-09-21T15:28:31Z
Enh move pytable errors and warnings
diff --git a/doc/source/reference/testing.rst b/doc/source/reference/testing.rst index 249c2c56cfe57..e617712aa8f5e 100644 --- a/doc/source/reference/testing.rst +++ b/doc/source/reference/testing.rst @@ -26,11 +26,14 @@ Exceptions and warnings errors.AbstractMethodError errors.AccessorRegistrationWarning + ...
- [x] xref #27656. this GitHub issue is being done in multiple parts - [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/developme...
https://api.github.com/repos/pandas-dev/pandas/pulls/47662
2022-07-10T20:42:40Z
2022-07-10T23:06:44Z
2022-07-10T23:06:44Z
2022-07-10T23:06:53Z
DOC: Fixed CoC broken link
diff --git a/README.md b/README.md index fc3f988dc6809..aaf63ead9c416 100644 --- a/README.md +++ b/README.md @@ -169,4 +169,4 @@ Or maybe through using pandas you have an idea of your own or are looking for so Feel free to ask questions on the [mailing list](https://groups.google.com/forum/?fromgroups#!forum/pydata)...
Link to Code of Conduct in README.md broke after moving markdown files to `.github` organization level repository (#47412). Redirected link to new location
https://api.github.com/repos/pandas-dev/pandas/pulls/47661
2022-07-10T19:28:28Z
2022-07-10T21:43:07Z
2022-07-10T21:43:07Z
2022-07-10T21:43:12Z
WEB: Add governance page to the website
diff --git a/web/pandas/about/governance.md b/web/pandas/about/governance.md new file mode 100644 index 0000000000000..56ca0a2aac3db --- /dev/null +++ b/web/pandas/about/governance.md @@ -0,0 +1,326 @@ +# Main Governance Document + +The official version of this document, along with a list of +individuals and institutio...
I was having a look at the [pandas governance repo](https://github.com/pandas-dev/pandas-governance) and seems most things there are duplicated from the website. The list of core developers, the code of conduct, the sponsors, are all in the website, and in my opinion presented in a clearer and more accessible way. T...
https://api.github.com/repos/pandas-dev/pandas/pulls/47660
2022-07-10T17:20:44Z
2022-07-11T16:54:28Z
2022-07-11T16:54:28Z
2022-07-11T16:54:36Z
ENH: GH19708 - Index now has diff and round methods
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index fc5fcaeab7d2a..941485a6e15eb 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -6933,6 +6933,63 @@ def drop( indexer = indexer[~mask] return self.delete(indexer) + def round(self, decimals...
- [X] closes #19708 - [ ] [Tests added and passed] - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [X] Added [type annotations]to new arguments/methods/functions. - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file ...
https://api.github.com/repos/pandas-dev/pandas/pulls/47658
2022-07-10T01:55:12Z
2022-08-22T18:04:20Z
null
2022-08-22T18:04:21Z
ENH - Add index parameter do df.to_dict()
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 7aa1c1e84aa09..e38b12757e37e 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -278,6 +278,7 @@ Other enhancements - :meth:`DatetimeIndex.astype` now supports casting timezone-naive indexes to ``datetim...
- [x] closes #46398 - [x] [Tests added and passed] - [x] All [code checks passed] - [x] Added [type annotations] - [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file
https://api.github.com/repos/pandas-dev/pandas/pulls/47657
2022-07-10T00:27:11Z
2022-09-01T21:24:52Z
null
2022-09-01T21:24:52Z
SAS7BDAT parser: Improve subheader lookup performance
diff --git a/pandas/io/sas/_sas.pyi b/pandas/io/sas/_sas.pyi index 527193dd71e57..5d65e2b56b591 100644 --- a/pandas/io/sas/_sas.pyi +++ b/pandas/io/sas/_sas.pyi @@ -3,3 +3,5 @@ from pandas.io.sas.sas7bdat import SAS7BDATReader class Parser: def __init__(self, parser: SAS7BDATReader) -> None: ... def read(sel...
Avoid constructing `_SubheaderPointer` objects and make dictionary lookups in C rather than in Python. Speedup relative to current `main`: ``` <main> <sas/shlookup~1> - 8.32±0.07ms 7.51±0.06ms 0.90 io.sas.SAS.time_test_meta2_pagesas7bdat - 82.8±0.5ms 73.6±0.5ms 0.89 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/47656
2022-07-09T21:40:23Z
2022-10-04T17:56:17Z
2022-10-04T17:56:17Z
2022-10-13T16:59:53Z
CLN: Rename private variables to inclusive
diff --git a/pandas/_libs/interval.pyi b/pandas/_libs/interval.pyi index ba0a339fa93dd..bad0f2bab93d8 100644 --- a/pandas/_libs/interval.pyi +++ b/pandas/_libs/interval.pyi @@ -17,7 +17,7 @@ from pandas._typing import ( Timestamp, ) -VALID_CLOSED: frozenset[str] +VALID_INCLUSIVE: frozenset[str] _OrderableSca...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47655
2022-07-09T21:00:51Z
2022-07-10T00:30:31Z
2022-07-10T00:30:31Z
2022-07-18T00:24:22Z
TYP: fix some of the __hash__ methods
diff --git a/pandas/core/arrays/arrow/_arrow_utils.py b/pandas/core/arrays/arrow/_arrow_utils.py index 5ed10661e8983..3b8333fdb410a 100644 --- a/pandas/core/arrays/arrow/_arrow_utils.py +++ b/pandas/core/arrays/arrow/_arrow_utils.py @@ -92,7 +92,7 @@ def __eq__(self, other): else: return NotImplem...
`__hash__` is `None` for DataFrame/Series/Index but I cannot find the line that sets `__hash__ = None`
https://api.github.com/repos/pandas-dev/pandas/pulls/47654
2022-07-09T18:27:01Z
2022-07-10T00:32:30Z
2022-07-10T00:32:30Z
2022-09-21T15:28:31Z
ci: add GitHub token permissions for workflows
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index be894e6a5a63e..e091160c952f8 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -12,6 +12,9 @@ on: paths-ignore: - "doc/**" +permissions: + contents: read + jobs: pytest...
This PR adds minimum token permissions for the GITHUB_TOKEN using https://github.com/step-security/secure-workflows. GitHub recommends defining minimum GITHUB_TOKEN permissions for securing GitHub Actions workflows - https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/ -...
https://api.github.com/repos/pandas-dev/pandas/pulls/47652
2022-07-09T14:59:00Z
2022-07-11T16:57:29Z
2022-07-11T16:57:29Z
2022-07-11T16:57:37Z
WEB: Update NumFOCUS committee members
diff --git a/web/pandas/config.yml b/web/pandas/config.yml index 9165456d55897..5bb0cbc7557f8 100644 --- a/web/pandas/config.yml +++ b/web/pandas/config.yml @@ -101,11 +101,11 @@ maintainers: - Camille Scott - Nathaniel Smith numfocus: - - Phillip Cloud - - Stephan Hoyer - Wes McKinney - Jeff Reback ...
After initial discussion in the mailing list about updating the NumFOCUS committee, I did some research, and based on the [governance docs](https://github.com/pandas-dev/pandas-governance/blob/master/governance.md#numfocus-subcommittee) the main goal of the committee is to manage the funds coming from NumFOCUS. So, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/47650
2022-07-09T07:46:15Z
2022-07-10T07:21:08Z
2022-07-10T07:21:08Z
2022-07-10T07:21:08Z
BUG: #47350 if else added to add NaT for missing time values
diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py index 038e4afdbd767..7f599635fcd5c 100644 --- a/pandas/core/groupby/ops.py +++ b/pandas/core/groupby/ops.py @@ -821,14 +821,37 @@ def apply( # This calls DataSplitter.__iter__ zipped = zip(group_keys, splitter) + i = 0 ...
If else added to add NaT rows for missing time values.
https://api.github.com/repos/pandas-dev/pandas/pulls/47647
2022-07-08T20:23:17Z
2022-10-31T19:14:07Z
null
2022-10-31T19:14:07Z
TYP: Improve typing interval inclusive
diff --git a/pandas/_libs/interval.pyi b/pandas/_libs/interval.pyi index 3bd5dd2042e69..ba0a339fa93dd 100644 --- a/pandas/_libs/interval.pyi +++ b/pandas/_libs/interval.pyi @@ -12,7 +12,7 @@ import numpy.typing as npt from pandas._libs import lib from pandas._typing import ( - IntervalClosedType, + IntervalIn...
This makes the usage of IntervalInclusiveType consistent. Also renamed for consistency with new argument
https://api.github.com/repos/pandas-dev/pandas/pulls/47646
2022-07-08T20:03:59Z
2022-07-09T14:36:07Z
2022-07-09T14:36:07Z
2022-07-09T20:47:33Z
ENH/TST: Add TestBaseArithmeticOps tests for ArrowExtensionArray #47601
diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index 2ab710a5762d3..5db859897b663 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -27,6 +27,7 @@ pa_version_under5p0, pa_version_under6p0, pa_version_under7p0, + pa_version_under8p0, ) if TYPE_CHECKING: @...
- [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). Generally the xfails cor...
https://api.github.com/repos/pandas-dev/pandas/pulls/47645
2022-07-08T19:59:06Z
2022-07-16T02:18:52Z
2022-07-16T02:18:52Z
2022-07-17T17:30:59Z