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: Fix shares_memory for arrow string dtype
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 81cd504119c38..d9f6bb8454d93 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -30,6 +30,7 @@ is_float_dtype, is_sequence, is_signed_integer_dtype, + is_string_dtype, is_unsigned_integer_dtype...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55823
2023-11-04T01:10:36Z
2023-11-06T17:19:01Z
2023-11-06T17:19:01Z
2023-11-06T17:35:32Z
ENH: infer resolution in array_to_datetime_with_tz
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index da9d65bcfc095..ad043d1695eac 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -693,6 +693,8 @@ def array_to_datetime_with_tz( object item int64_t ival _TSObject tsobj + bint infer_reso = creso == NPY_...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55822
2023-11-04T00:48:46Z
2023-11-04T22:52:06Z
2023-11-04T22:52:06Z
2023-11-05T01:55:55Z
BUG: Index.isin raising for arrow strings and null set
diff --git a/doc/source/whatsnew/v2.1.3.rst b/doc/source/whatsnew/v2.1.3.rst index 3b1cd1c152baa..31ab01f171b4a 100644 --- a/doc/source/whatsnew/v2.1.3.rst +++ b/doc/source/whatsnew/v2.1.3.rst @@ -22,7 +22,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in :meth:`DatetimeIndex.diff` raising ``TypeError`` (:issue:`5...
- [ ] 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/55821
2023-11-04T00:47:07Z
2023-11-04T22:50:33Z
2023-11-04T22:50:33Z
2023-12-04T23:27:18Z
Backport PR #55761 on branch 2.1.x (BUG: DatetimeIndex.diff raising TypeError)
diff --git a/doc/source/whatsnew/v2.1.3.rst b/doc/source/whatsnew/v2.1.3.rst index 1359123ef153e..3b1cd1c152baa 100644 --- a/doc/source/whatsnew/v2.1.3.rst +++ b/doc/source/whatsnew/v2.1.3.rst @@ -21,7 +21,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ -- +- Bug in :meth:`DatetimeIndex.diff` raising ``TypeError`` (:iss...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/55819
2023-11-04T00:07:30Z
2023-11-06T22:31:11Z
2023-11-06T22:31:11Z
2023-11-16T12:57:07Z
TST: parametrize over dt64 unit
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 81cd504119c38..e74a8d6dcdc9a 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -1019,6 +1019,17 @@ def iat(x): # ----------------------------------------------------------------------------- +_UNITS = ["s", "ms...
- [ ] 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/55818
2023-11-03T23:10:14Z
2023-11-04T22:20:10Z
2023-11-04T22:20:10Z
2023-11-04T22:21:02Z
COMPAT: Numpy int64 Windows default for Numpy 2.0
diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py index a1ac1024fc3e0..3014bd652d8c4 100644 --- a/pandas/compat/numpy/__init__.py +++ b/pandas/compat/numpy/__init__.py @@ -12,6 +12,7 @@ np_version_gte1p24 = _nlv >= Version("1.24") np_version_gte1p24p3 = _nlv >= Version("1.24.3") np_versi...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/55817
2023-11-03T23:01:08Z
2023-11-06T19:35:06Z
2023-11-06T19:35:06Z
2023-11-06T19:35:24Z
PERF: IndexEngine.get_indexer_non_unique
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 65532c4cbd27c..ba8027c950365 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -326,6 +326,7 @@ Performance improvements - Performance improvement in :meth:`Index.difference` (:issue:`55108`) - Perform...
- [ ] 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/55816
2023-11-03T22:16:12Z
2023-11-06T17:27:19Z
2023-11-06T17:27:19Z
2023-11-16T12:57:08Z
DOC: Add "nullable float" link in "dtypes" table of User Guide
diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst index 33e9f9cabb46d..17ff5d821ed07 100644 --- a/doc/source/user_guide/basics.rst +++ b/doc/source/user_guide/basics.rst @@ -2007,7 +2007,7 @@ documentation sections for more on each type. | ...
The formatting of the "nullable float" entry in [this table](https://pandas.pydata.org/docs/user_guide/basics.html#dtypes) was inconsistent with the other entries. As far as I can tell, there is not (currently) a "nullable float" section of the User Guide, so I've added a reference to the API, as is the case for the ta...
https://api.github.com/repos/pandas-dev/pandas/pulls/55814
2023-11-03T20:26:34Z
2023-11-03T22:26:14Z
2023-11-03T22:26:14Z
2023-11-03T22:27:44Z
BUG: DatetimeIndex with dayfirst/yearfirst and tz
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 65532c4cbd27c..0b1eb1760b94f 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -343,6 +343,7 @@ Categorical Datetimelike ^^^^^^^^^^^^ +- Bug in :class:`DatetimeIndex` construction when passing both a...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55813
2023-11-03T20:26:11Z
2023-11-03T22:28:35Z
2023-11-03T22:28:35Z
2023-11-03T22:39:10Z
BUG: `assert_extension_array_equal` using the wrong dtype
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 65532c4cbd27c..c57035cbef30e 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -345,6 +345,7 @@ Datetimelike ^^^^^^^^^^^^ - Bug in :class:`DatetimeIndex` when passing an object-dtype ndarray of float o...
- [x] closes #55730 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added an entry in the latest `doc/source/whatsnew/v2.1.3.rst` file if fixing a bug or adding a new feature.
https://api.github.com/repos/pandas-dev/pandas/pulls/55812
2023-11-03T20:01:39Z
2023-11-06T17:23:46Z
2023-11-06T17:23:46Z
2023-11-06T17:23:54Z
PERF: avoid unnecessary method call in get_indexer_non_unique() on MultiIndex
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index ebf4f2d515956..9db1c7706149f 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -6041,12 +6041,13 @@ def get_indexer_non_unique( # Note: _maybe_downcast_for_indexing ensures we never get here # w...
Hello, There was a regression that made reindex 60x slower, in pandas v0.23 to v1.4, that was finally fixed by this PR last year discussion https://github.com/pandas-dev/pandas/issues/23735 commit https://github.com/pandas-dev/pandas/pull/46235/files a benchmark was added in a later commit https://github.com/pand...
https://api.github.com/repos/pandas-dev/pandas/pulls/55811
2023-11-03T13:29:32Z
2023-11-07T22:39:47Z
2023-11-07T22:39:47Z
2023-11-07T22:39:53Z
ENH: Allow passing `read_only`, `data_only` and `keep_links` arguments to openpyxl using `engine_kwargs`
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 6ca3cc7dd7a96..e1fa934679100 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -101,6 +101,7 @@ Other enhancements - :func:`tseries.api.guess_datetime_format` is now part of the public API (:issue:`5472...
Previously it was not possible to override the default values for `openpyxl.reader.excel.load_workbook`'s `read_only`, `data_only` and `keep_links` arguments via `pandas.read_excel`'s `engine_kwargs` (see #55027). Now these options can be changed via `engine_kwargs`. - [x] closes #55027 - [x] [Tests added and ...
https://api.github.com/repos/pandas-dev/pandas/pulls/55807
2023-11-03T07:12:23Z
2023-11-09T15:48:12Z
2023-11-09T15:48:12Z
2023-11-09T15:48:19Z
TST: parametrize over unit
diff --git a/pandas/conftest.py b/pandas/conftest.py index b62a4391ca654..efe263a41afe1 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1295,6 +1295,14 @@ def utc_fixture(request): utc_fixture2 = utc_fixture +@pytest.fixture(params=["s", "ms", "us", "ns"]) +def unit(request): + """ + datetime64 ...
Cuts down on the diff when implementing #55564, worth doing anyway.
https://api.github.com/repos/pandas-dev/pandas/pulls/55806
2023-11-03T02:08:47Z
2023-11-03T17:12:49Z
2023-11-03T17:12:49Z
2023-11-03T17:12:55Z
ENH/BUG: infer reso in array_strptime
diff --git a/pandas/_libs/tslibs/strptime.pxd b/pandas/_libs/tslibs/strptime.pxd index 64db2b59dfcff..fd8cafeaefb27 100644 --- a/pandas/_libs/tslibs/strptime.pxd +++ b/pandas/_libs/tslibs/strptime.pxd @@ -7,7 +7,9 @@ from numpy cimport int64_t from pandas._libs.tslibs.np_datetime cimport NPY_DATETIMEUNIT -cdef bin...
- [ ] 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/55805
2023-11-03T01:09:15Z
2023-11-03T22:21:08Z
2023-11-03T22:21:08Z
2023-11-03T22:24:25Z
CI: parametrize and xfail
diff --git a/pandas/tests/indexes/datetimes/test_constructors.py b/pandas/tests/indexes/datetimes/test_constructors.py index bbb64bdd27c45..ab4328788507f 100644 --- a/pandas/tests/indexes/datetimes/test_constructors.py +++ b/pandas/tests/indexes/datetimes/test_constructors.py @@ -1013,35 +1013,35 @@ def test_dti_conver...
cc @mroeschke
https://api.github.com/repos/pandas-dev/pandas/pulls/55804
2023-11-02T20:07:27Z
2023-11-02T22:13:58Z
2023-11-02T22:13:58Z
2023-11-02T22:14:50Z
CLN: __repr__ tests
diff --git a/pandas/tests/frame/indexing/test_getitem.py b/pandas/tests/frame/indexing/test_getitem.py index 9d9324f557c8d..ecd8d1e988fd8 100644 --- a/pandas/tests/frame/indexing/test_getitem.py +++ b/pandas/tests/frame/indexing/test_getitem.py @@ -42,9 +42,6 @@ def test_getitem_periodindex(self): ts = df[rng[...
- [ ] 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/55798
2023-11-01T22:23:22Z
2023-11-02T00:51:15Z
2023-11-02T00:51:15Z
2023-11-02T01:01:22Z
Backport PR #55726 on branch 2.1.x (fix segfault with tz_localize_to_utc)
diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx index e17d264333264..af27acf16b771 100644 --- a/pandas/_libs/tslibs/tzconversion.pyx +++ b/pandas/_libs/tslibs/tzconversion.pyx @@ -332,13 +332,16 @@ timedelta-like} # Shift the delta_idx by if the UTC offset of # the tar...
Backport PR #55726: fix segfault with tz_localize_to_utc
https://api.github.com/repos/pandas-dev/pandas/pulls/55796
2023-11-01T20:51:02Z
2023-11-01T22:52:03Z
2023-11-01T22:52:03Z
2023-11-01T22:52:03Z
Add missing dependencies for: _khash_primitive_helper
diff --git a/pandas/_libs/meson.build b/pandas/_libs/meson.build index b4662d6bf8dd2..c27386743c6e9 100644 --- a/pandas/_libs/meson.build +++ b/pandas/_libs/meson.build @@ -61,12 +61,12 @@ subdir('tslibs') libs_sources = { # Dict of extension name -> dict of {sources, include_dirs, and deps} # numpy include ...
- [ x ] closes #55615 - Add missing dependencies and one can now use `samurai` to build. Thanks to @kaniini for helping me find where to add the dependencies.
https://api.github.com/repos/pandas-dev/pandas/pulls/55795
2023-11-01T18:13:50Z
2023-11-06T17:24:40Z
2023-11-06T17:24:40Z
2023-11-10T20:28:35Z
BUG: mixed-type mixed-timezone/awareness
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 38f39270d12c7..eb1c0924ff99b 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -352,6 +352,7 @@ Datetimelike - Bug in :func:`concat` raising ``AttributeError`` when concatenating all-NA DataFrame with :...
- [x] closes #55693 (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/55793
2023-11-01T16:33:25Z
2023-11-09T15:51:50Z
2023-11-09T15:51:50Z
2023-11-09T15:55:17Z
DEPR offsets: rename ‘Y’ to ‘YE'
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 4800c29d6b630..6731b70fc3860 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -889,7 +889,7 @@ into ``freq`` keyword arguments. The available date offsets and associated frequ ...
- [x] closes #54275 xref #9586, #52064 Deprecated the alias denoting year end frequency “Y” for offsets in favour of “YE".
https://api.github.com/repos/pandas-dev/pandas/pulls/55792
2023-11-01T15:37:16Z
2023-11-09T13:45:08Z
2023-11-09T13:45:08Z
2023-11-09T13:45:09Z
DOC: Index docstring to clarify dtype
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 0301830df483b..ebf4f2d515956 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -325,12 +325,12 @@ class Index(IndexOpsMixin, PandasObject): Parameters ---------- data : array-like (1-dimensional) - ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/55788
2023-11-01T11:37:39Z
2023-11-01T17:20:55Z
2023-11-01T17:20:55Z
2023-11-16T12:57:09Z
BUG: to_datetime with mixed-string-and-numeric
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 99b6310a80f83..3be989865d29a 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -321,7 +321,9 @@ Categorical Datetimelike ^^^^^^^^^^^^ +- Bug in :class:`DatetimeIndex` when passing an object-dtype nda...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55780
2023-10-31T21:32:02Z
2023-11-02T05:06:10Z
2023-11-02T05:06:10Z
2023-11-02T17:14:00Z
ENH/POC: infer resolution in array_strptime
diff --git a/pandas/_libs/tslibs/strptime.pxd b/pandas/_libs/tslibs/strptime.pxd index 32a8edc9ee4a3..64db2b59dfcff 100644 --- a/pandas/_libs/tslibs/strptime.pxd +++ b/pandas/_libs/tslibs/strptime.pxd @@ -14,5 +14,8 @@ cdef class DatetimeParseState: cdef: bint found_tz bint found_naive + b...
array_strptime analogue to #55741, en route to #55564.
https://api.github.com/repos/pandas-dev/pandas/pulls/55778
2023-10-31T20:44:03Z
2023-11-01T22:18:23Z
2023-11-01T22:18:23Z
2023-11-01T22:27:05Z
List accessor
diff --git a/doc/source/reference/series.rst b/doc/source/reference/series.rst index 9acbab7a42800..af262f9e6c336 100644 --- a/doc/source/reference/series.rst +++ b/doc/source/reference/series.rst @@ -526,6 +526,23 @@ Sparse-dtype specific methods and attributes are provided under the Series.sparse.to_coo +.. _...
- [ ] closes #55323(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/55777
2023-10-31T16:17:45Z
2023-11-03T17:31:21Z
2023-11-03T17:31:21Z
2023-11-03T17:52:58Z
BUG: to_datetime with empty string
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index d2eeea78ee7e8..ae900e661725b 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -519,7 +519,12 @@ cpdef array_to_datetime( iresult[i] = _ts.value tz = _ts.tzinfo - if tz is not None: + ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55771
2023-10-31T01:54:59Z
2023-10-31T20:45:33Z
2023-10-31T20:45:33Z
2023-10-31T20:48:05Z
CI: Fix concurrency group for new CoW warn build
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index d00dfc87a0584..0b6843c5a7033 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -69,7 +69,7 @@ jobs: env_file: actions-311.yaml pattern: "not slow and not network and not...
Currently `concurrency.group` has the same key for the CoW builds with 1/warn, causing builds to be canceled
https://api.github.com/repos/pandas-dev/pandas/pulls/55770
2023-10-31T01:30:47Z
2023-10-31T15:09:02Z
2023-10-31T15:09:02Z
2023-10-31T15:09:10Z
BUG: OutOfBoundsDatetime with non-nano dt64tz dtype
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index d9909b0dbfad8..99b6310a80f83 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -330,6 +330,7 @@ Datetimelike - Bug in addition or subtraction of :class:`BusinessDay` offset with ``offset`` attribute to ...
- [x] closes #54620 (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/55768
2023-10-30T21:04:23Z
2023-10-31T16:31:43Z
2023-10-31T16:31:43Z
2023-10-31T17:49:56Z
REGR: fix return class in _constructor_from_mgr for simple subclasses
diff --git a/doc/source/whatsnew/v2.1.3.rst b/doc/source/whatsnew/v2.1.3.rst index 31ab01f171b4a..6413e16afd800 100644 --- a/doc/source/whatsnew/v2.1.3.rst +++ b/doc/source/whatsnew/v2.1.3.rst @@ -13,7 +13,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- Fixed infinite recursion fr...
- [x] closes #55763 (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/55764
2023-10-30T13:51:56Z
2023-11-09T07:55:00Z
2023-11-09T07:55:00Z
2023-11-09T07:55:12Z
DOC: Fixes DataFrame.replace documentation
diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py index ec219941a3afc..4bbbd9266a94a 100644 --- a/pandas/core/shared_docs.py +++ b/pandas/core/shared_docs.py @@ -570,8 +570,7 @@ .. deprecated:: 2.1.0 regex : bool or same types as `to_replace`, default False Whether to interpret...
- [x] closes #55570 - [ ] [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/55762
2023-10-30T12:05:53Z
2023-11-03T17:32:17Z
2023-11-03T17:32:17Z
2023-11-03T17:32:24Z
BUG: DatetimeIndex.diff raising TypeError
diff --git a/doc/source/whatsnew/v2.1.3.rst b/doc/source/whatsnew/v2.1.3.rst index 1359123ef153e..3b1cd1c152baa 100644 --- a/doc/source/whatsnew/v2.1.3.rst +++ b/doc/source/whatsnew/v2.1.3.rst @@ -21,7 +21,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ -- +- Bug in :meth:`DatetimeIndex.diff` raising ``TypeError`` (:iss...
- [x] closes #55752 - [x] closes #55080 - [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.ht...
https://api.github.com/repos/pandas-dev/pandas/pulls/55761
2023-10-30T12:03:06Z
2023-10-31T16:33:32Z
2023-10-31T16:33:32Z
2023-11-16T12:56:57Z
Update _core.py to show valid plot types in the Error Message for Invalid plot kind
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 0eb8ab2412e0e..3b60e95b9dceb 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -961,7 +961,10 @@ def __call__(self, *args, **kwargs): return plot_backend.plot(self._parent, x=x, y=y, kind=kind, **kwargs) ...
If an invalid plot type is passed, the error message raised is ``` raise ValueError(f"{kind} is not a valid plot kind") ``` To give more context to user, it should also show the valid plot kinds.
https://api.github.com/repos/pandas-dev/pandas/pulls/55758
2023-10-30T09:59:03Z
2023-10-31T23:40:59Z
2023-10-31T23:40:59Z
2023-10-31T23:41:06Z
Clarify dtype parameter in read_excel
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 6def0024d9073..d5dc5eac8422e 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -155,9 +155,11 @@ Returns a subset of the columns according to behavior above. dtype : Type name or dict of column -> type, default None ...
Fix #55489 - [ ] 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/d...
https://api.github.com/repos/pandas-dev/pandas/pulls/55757
2023-10-30T08:31:51Z
2023-10-30T16:43:54Z
2023-10-30T16:43:54Z
2023-11-28T17:24:42Z
BUG: incorrect OutOfBoundsDatetime with non-nano dtype
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 4d599040e6d41..f87b5d9e4660c 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -329,6 +329,7 @@ Datetimelike - Bug in addition or subtraction of :class:`BusinessDay` offset with ``offset`` attribute to ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55756
2023-10-30T02:29:58Z
2023-10-30T17:54:22Z
2023-10-30T17:54:22Z
2023-10-30T20:49:50Z
BUG: Index.is_monotonic... incorrectly caching Index.is_unique when first value is NaT
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 4d599040e6d41..bab6f4a37742c 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -323,6 +323,7 @@ Datetimelike ^^^^^^^^^^^^ - Bug in :func:`concat` raising ``AttributeError`` when concatenating all-NA Da...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/55755
2023-10-30T00:51:08Z
2023-10-30T16:54:50Z
2023-10-30T16:54:50Z
2023-11-16T12:56:58Z
fixed bug where pd.NA was being cast to NaN during formatting
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index 6b201f6bf3cfe..8c763cbab41b3 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -696,9 +696,9 @@ def _truncate_vertically(self) -> None: assert self.max_rows_fitted is not None row_num = self.max_ro...
replaced `pd.concat` with `DataFrame.drop` to copy `pd.NA` more faithfully (see linked issue) - [ ] closes #55630
https://api.github.com/repos/pandas-dev/pandas/pulls/55754
2023-10-29T22:13:53Z
2023-11-07T02:30:09Z
2023-11-07T02:30:09Z
2023-11-07T02:30:17Z
REF: collect to_string tests
diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index 888cfc24aea5b..be8249cd3a287 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -456,6 +456,12 @@ be located. - tests.io ...
- [ ] 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/55751
2023-10-29T01:16:55Z
2023-10-29T17:13:45Z
2023-10-29T17:13:45Z
2023-10-29T18:13:01Z
REF: array_strptime
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 8fdbd9affa58a..576ac3f5dcba8 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -477,7 +477,7 @@ cpdef array_to_datetime( elif PyDateTime_Check(val): tz_out = state.process_datetime(val, tz_out, utc_conve...
Nothing major here, but simplifies other branches im working on towards #55564
https://api.github.com/repos/pandas-dev/pandas/pulls/55750
2023-10-29T01:08:39Z
2023-10-29T17:18:32Z
2023-10-29T17:18:32Z
2023-10-29T17:18:44Z
Backport PR #55747 on branch 2.1.x (DOC: Fix release date for 2.1.2)
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index ade7f767815b1..a13a273b01257 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -1,6 +1,6 @@ .. _whatsnew_212: -What's new in 2.1.2 (October 25, 2023) +What's new in 2.1.2 (October 26, 2023) ---------...
Backport PR #55747: DOC: Fix release date for 2.1.2
https://api.github.com/repos/pandas-dev/pandas/pulls/55749
2023-10-28T22:28:07Z
2023-10-29T01:43:00Z
2023-10-29T01:43:00Z
2023-10-29T01:43:00Z
PERF: Timestamp construction with tz and string offset
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index ffc17e5d23258..db0f2023a8450 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -409,44 +409,22 @@ cdef _TSObject convert_datetime_to_tsobject( return obj -cdef _TSObject _create_...
``` import pandas as pd dtstr = "2016-01-01 02:03:04-07:00" tz = "US/Pacific" %timeit pd.Timestamp(dtstr, tz=tz) 31.6 µs ± 318 ns per loop (mean ± std. dev. of 7 runs, 10,000 loops each) # <- branch 33.5 µs ± 196 ns per loop (mean ± std. dev. of 7 runs, 10,000 loops each) # <- main ``` Small bump from a...
https://api.github.com/repos/pandas-dev/pandas/pulls/55748
2023-10-28T22:04:29Z
2023-10-29T01:44:15Z
2023-10-29T01:44:15Z
2023-10-29T02:04:05Z
DOC: Fix release date for 2.1.2
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 2b3e4707b8e0b..38416afc1c94c 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -1,6 +1,6 @@ .. _whatsnew_212: -What's new in 2.1.2 (October 25, 2023) +What's new in 2.1.2 (October 26, 2023) ---------...
- [ ] 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/55747
2023-10-28T19:44:40Z
2023-10-28T22:26:40Z
2023-10-28T22:26:40Z
2023-10-29T17:31:39Z
TST: Make old tests more performant
diff --git a/pandas/tests/apply/test_numba.py b/pandas/tests/apply/test_numba.py index 7e1e44d2119f9..3924d8e74e156 100644 --- a/pandas/tests/apply/test_numba.py +++ b/pandas/tests/apply/test_numba.py @@ -9,7 +9,7 @@ ) import pandas._testing as tm -pytestmark = td.skip_if_no("numba") +pytestmark = [td.skip_if_no("n...
* Use less data to test the same behavior * Parameterize test for loops
https://api.github.com/repos/pandas-dev/pandas/pulls/55746
2023-10-28T19:35:46Z
2023-10-29T01:45:24Z
2023-10-29T01:45:24Z
2023-10-29T01:45:27Z
CoW - don't try to update underlying values of Series/column inplace for inplace operator
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 1674960f21b19..ed942052eccea 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -12398,7 +12398,12 @@ def _inplace_method(self, other, op) -> Self: result = op(self, other) - if self.ndim == 1 and result._indexed_sam...
Related to * https://github.com/pandas-dev/pandas/pull/37508 * https://github.com/pandas-dev/pandas/pull/51403 At the moment, an inplace operator, like `ser += 1` / `df["col"] += 1`, is actually first compute out of place, and then _if the dtypes match_, we update the original series' values inplace with the res...
https://api.github.com/repos/pandas-dev/pandas/pulls/55745
2023-10-28T14:48:24Z
2023-11-17T20:17:03Z
2023-11-17T20:17:03Z
2023-11-27T11:37:52Z
Ensure HDFStore read gives column-major data with CoW
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 91f7b2afec56c..3659e7247495d 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -30,6 +30,7 @@ from pandas._config import ( config, get_option, + using_copy_on_write, using_pyarrow_string_dtype, ) @@ -3297,6 +3298,10 @...
Fixing a failing test that turned up in https://github.com/pandas-dev/pandas/pull/55732. This PR specifically fixes `pandas/tests/io/pytables/test_store.py::test_hdfstore_strides`, which tests that the data coming back from HDF are column-major (the "idea" of the test was to ensure the layout is _preserved_, i.e. whe...
https://api.github.com/repos/pandas-dev/pandas/pulls/55743
2023-10-28T11:43:34Z
2023-10-30T16:56:23Z
2023-10-30T16:56:23Z
2023-11-05T22:13:14Z
BUG: fix nanmedian for CoW without bottleneck
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index e60c42a20a9af..20dc3f20bbb5e 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -757,6 +757,10 @@ def nanmedian(values, *, axis: AxisInt | None = None, skipna: bool = True, mask= >>> nanops.nanmedian(s.values) 2.0 """ + # ...
Fixing a failing test that turned up in https://github.com/pandas-dev/pandas/pull/55732. This PR specifically fixes `pandas/tests/frame/test_reductions.py::test_reduction_axis_none_returns_scalar[float64-True-median]`, i.e. calling `df.median(axis=None)`, for builds that don't have bottleneck installed. If the und...
https://api.github.com/repos/pandas-dev/pandas/pulls/55742
2023-10-28T10:28:37Z
2023-11-17T18:54:22Z
2023-11-17T18:54:22Z
2023-11-27T11:29:52Z
POC/ENH: infer resolution in array_to_datetime
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index f073d099d37ee..c2d2acd95ce43 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -31,9 +31,14 @@ import numpy as np cnp.import_array() +from pandas._libs.tslibs.dtypes cimport ( + get_supported_reso, + npy_unit_to_abbrev, +) ...
xref #55564 implements the relevant logic in array_to_datetime, does not change any user-facing behavior yet. Have not yet done any profiling, but we have to expect a slowdown.
https://api.github.com/repos/pandas-dev/pandas/pulls/55741
2023-10-28T01:25:23Z
2023-11-15T21:36:05Z
2023-11-15T21:36:05Z
2023-11-15T21:36:51Z
REF: misplaced formatting tests
diff --git a/pandas/tests/io/formats/test_info.py b/pandas/tests/frame/methods/test_info.py similarity index 97% rename from pandas/tests/io/formats/test_info.py rename to pandas/tests/frame/methods/test_info.py index 6c3bf01cb1857..7d7f436e3cfe6 100644 --- a/pandas/tests/io/formats/test_info.py +++ b/pandas/tests/fram...
- [ ] 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/55740
2023-10-27T22:06:56Z
2023-10-28T22:29:00Z
2023-10-28T22:29:00Z
2023-10-28T22:30:09Z
DEPS: Test NEP 50
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 88d705dbd9251..50b1ace73c721 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -92,7 +92,7 @@ jobs: - name: "Numpy Dev" env_file: actions-311-numpydev.yaml pa...
closes #56563
https://api.github.com/repos/pandas-dev/pandas/pulls/55739
2023-10-27T21:54:08Z
2023-12-22T00:35:01Z
2023-12-22T00:35:01Z
2024-01-10T17:44:26Z
REF: Compute complete result_index upfront in groupby
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 806a46c248e15..b7af024229740 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -207,6 +207,11 @@ Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ - Bug in :meth:`.DataFrameGroupBy.quantile` when ``int...
- [x] closes #55919 - [x] closes #52848 - [x] closes #36698 - [x] closes #43891 - [x] closes #49980 - [x] closes #56966 - [x] closes #56851 - [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/55738
2023-10-27T21:24:37Z
2024-02-07T05:01:40Z
2024-02-07T05:01:40Z
2024-02-10T18:15:42Z
PERF: Use fused types for map_infer_mask
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 292e6534a46e4..2bc031e4b5f61 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -326,6 +326,7 @@ Performance improvements - Performance improvement in :meth:`Index.difference` (:issue:`55108`) - Perform...
- [ ] 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/55736
2023-10-27T20:10:06Z
2023-11-07T01:14:05Z
2023-11-07T01:14:05Z
2023-11-07T02:26:04Z
BUG: fix online ewma with CoW
diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py index 775f3cd428677..82b4746aa57a5 100644 --- a/pandas/core/window/ewm.py +++ b/pandas/core/window/ewm.py @@ -1068,7 +1068,7 @@ def mean(self, *args, update=None, update_times=None, **kwargs): result_kwargs["columns"] = self._selected_o...
Fixing some failing tests that turned up in https://github.com/pandas-dev/pandas/pull/55732. This PR specifically fixes `pandas/tests/window/test_online.py::TestEWM::test_online_vs_non_online_mean` for Copy-on-Write enabled. The numba function takes the underlying frame's array of values, and then writes into those ...
https://api.github.com/repos/pandas-dev/pandas/pulls/55735
2023-10-27T19:11:59Z
2023-10-27T21:49:15Z
2023-10-27T21:49:15Z
2023-10-27T22:34:09Z
DEPR: errors='ignore'
diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst index d3c9d83b943ce..33e9f9cabb46d 100644 --- a/doc/source/user_guide/basics.rst +++ b/doc/source/user_guide/basics.rst @@ -2261,23 +2261,6 @@ non-conforming elements intermixed that you want to represent as missing: m = ["apple", pd....
- [x] closes #54467 (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/55734
2023-10-27T16:54:35Z
2023-11-02T16:35:30Z
2023-11-02T16:35:30Z
2023-11-02T16:37:46Z
BUG: Comment in ODS-file gets included in string cells
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index ff19ef4eae179..6bee9ef52446f 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -390,6 +390,7 @@ I/O - Bug in :func:`read_excel`, with ``engine="xlrd"`` (``xls`` files) erroring when file contains NaNs/I...
- [x] closes #55200 - [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/55727
2023-10-27T13:06:03Z
2023-10-30T16:59:36Z
2023-10-30T16:59:36Z
2023-11-01T13:12:05Z
fix segfault with tz_localize_to_utc
diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx index 9c8865fbdf428..e77a385113e93 100644 --- a/pandas/_libs/tslibs/tzconversion.pyx +++ b/pandas/_libs/tslibs/tzconversion.pyx @@ -332,13 +332,16 @@ timedelta-like} # Shift the delta_idx by if the UTC offset of # the tar...
this "fixes" the segfault in #55229 but not familiar enough to know if this is correct. @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/55726
2023-10-27T12:49:02Z
2023-11-01T20:49:53Z
2023-11-01T20:49:53Z
2024-01-22T22:24:43Z
TST: improve test_repr_bytes_61_lines setup to speed up test
diff --git a/pandas/tests/frame/test_repr_info.py b/pandas/tests/frame/test_repr_info.py index 63ecdfa5e001b..23aef9ba7d18d 100644 --- a/pandas/tests/frame/test_repr_info.py +++ b/pandas/tests/frame/test_repr_info.py @@ -29,12 +29,7 @@ class TestDataFrameReprInfoEtc: def test_repr_bytes_61_lines(self): # ...
For me this goes from >3s to 0.10s in reported test duration by pytest.
https://api.github.com/repos/pandas-dev/pandas/pulls/55724
2023-10-27T10:33:55Z
2023-10-27T16:40:04Z
2023-10-27T16:40:04Z
2023-10-27T16:43:12Z
Backport PR #55722 on branch 2.1.x (DOC: Add whatsnew for 2.1.3)
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index baab20845a2a2..eef65366a2762 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -16,6 +16,7 @@ Version 2.1 .. toctree:: :maxdepth: 2 + v2.1.3 v2.1.2 v2.1.1 v2.1.0 diff --git a/doc/source/...
Backport PR #55722: DOC: Add whatsnew for 2.1.3
https://api.github.com/repos/pandas-dev/pandas/pulls/55723
2023-10-27T09:55:01Z
2023-10-27T15:04:31Z
2023-10-27T15:04:30Z
2023-10-27T15:04:31Z
DOC: Add whatsnew for 2.1.3
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index dbc7800196007..dd3599bba8e54 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -24,6 +24,7 @@ Version 2.1 .. toctree:: :maxdepth: 2 + v2.1.3 v2.1.2 v2.1.1 v2.1.0 diff --git a/doc/source/...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/55722
2023-10-27T09:52:22Z
2023-10-27T09:53:23Z
2023-10-27T09:53:23Z
2023-10-27T10:34:07Z
TST: add test for mixed dtypes of df col index #47382
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index c59edbae05739..d73bced941d0d 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -2132,3 +2132,13 @@ def test_enum_column_equality(): expected = Series([True, True, True], ...
- [x] closes #47382 - [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). Mod...
https://api.github.com/repos/pandas-dev/pandas/pulls/55720
2023-10-27T06:17:11Z
2023-10-30T17:01:59Z
2023-10-30T17:01:59Z
2023-10-31T02:34:00Z
DEPR: groupby.fillna
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index efa4a52993a90..e80ff9a2727ba 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -297,6 +297,7 @@ Other Deprecations - Deprecated the option ``mode.data_manager`` and the ``ArrayManager``; only the ``Bloc...
- [x] closes #55718 - [x] closes #48792 - [x] closes #48395 - [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/55719
2023-10-27T03:11:29Z
2023-11-16T02:17:26Z
2023-11-16T02:17:26Z
2023-11-16T21:50:44Z
Backport PR #55707 on branch 2.1.x (REF: Avoid np.can_cast for scalar inference for NEP 50)
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index 48ef21686a26f..6a70ea1df3e71 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -10,7 +10,8 @@ echo PYTHONHASHSEED=$PYTHONHASHSEED COVERAGE="-s --cov=pandas --cov-report=xml --cov-append --cov-config=pyproject.toml" -PYTEST_CMD="MESONPY_EDITABLE_VERBOSE=1 PYT...
Backport PR #55707: REF: Avoid np.can_cast for scalar inference for NEP 50
https://api.github.com/repos/pandas-dev/pandas/pulls/55716
2023-10-27T00:58:15Z
2023-10-27T16:43:34Z
2023-10-27T16:43:34Z
2023-10-27T16:43:35Z
BUG: IntervalIndex.from_arrays with mismatched datetimelike resos
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 795d277268e44..d36f990240c5b 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -358,6 +358,7 @@ Strings Interval ^^^^^^^^ - Bug in :class:`Interval` ``__repr__`` not displaying UTC offsets for :class:...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55714
2023-10-26T22:46:03Z
2023-10-27T02:17:06Z
2023-10-27T02:17:06Z
2023-10-27T15:13:08Z
BUG: Timestamp(ambiguous, tz=from_pytz) not raising
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 99b6310a80f83..16d279bb0d52c 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -342,6 +342,7 @@ Timedelta Timezones ^^^^^^^^^ - Bug in :class:`AbstractHolidayCalendar` where timezone data was not prop...
- [x] closes #55657 (Replace xxxx with the GitHub issue number) - [x] closes #47471 - [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-do...
https://api.github.com/repos/pandas-dev/pandas/pulls/55712
2023-10-26T22:13:23Z
2023-11-01T12:18:37Z
2023-11-01T12:18:37Z
2023-11-01T16:00:32Z
BUG: renaming offsets quarterly frequencies with various fiscal year ends
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index c23bccdea3a8a..df3a2e3ecde48 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -4616,7 +4616,28 @@ _lite_rule_alias = { "ns": "ns", } -_dont_uppercase = {"h", "bh", "cbh", "MS", "ms", "s", "m...
xref #55553 `'qe-dec'`, `'qe-jan',` and other lowercase strings for offsets quarterly frequencies with various fiscal year ends are added to _dont_uppercase list. The reason: for period they are silently converted to `'Q-DEC'`, etc. test `test_not_subperiod` is fixed.
https://api.github.com/repos/pandas-dev/pandas/pulls/55711
2023-10-26T21:52:04Z
2023-10-31T09:23:09Z
2023-10-31T09:23:09Z
2023-10-31T09:23:09Z
BUG: Index.view with non-nano
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 795d277268e44..1e012efb51809 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -321,6 +321,7 @@ Datetimelike ^^^^^^^^^^^^ - Bug in :func:`concat` raising ``AttributeError`` when concatenating all-NA Da...
- [ ] 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/55710
2023-10-26T21:49:08Z
2023-10-27T02:14:05Z
2023-10-27T02:14:05Z
2023-10-27T15:14:05Z
DOC: clarify resample example
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c49c9eddae62c..8c2ab82e7c327 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9308,8 +9308,6 @@ def resample( bucket ``2000-01-01 00:03:00`` contains the value 3, but the summed value in the resampled bucket with th...
- [ ] closes #55664 (Replace xxxx with the GitHub issue number) I think the example's correct but the text just makes it look very confusing
https://api.github.com/repos/pandas-dev/pandas/pulls/55708
2023-10-26T18:53:05Z
2023-10-31T09:23:52Z
2023-10-31T09:23:52Z
2023-10-31T09:23:53Z
REF: Avoid np.can_cast for scalar inference for NEP 50
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index 48ef21686a26f..6a70ea1df3e71 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -10,7 +10,8 @@ echo PYTHONHASHSEED=$PYTHONHASHSEED COVERAGE="-s --cov=pandas --cov-report=xml --cov-append --cov-config=pyproject.toml" -PYTEST_CMD="MESONPY_EDITABLE_VERBOSE=1 PYT...
Looks like using `np.can_cast` for scalar casting inference is deprecated. We should probably use our own scalar casting inference routines instead
https://api.github.com/repos/pandas-dev/pandas/pulls/55707
2023-10-26T15:53:24Z
2023-10-27T00:58:07Z
2023-10-27T00:58:07Z
2023-10-27T15:30:45Z
Backport PR #55691 on branch 2.1.x (REGR: fix read_parquet with column of large strings (avoid overflow from concat))
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 1d2d89e7eadd1..684093d9cc097 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -28,6 +28,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrameGroupBy.agg` and :meth:`SeriesGroupBy.agg` where if ...
Backport PR #55691: REGR: fix read_parquet with column of large strings (avoid overflow from concat)
https://api.github.com/repos/pandas-dev/pandas/pulls/55706
2023-10-26T14:00:16Z
2023-10-26T16:05:45Z
2023-10-26T16:05:45Z
2023-10-26T16:05:46Z
Backport PR #55619 on branch 2.1.x (BUG: Groupby not keeping string dtype for empty objects)
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index a13a273b01257..38416afc1c94c 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -38,6 +38,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Fixed bug in :class:`.DataFrameGroupBy` reductions not preserving ...
* BUG: Groupby not keeping string dtype for empty objects * Fix Backports PR #55619
https://api.github.com/repos/pandas-dev/pandas/pulls/55705
2023-10-26T13:18:25Z
2023-12-04T15:00:06Z
2023-12-04T15:00:06Z
2023-12-04T15:00:23Z
Backport PR #54922 on branch 2.1.x (REGR: Restore _constructor_from_mgr to pass manager object to constructor)
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 1d2d89e7eadd1..a59cadde422b9 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -29,6 +29,7 @@ Fixed regressions - Fixed performance regression with wide DataFrames, typically involving methods where all...
Backport PR #54922
https://api.github.com/repos/pandas-dev/pandas/pulls/55704
2023-10-26T13:00:51Z
2023-10-26T15:38:41Z
2023-10-26T15:38:41Z
2023-10-26T15:43:57Z
DOC: standardize wording on whatsnew keyword removal
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index b9987fa5cec1a..90b970e374a95 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -540,7 +540,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. **Other removals** -- Removed th...
Same idea as #30488. I don't particularly care which wording we use, but would like it to be consistent. After this is doing the same thing for "default value for keyword has changed" and last possibly re-ordering in some meaningful way.
https://api.github.com/repos/pandas-dev/pandas/pulls/30490
2019-12-26T19:15:03Z
2019-12-26T19:44:14Z
2019-12-26T19:44:14Z
2019-12-26T19:48:47Z
DEPR: Deprecate pandas.datetime
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index e524b8d2fbf8c..1e27496be3e12 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -225,6 +225,9 @@ Other enhancements - :meth:`DataFrame.drop_duplicates` has gained ``ignore_index`` keyword to reset index ...
- [x] closes #30610 - [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/30489
2019-12-26T18:48:06Z
2020-01-02T04:01:45Z
2020-01-02T04:01:44Z
2020-01-02T04:24:54Z
CLN/DOC: standardize wording on previous-removals
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 852694a51e79d..5137d362fda7d 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -541,21 +541,21 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. **Other removals** - Removed th...
In the 1.0.0 whatsnew we currently have 3 variants of "Removed :foo:X" ``` - Removed the previously deprecated :meth:`X` - Removed previously deprecated :meth:`X` - Removed :meth:`X` ``` I think we should standardize on one of these (lest readers think the difference is meaningful). I don't particularly care...
https://api.github.com/repos/pandas-dev/pandas/pulls/30488
2019-12-26T16:12:45Z
2019-12-26T17:54:46Z
2019-12-26T17:54:46Z
2019-12-26T18:17:51Z
Bug groupby quantile listlike q and int columns
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 9023cf2ab1b4f..ac4c612f7b019 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -848,6 +848,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrameGroupBy.agg` with timezone-aware datetime64 column incor...
When columns are integers, `df.groupby(label).quantile(<arraylike>)` fails. - [x] closes #30289 - [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/30485
2019-12-26T12:45:24Z
2019-12-27T16:16:50Z
2019-12-27T16:16:49Z
2019-12-27T16:42:24Z
DEPR. Change RangeIndex._start/_stop/_step to FutureWarning
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 852694a51e79d..ff1fcb0b9a308 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -503,7 +503,7 @@ Deprecations Usage of ``json_normalize`` as ``pandas.io.json.json_normalize`` is now deprecated and i...
- [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/30482
2019-12-26T06:34:45Z
2019-12-26T18:26:58Z
2019-12-26T18:26:58Z
2019-12-26T18:50:48Z
Fix typos
diff --git a/doc/source/user_guide/advanced.rst b/doc/source/user_guide/advanced.rst index 31bb71064d735..8223b831ebe2d 100644 --- a/doc/source/user_guide/advanced.rst +++ b/doc/source/user_guide/advanced.rst @@ -573,7 +573,7 @@ When working with an ``Index`` object directly, rather than via a ``DataFrame``, .. cod...
Should be non-semantic.
https://api.github.com/repos/pandas-dev/pandas/pulls/30481
2019-12-26T04:46:35Z
2019-12-26T05:57:42Z
2019-12-26T05:57:42Z
2019-12-26T05:58:02Z
CI: Fix GBQ Tests
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index dfda1470413b7..a939c7e33bb17 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1466,7 +1466,7 @@ def to_gbq( Behavior when the destination table exists. Value can be one of: ``'fail'`` - If table exi...
Believe these test only run on master on travis? So will keep xfail for now Fixturize as per @jreback comment [here](https://github.com/pandas-dev/pandas/issues/30470#issuecomment-568942914). closes #30470
https://api.github.com/repos/pandas-dev/pandas/pulls/30478
2019-12-26T03:03:31Z
2019-12-27T16:21:19Z
2019-12-27T16:21:19Z
2020-01-01T18:04:12Z
CI: XFail GBQ Tests
diff --git a/pandas/tests/io/test_gbq.py b/pandas/tests/io/test_gbq.py index f040dc2d0a70a..b6309860d06f7 100644 --- a/pandas/tests/io/test_gbq.py +++ b/pandas/tests/io/test_gbq.py @@ -196,7 +196,7 @@ def test_roundtrip(self): ) assert result["num_rows"][0] == test_size - @pytest.mark.xfail(reaso...
xref #30470 Non strict xfail flakey test @jreback Reference: https://github.com/pandas-dev/pandas/pull/30447
https://api.github.com/repos/pandas-dev/pandas/pulls/30477
2019-12-26T01:27:54Z
2019-12-26T03:58:32Z
2019-12-26T03:58:32Z
2019-12-26T03:58:40Z
REF/TST: directories for CategoricalIndex, RangeIndex tests
diff --git a/pandas/tests/indexes/categorical/__init__.py b/pandas/tests/indexes/categorical/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/tests/indexes/test_category.py b/pandas/tests/indexes/categorical/test_category.py similarity index 87% rename from pandas/tests/indexes/te...
try to make the layout match the way it does for the other index classes, similar to what we're doing with Series/DataFrame tests
https://api.github.com/repos/pandas-dev/pandas/pulls/30476
2019-12-26T01:01:01Z
2019-12-26T13:27:09Z
2019-12-26T13:27:09Z
2019-12-26T15:33:30Z
STYLE: Using f-strings in pandas/__init__.py
diff --git a/pandas/__init__.py b/pandas/__init__.py index 30b7e5bafe1df..a5e18bd399d44 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -10,7 +10,7 @@ try: __import__(dependency) except ImportError as e: - missing_dependencies.append("{0}: {1}".format(dependency, str(e))) + ...
Replaced the old style strings with the newer f-strings. (Sorry for the confusion with the earlier draft) #29886
https://api.github.com/repos/pandas-dev/pandas/pulls/30475
2019-12-26T00:41:52Z
2019-12-26T13:13:15Z
2019-12-26T13:13:15Z
2020-01-04T11:48:09Z
CLN: assorted cleanups
diff --git a/.binstar.yml b/.binstar.yml deleted file mode 100644 index 7b507b4f90049..0000000000000 --- a/.binstar.yml +++ /dev/null @@ -1,28 +0,0 @@ -package: pandas -user: jreback - -install: - - conda config --add channels pandas - -before_script: - - python -V - -platform: - - linux-64 - #- linux-32 - - osx-6...
https://api.github.com/repos/pandas-dev/pandas/pulls/30473
2019-12-25T23:13:39Z
2019-12-26T13:27:52Z
2019-12-26T13:27:52Z
2019-12-26T15:31:54Z
TST: Xfailing broken GBQ test
diff --git a/pandas/tests/io/test_gbq.py b/pandas/tests/io/test_gbq.py index aeaf612ce28b7..f040dc2d0a70a 100644 --- a/pandas/tests/io/test_gbq.py +++ b/pandas/tests/io/test_gbq.py @@ -196,6 +196,7 @@ def test_roundtrip(self): ) assert result["num_rows"][0] == test_size + @pytest.mark.xfail(reaso...
xref #30470 Test recently introduced in #30447 seems to be failing in master. Xfailing it for now. CC: @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/30472
2019-12-25T23:11:57Z
2019-12-25T23:52:30Z
2019-12-25T23:52:30Z
2019-12-26T01:17:45Z
CLN: OrderedDict -> Dict
diff --git a/pandas/core/base.py b/pandas/core/base.py index 381d45d829e62..948b80fef4032 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -2,7 +2,6 @@ Base and utility classes for pandas objects. """ import builtins -from collections import OrderedDict import textwrap from typing import Dict, FrozenS...
- [x] ref #30469
https://api.github.com/repos/pandas-dev/pandas/pulls/30471
2019-12-25T21:10:59Z
2019-12-26T00:00:36Z
2019-12-26T00:00:36Z
2019-12-26T03:06:22Z
CLN: Orderdict -> defaultdict(list)
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index dc343f670b725..713e52ce1d28f 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -5,7 +5,7 @@ These are user facing as the result of the ``df.groupby(...)`` operations, which here returns a DataFrameGrou...
- [x] ref #30469 - [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/30468
2019-12-25T19:50:28Z
2019-12-25T23:54:42Z
2019-12-25T23:54:41Z
2019-12-28T17:28:59Z
CI: Add test case for unwanted patterns
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 46ace2dd9d70e..dc1c8481b1712 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -100,6 +100,14 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then cpplint --quiet --extensions=c,h --headers=h --recursive --filter=-readability/casting,-runtime/int,-bui...
- [x] closes #30454 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Can be merged, after merging #30464
https://api.github.com/repos/pandas-dev/pandas/pulls/30467
2019-12-25T19:29:47Z
2020-01-02T01:10:32Z
2020-01-02T01:10:32Z
2020-01-02T01:31:05Z
STYLE: Use f-string in io/parsers
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 4d837af60c3e3..c628a0d2bdf2e 100755 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -381,9 +381,7 @@ def _validate_integer(name, val, min_val=0): min_val : int Minimum allowed value (val < min_val will result in a ValueError) """...
xref #29547 Fixed many of the strings in pandas/io/parsers.py except for the string at line 1501 as that will require more time to make it function properly. Please note that this is my first contribution ever so please double check my work!
https://api.github.com/repos/pandas-dev/pandas/pulls/30466
2019-12-25T18:40:28Z
2019-12-25T23:59:50Z
2019-12-25T23:59:50Z
2019-12-25T23:59:54Z
TYP: Add typing to DataFrameGroupBy._cython_agg_blocks
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index dc343f670b725..a7eea5364a547 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -16,8 +16,10 @@ Callable, FrozenSet, Iterable, + List, Mapping, Sequence, + Tuple, Type,...
This helps navigate groupby code.
https://api.github.com/repos/pandas-dev/pandas/pulls/30465
2019-12-25T14:21:58Z
2019-12-25T22:27:36Z
2019-12-25T22:27:36Z
2019-12-25T22:27:41Z
STY: Removed unconcatenated strings
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 045e511e32586..c37bd01d5fe30 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -916,9 +916,7 @@ def _is_unique(self): def _add_datetimelike_scalar(self, other): # Override...
- [x] ref #30454 - [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/30464
2019-12-25T10:31:39Z
2019-12-25T23:12:01Z
2019-12-25T23:12:01Z
2019-12-26T19:40:58Z
TYP: Annotations in pandas/core/nanops.py
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index 6b03e76a1d691..2bf2be082f639 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -8,6 +8,7 @@ from pandas._config import get_option from pandas._libs import NaT, Timedelta, Timestamp, iNaT, lib +from pandas._typing import Dtype, Scalar ...
- [ ] 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/30461
2019-12-25T01:58:33Z
2020-01-20T17:17:45Z
2020-01-20T17:17:45Z
2020-01-20T20:02:08Z
BUG/Compat: dt64/td64 cummin, cummax on np 1.18
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c24f09e338b6c..66c4d09d0027a 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -11131,11 +11131,35 @@ def cum_func(self, axis=None, skipna=True, *args, **kwargs): axis = self._get_axis_number(axis) y = com.value...
- [x] closes #29058 - [x] closes #15553 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This also fixes+tests Series cummin/cummax with dt64tz, will have to look to see if there are any GH issues for that. Follow...
https://api.github.com/repos/pandas-dev/pandas/pulls/30460
2019-12-25T00:37:25Z
2019-12-25T23:27:30Z
2019-12-25T23:27:30Z
2019-12-25T23:30:27Z
Removed dead intervaltree code
diff --git a/pandas/_libs/intervaltree.pxi.in b/pandas/_libs/intervaltree.pxi.in index 8cb51be36645e..333c05f7c0dc5 100644 --- a/pandas/_libs/intervaltree.pxi.in +++ b/pandas/_libs/intervaltree.pxi.in @@ -114,43 +114,6 @@ cdef class IntervalTree(IntervalMixin): sort_order = np.lexsort(values) return i...
While looking to reduce build warnings I came across these methods and couldn't find any public use to them. The only one that seems to get hit is `get_loc` and that is in tests only so I think dead code
https://api.github.com/repos/pandas-dev/pandas/pulls/30459
2019-12-24T22:24:28Z
2019-12-26T07:06:04Z
2019-12-26T07:06:04Z
2020-01-16T00:33:23Z
DEPR: remove ptp
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index faca744a8f92c..9694289fc22d5 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -569,6 +569,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - A tuple passed to :meth:`DataFrame...
https://api.github.com/repos/pandas-dev/pandas/pulls/30458
2019-12-24T22:20:35Z
2019-12-25T23:51:17Z
2019-12-25T23:51:17Z
2019-12-26T00:07:41Z
CI: Code checks ensure return status is handled
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 94eaab0a5b4da..0ac15327494e6 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -122,13 +122,18 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then # Check for imports from collections.abc instead of `from collections import abc` MSG='Check f...
Follow up from discussion here. https://github.com/pandas-dev/pandas/pull/30370#discussion_r361213525 Seems like we are not return the return code of all these code checks - unless I am missing something? Expected this to fail on master until https://github.com/pandas-dev/pandas/pull/30455 is merged cc. @WillA...
https://api.github.com/repos/pandas-dev/pandas/pulls/30457
2019-12-24T21:47:12Z
2019-12-25T19:08:14Z
2019-12-25T19:08:14Z
2019-12-25T19:10:33Z
TST/REF: fixturize so as to avoid 500+ skips
diff --git a/pandas/tests/io/excel/test_readers.py b/pandas/tests/io/excel/test_readers.py index 480407664285f..6add99858da68 100644 --- a/pandas/tests/io/excel/test_readers.py +++ b/pandas/tests/io/excel/test_readers.py @@ -31,54 +31,95 @@ def ignore_xlrd_time_clock_warning(): yield +read_ext_params = ["....
Re-order the fixturizatin of engine and read_ext so as to yield only valid combinations, avoiding the need to pytest.skip the invalid combinations. This cuts out 500+ pytest.skips, which is about a third of the skips I see when i test with `--not-slow`. The idea is that by cutting down on skips we can keep a closer...
https://api.github.com/repos/pandas-dev/pandas/pulls/30456
2019-12-24T21:17:55Z
2019-12-26T00:14:36Z
2019-12-26T00:14:36Z
2019-12-26T00:19:22Z
CLN: Fix abc imports
diff --git a/pandas/io/common.py b/pandas/io/common.py index e165f8baef3e6..43cd7d81ae4cd 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -2,7 +2,7 @@ import bz2 import codecs -from collections.abc import Iterator +from collections import abc import gzip from io import BufferedIOBase, BytesIO impor...
invgrep/Github actions exit status doesn't seem to be working correctly. Currently on master we get these errors in the code_checks stage: https://github.com/pandas-dev/pandas/pull/30452/checks#step:4:7 As per discussion here: https://github.com/pandas-dev/pandas/pull/30370#discussion_r361213525
https://api.github.com/repos/pandas-dev/pandas/pulls/30455
2019-12-24T21:10:04Z
2019-12-24T22:23:52Z
2019-12-24T22:23:52Z
2019-12-25T20:27:29Z
TST: more method-specific test files
diff --git a/pandas/tests/frame/test_duplicates.py b/pandas/tests/frame/methods/test_drop_duplicates.py similarity index 81% rename from pandas/tests/frame/test_duplicates.py rename to pandas/tests/frame/methods/test_drop_duplicates.py index d2a1fc43d2046..a7715d1f31673 100644 --- a/pandas/tests/frame/test_duplicates.p...
https://api.github.com/repos/pandas-dev/pandas/pulls/30453
2019-12-24T19:51:08Z
2019-12-26T00:17:51Z
2019-12-26T00:17:51Z
2019-12-26T00:20:03Z
Parallel build for CI
diff --git a/ci/setup_env.sh b/ci/setup_env.sh index 08ba83ae94451..2b488295b5cc2 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -121,7 +121,7 @@ conda list pandas # Make sure any error below is reported as such echo "[Build extensions]" -python setup.py build_ext -q -i +python setup.py build_ext -q -i -j2 ...
Letting this sit in draft state for a while to see if issues pop up Note that this doesn't affect Windows (not sure yet if it can). Also previous attempts had `-j4` but I believe we only get 2 virtual cores for the CI machines so that was probably overkill.
https://api.github.com/repos/pandas-dev/pandas/pulls/30452
2019-12-24T19:48:43Z
2019-12-26T18:50:23Z
2019-12-26T18:50:23Z
2019-12-27T02:36:02Z
CLN: remove unnecessary scipy attr checks
diff --git a/pandas/tests/frame/test_missing.py b/pandas/tests/frame/test_missing.py index 0b77c0067e5f2..ea7e9b4ac490d 100644 --- a/pandas/tests/frame/test_missing.py +++ b/pandas/tests/frame/test_missing.py @@ -12,15 +12,6 @@ import pandas.util.testing as tm -def _skip_if_no_pchip(): - try: - from scip...
- [x] closes #30383 akima and pchip have existed since at least scipy 0.14, and we require 1.1, so these checks are unnecessary.
https://api.github.com/repos/pandas-dev/pandas/pulls/30450
2019-12-24T18:13:34Z
2019-12-24T21:15:52Z
2019-12-24T21:15:52Z
2019-12-24T21:18:26Z
Fix EX03 errors in generic.py
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 03bd1b331ec30..863186bb8df5b 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -790,7 +790,7 @@ def pop(self, item): >>> df = pd.DataFrame([('falcon', 'bird', 389.0), ... ('parrot', 'bird', 24.0), ...
Fixes EX03 errors in the examples of some docstrings in the script `pandas/core/ generic.py`. Specifically, flake8 errors in the docstrings of the following functions were corrected: ``` pandas.DataFrame.add_prefix pandas.DataFrame.add_suffix pandas.DataFrame.head pandas.DataFrame.last pandas.DataFrame.pop ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30448
2019-12-24T13:18:00Z
2019-12-24T15:59:41Z
2019-12-24T15:59:41Z
2019-12-24T16:00:06Z
TST: Add tests for if_exists keyword argument in df.to_gbq
diff --git a/pandas/tests/io/test_gbq.py b/pandas/tests/io/test_gbq.py index ab27ea7098b08..aeaf612ce28b7 100644 --- a/pandas/tests/io/test_gbq.py +++ b/pandas/tests/io/test_gbq.py @@ -195,3 +195,37 @@ def test_roundtrip(self): dialect="standard", ) assert result["num_rows"][0] == test_si...
- [x] closes #29598 - [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/30447
2019-12-24T13:08:07Z
2019-12-24T17:30:40Z
2019-12-24T17:30:40Z
2019-12-24T20:28:11Z
BUG: Fix wrong error in df drop with non unique datetime index and invalid keys
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index faca744a8f92c..bc0cb5c082100 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -714,8 +714,10 @@ Datetimelike - Bug in :func:`pandas.to_datetime` failing for `deques` when using ``cache=True`` (the defa...
- [x] closes #30399 - [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/30446
2019-12-24T12:16:53Z
2019-12-26T00:32:30Z
2019-12-26T00:32:30Z
2019-12-26T01:33:01Z
TST: Add tests for fixed issues
diff --git a/pandas/tests/indexing/multiindex/test_loc.py b/pandas/tests/indexing/multiindex/test_loc.py index b6b9f7f205394..da7d89a15125b 100644 --- a/pandas/tests/indexing/multiindex/test_loc.py +++ b/pandas/tests/indexing/multiindex/test_loc.py @@ -411,3 +411,29 @@ def test_loc_setitem_single_column_slice(): d...
- [x] closes #5647 - [x] closes #5586 - [x] closes #5286 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/30444
2019-12-24T06:16:02Z
2019-12-26T00:25:35Z
2019-12-26T00:25:34Z
2019-12-26T05:58:28Z