title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
Backport PR #47347 on branch 1.4.x (REGR: Regression in to_csv for ea dtype categorical)
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index 05ace0509e0b7..a4d81533df23d 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`DataF...
Backport PR #47347: REGR: Regression in to_csv for ea dtype categorical
https://api.github.com/repos/pandas-dev/pandas/pulls/47388
2022-06-16T13:45:54Z
2022-06-17T07:52:28Z
2022-06-17T07:52:28Z
2022-06-17T07:52:29Z
TST,WARN: read_csv raises warning at wrong stacklevel, but _assert_raised_with_correct_stacklevel doesn't fail
diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst index b462f0c6a8ffe..ef9537200bccd 100644 --- a/doc/source/whatsnew/v1.4.4.rst +++ b/doc/source/whatsnew/v1.4.4.rst @@ -23,7 +23,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ -- +- The :class:`errors.FutureWarning` raised when passing argumen...
- [x] closes #47385 (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/47387
2022-06-16T12:42:56Z
2022-06-26T19:08:42Z
2022-06-26T19:08:42Z
2022-07-02T16:51:20Z
TYP: ndim is consistently a property
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 5f060542526d3..c6d0625de00fa 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -193,12 +193,15 @@ class DatetimeArray(dtl.TimelikeOps, dtl.DatelikeOps): """ _typ = "datetimearray" - _s...
and `_scalar_type`
https://api.github.com/repos/pandas-dev/pandas/pulls/47378
2022-06-16T01:50:39Z
2022-06-25T17:08:50Z
2022-06-25T17:08:50Z
2022-09-21T15:29:49Z
ENH/TST: Add BaseInterfaceTests tests for ArrowExtensionArray
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 1f35013075751..b2a8ec6bf62e8 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -31,6 +31,7 @@ ) from pandas.core.dtypes.missing import isna +from pandas.core.arraylike import OpsMixin fr...
- [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/47377
2022-06-16T01:09:18Z
2022-06-22T01:22:47Z
2022-06-22T01:22:47Z
2022-06-22T16:57:15Z
DOC: move enhancements in 1.5 release notes
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 76f6e864a174f..6cd44b39a18ad 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -147,6 +147,85 @@ If the compression method cannot be inferred, use the ``compression`` argument: (``mode`` being one of ``...
@ParfaitG can you confirm these are enhancements and not api breaking changes.
https://api.github.com/repos/pandas-dev/pandas/pulls/47375
2022-06-15T19:17:39Z
2022-06-23T21:37:06Z
2022-06-23T21:37:06Z
2022-06-24T09:39:34Z
ENH: DTA/DTI __repr__ support non-nano
diff --git a/pandas/_libs/tslib.pyi b/pandas/_libs/tslib.pyi index 4b02235ac9925..2212f8db8ea1e 100644 --- a/pandas/_libs/tslib.pyi +++ b/pandas/_libs/tslib.pyi @@ -9,6 +9,7 @@ def format_array_from_datetime( tz: tzinfo | None = ..., format: str | None = ..., na_rep: object = ..., + reso: int = ..., ...
- [ ] 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/47374
2022-06-15T19:09:32Z
2022-06-16T01:16:31Z
2022-06-16T01:16:31Z
2022-06-16T01:18:48Z
ENH: Timedelta division support non-nano
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 028371633a2c1..dfd64dd50f213 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1742,13 +1742,21 @@ class Timedelta(_Timedelta): other = Timedelta(other) if othe...
For now settled on disallowing division with mismatched resos. Will want to revisit that decision as part of a larger API discussion.
https://api.github.com/repos/pandas-dev/pandas/pulls/47373
2022-06-15T19:00:17Z
2022-06-15T22:15:31Z
2022-06-15T22:15:31Z
2022-06-15T22:49:23Z
REGR: revert behaviour change for concat with empty/all-NaN data
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 52aa9312d4c14..697070e50a40a 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -271,6 +271,9 @@ the given ``dayfirst`` value when the value is a delimited date string (e.g. Ignoring dtypes in concat wit...
Closes https://github.com/pandas-dev/pandas/issues/45637 Closes https://github.com/pandas-dev/pandas/issues/47284 Initially I tried it with a more selective revert of only the changes in #43577 and #43507, but then I ran into some other failures in existing tests. So in the end tried it with reverting all su...
https://api.github.com/repos/pandas-dev/pandas/pulls/47372
2022-06-15T18:56:28Z
2022-06-22T20:41:30Z
2022-06-22T20:41:29Z
2022-12-29T19:14:46Z
PERF: Improve Styler `to_excel` Performance
diff --git a/asv_bench/benchmarks/io/excel.py b/asv_bench/benchmarks/io/excel.py index a2d989e787e0f..a88c4374b7030 100644 --- a/asv_bench/benchmarks/io/excel.py +++ b/asv_bench/benchmarks/io/excel.py @@ -47,6 +47,25 @@ def time_write_excel(self, engine): writer.save() +class WriteExcelStyled: + params ...
- [x] closes #47352 - [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/47371
2022-06-15T18:36:43Z
2022-06-29T17:09:20Z
2022-06-29T17:09:19Z
2022-06-29T17:09:29Z
Backport PR #47349 on branch 1.4.x (REGR: MultiIndex.dtypes has regular Index instead of MultiIndex index)
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index bfc9422711690..1ee1677b5ffe4 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`DataF...
Backport PR #47349: REGR: MultiIndex.dtypes has regular Index instead of MultiIndex index
https://api.github.com/repos/pandas-dev/pandas/pulls/47369
2022-06-15T13:20:51Z
2022-06-15T15:23:19Z
2022-06-15T15:23:19Z
2022-06-15T15:23:19Z
Revert inclusive default change of IntervalDtype
diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst index fed0d2c5f7827..0d8444841fcae 100644 --- a/doc/source/reference/arrays.rst +++ b/doc/source/reference/arrays.rst @@ -304,6 +304,7 @@ Properties :toctree: api/ Interval.inclusive + Interval.closed Interval.closed_left ...
- [x] xref #47365 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/47367
2022-06-15T12:27:22Z
2022-07-06T12:06:58Z
2022-07-06T12:06:58Z
2022-07-06T12:41:46Z
Backport PR #47325 on branch 1.4.x (REGR: Avoid regression warning with ea dtype and assert_index_equal order False)
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index ca8b8ca15ec47..ce53d2b1dd04c 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -24,6 +24,7 @@ Fixed regressions - Fixed regression in :func:`read_csv` with ``index_col=False`` identifying first row as i...
Backport PR #47325: REGR: Avoid regression warning with ea dtype and assert_index_equal order False
https://api.github.com/repos/pandas-dev/pandas/pulls/47366
2022-06-15T11:48:18Z
2022-06-15T13:22:31Z
2022-06-15T13:22:30Z
2022-06-15T13:22:31Z
Backport PR #47326 on branch 1.4.x (REGR: Fix nan comparison for same Index object)
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index ca8b8ca15ec47..bfc9422711690 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -20,6 +20,7 @@ Fixed regressions - Fixed regression in :func:`read_fwf` raising ``ValueError`` when ``widths`` was specifie...
Backport PR #47326: REGR: Fix nan comparison for same Index object
https://api.github.com/repos/pandas-dev/pandas/pulls/47364
2022-06-15T11:41:48Z
2022-06-15T13:15:50Z
2022-06-15T13:15:50Z
2022-06-15T13:15:51Z
BUG: DataFrame.loc not aligning dict when setting to a column
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index a76b682f135db..d8b068c67cdcd 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -837,6 +837,7 @@ Indexing - Bug in :meth:`loc.__setitem__` treating ``range`` keys as positional instead of label-based (:i...
- [x] closes #47216 (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/47361
2022-06-15T08:00:52Z
2022-06-30T20:09:10Z
2022-06-30T20:09:10Z
2022-07-01T07:22:52Z
TYP: base_parser and readers
diff --git a/pandas/io/common.py b/pandas/io/common.py index 5aecc55bb363a..d692f26ab0576 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -626,6 +626,21 @@ def get_handle( ... +@overload +def get_handle( + path_or_buf: FilePath | BaseBuffer, + mode: str, + *, + encoding: str | None = ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47359
2022-06-15T01:17:36Z
2022-06-15T19:36:48Z
2022-06-15T19:36:48Z
2022-09-21T15:29:51Z
ENH/TST: Add TestBaseDtype tests for ArrowExtensionArray
diff --git a/pandas/core/arrays/arrow/dtype.py b/pandas/core/arrays/arrow/dtype.py index af5b51a39b9c3..346c4e8d19379 100644 --- a/pandas/core/arrays/arrow/dtype.py +++ b/pandas/core/arrays/arrow/dtype.py @@ -44,7 +44,7 @@ def name(self) -> str: # type: ignore[override] """ A string identifying the 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).
https://api.github.com/repos/pandas-dev/pandas/pulls/47358
2022-06-15T00:33:29Z
2022-06-17T23:25:09Z
2022-06-17T23:25:09Z
2022-06-18T00:21:34Z
ENH: Move IndexingError to error/__init__.py per GH27656
diff --git a/doc/source/reference/testing.rst b/doc/source/reference/testing.rst index 9d9fb91821ab1..2c419e8df9517 100644 --- a/doc/source/reference/testing.rst +++ b/doc/source/reference/testing.rst @@ -30,6 +30,7 @@ Exceptions and warnings errors.DtypeWarning errors.DuplicateLabelError errors.EmptyDataEr...
- [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/47357
2022-06-14T23:56:44Z
2022-06-15T19:06:10Z
2022-06-15T19:06:10Z
2022-06-15T19:06:25Z
ENH: Timedelta/Timestamp round support non-nano
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index dfd64dd50f213..1df5468869df5 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1653,15 +1653,14 @@ class Timedelta(_Timedelta): int64_t result, unit, remainder ...
- [ ] 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/47356
2022-06-14T23:36:29Z
2022-06-16T01:14:08Z
2022-06-16T01:14:08Z
2022-06-16T01:19:04Z
ENH: Timestamp.tz_localize support non-nano
diff --git a/pandas/_libs/tslibs/ccalendar.pxd b/pandas/_libs/tslibs/ccalendar.pxd index 511c9f94a47d8..341f2176f5eb4 100644 --- a/pandas/_libs/tslibs/ccalendar.pxd +++ b/pandas/_libs/tslibs/ccalendar.pxd @@ -15,8 +15,6 @@ cpdef int32_t get_day_of_year(int year, int month, int day) nogil cpdef int get_lastbday(int yea...
Sits on top of #47346 Not sure why the .github files are in the diff, they don't show up in the diff locally
https://api.github.com/repos/pandas-dev/pandas/pulls/47355
2022-06-14T23:25:00Z
2022-06-15T22:21:49Z
2022-06-15T22:21:49Z
2022-06-15T22:51:48Z
TST: GH 27185 Test to check df with timedelta & Int NA sums correctly
diff --git a/pandas/tests/reductions/test_reductions.py b/pandas/tests/reductions/test_reductions.py index 9d33e52709bd2..a68595546eb83 100644 --- a/pandas/tests/reductions/test_reductions.py +++ b/pandas/tests/reductions/test_reductions.py @@ -198,6 +198,18 @@ def test_numpy_reduction_with_tz_aware_dtype(self, tz_awar...
- [x] closes #27185 - [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). - [NA...
https://api.github.com/repos/pandas-dev/pandas/pulls/47354
2022-06-14T20:22:04Z
2022-06-23T21:40:30Z
2022-06-23T21:40:29Z
2022-06-23T21:40:37Z
Bug: GroupBy raising error with None in first level of MultiIndex
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index a76b682f135db..ec2c395ce1393 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -927,6 +927,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrameGroupBy.cumsum` with ``skipna=False`` giving incorrect r...
- [x] closes #47348 (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/47351
2022-06-14T18:20:28Z
2022-06-27T22:55:31Z
2022-06-27T22:55:31Z
2022-06-28T14:13:19Z
REGR: MultiIndex.dtypes has regular Index instead of MultiIndex index
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index ca8b8ca15ec47..65c53cc450514 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`DataF...
- [x] closes #46900 (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/47349
2022-06-14T17:39:03Z
2022-06-15T13:20:42Z
2022-06-15T13:20:42Z
2022-06-15T21:51:01Z
REGR: Regression in to_csv for ea dtype categorical
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index 05ace0509e0b7..a4d81533df23d 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`DataF...
- [x] closes #46812 (Replace xxxx with the Github issue number) - [x] closes #46297 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-d...
https://api.github.com/repos/pandas-dev/pandas/pulls/47347
2022-06-14T17:15:55Z
2022-06-16T13:45:26Z
2022-06-16T13:45:25Z
2022-06-16T19:45:39Z
ENH: Timestamp.__sub__(datetimelike) support non-nano
diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 1d21f602fac05..da2377a9b085c 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -400,18 +400,19 @@ cdef class _Timestamp(ABCTimestamp): new_value = int(self.value) + int(n...
With mixed resos, cast to the lower reso, and only if doing so is lossless.
https://api.github.com/repos/pandas-dev/pandas/pulls/47346
2022-06-14T17:01:14Z
2022-06-15T00:16:46Z
2022-06-15T00:16:46Z
2022-06-15T16:44:08Z
TST: adding a test for bar plot with intervalrange xaxis
diff --git a/pandas/tests/plotting/test_misc.py b/pandas/tests/plotting/test_misc.py index ca82c37b8a8b0..4d042579701eb 100644 --- a/pandas/tests/plotting/test_misc.py +++ b/pandas/tests/plotting/test_misc.py @@ -10,6 +10,7 @@ Index, Series, Timestamp, + interval_range, ) import pandas._testing as t...
- [x] closes #38969 - [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/47344
2022-06-14T12:31:41Z
2022-06-15T21:52:26Z
2022-06-15T21:52:26Z
2022-10-20T08:44:21Z
BUG: Series.setitem losing precision when enlarging
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 5891eeea98cbb..81af4fe117dc6 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -823,6 +823,7 @@ Indexing - Bug in :meth:`Series.__setitem__` where setting :attr:`NA` into a numeric-dtpye :class:`Series`...
- [x] xref #32346 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/47342
2022-06-14T10:13:35Z
2022-07-01T22:18:05Z
2022-07-01T22:18:05Z
2022-07-01T22:19:08Z
TEST: Add test for #22541 to ensure that error does not occur again
diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py index 18ad5d90b3f60..9fbcced75c327 100644 --- a/pandas/tests/groupby/test_apply.py +++ b/pandas/tests/groupby/test_apply.py @@ -866,3 +866,17 @@ def fct(group): [[1.0, 2.0], [3.0], [np.nan]], index=pd.Index(["a", "b", "none"],...
- [x] closes #22541 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` While searching for related issue for my other pull request, I found that this issue must have been fixed with another commit in the past (don't know when this issue was ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33096
2020-03-28T12:48:06Z
2020-03-30T22:15:06Z
2020-03-30T22:15:06Z
2020-06-14T21:40:14Z
DOC: Fix PR06
diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index 8021e0babe4e0..8c09aa9176f31 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -232,7 +232,7 @@ class SparseArray(PandasObject, ExtensionArray, ExtensionOpsMixin): 3. ``data.dtyp...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Related to #27977.
https://api.github.com/repos/pandas-dev/pandas/pulls/33093
2020-03-28T04:40:25Z
2020-03-31T17:33:53Z
2020-03-31T17:33:53Z
2020-03-31T17:34:00Z
TYP: enforce tighter inputs on SingleBlockManager
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 58ac2b4cba3b7..d03ef394e91c9 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -253,6 +253,7 @@ Deprecations - Setting values with ``.loc`` using a positional slice is deprecated and will raise in a fut...
there is currently only one place where we pass a list of indexes instead of a single index, so just fixed that and were good to go.
https://api.github.com/repos/pandas-dev/pandas/pulls/33092
2020-03-28T03:34:35Z
2020-03-30T17:40:42Z
2020-03-30T17:40:42Z
2020-03-30T18:03:28Z
ENH: Add index option to_markdown()
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index cee41f248fc60..434aa793d40cc 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -328,6 +328,7 @@ Other enhancements - :meth:`DataFrame.to_html` and :meth:`DataFrame.to_string`'s ``col_space`` parameter n...
- [ ] closes #32667 - [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/33091
2020-03-28T03:29:13Z
2020-07-15T12:29:54Z
2020-07-15T12:29:54Z
2020-07-15T12:52:29Z
BUG: Don't cast nullable Boolean to float in groupby
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index b05911a4d1eb0..eb18e1e07547b 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -444,6 +444,8 @@ Groupby/resample/rolling - Bug in :meth:`DataFrameGroupby.transform` produces incorrect result with transf...
- [x] closes #33071 - [x] closes #32194 - [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/33089
2020-03-28T02:34:30Z
2020-04-07T10:04:16Z
2020-04-07T10:04:15Z
2020-05-06T14:52:16Z
CLN: remove ABCGeneric
diff --git a/pandas/core/dtypes/generic.py b/pandas/core/dtypes/generic.py index 2e83e6b32a51b..7f98ca3d402bc 100644 --- a/pandas/core/dtypes/generic.py +++ b/pandas/core/dtypes/generic.py @@ -71,11 +71,3 @@ def _check(cls, inst) -> bool: ("extension", "categorical", "periodarray", "datetimearray", "timedeltaarray...
https://api.github.com/repos/pandas-dev/pandas/pulls/33088
2020-03-28T01:31:10Z
2020-03-29T14:50:55Z
2020-03-29T14:50:55Z
2020-03-29T15:09:44Z
BUG: Groupby lost index, when one of the agg keys had no function all…
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index e680c2db55a43..df5e425950873 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -990,6 +990,7 @@ Groupby/resample/rolling indices. In particular, the result index shape might change if a copy of the in...
…ocated - [x] closes #32580 - [x] closes #33545 (is a duplicate of 32580) - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The issue was the concatenation with an empty DataFrame and the result of the min function...
https://api.github.com/repos/pandas-dev/pandas/pulls/33086
2020-03-28T00:07:06Z
2020-06-14T18:04:54Z
2020-06-14T18:04:54Z
2020-06-14T21:35:59Z
CLN: avoid internals in tz_convert, tz_localize
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 5348040808e63..99ae519a76387 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9244,7 +9244,7 @@ def _tz_convert(ax, tz): raise ValueError(f"The level {level} is not valid") ax = _tz_convert(ax, tz) - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33085
2020-03-27T23:30:33Z
2020-03-29T14:51:28Z
2020-03-29T14:51:28Z
2020-03-29T15:11:55Z
CLN: de-kludge NDFrame.interpolate
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 5348040808e63..16bed91daa7d2 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6835,27 +6835,16 @@ def interpolate( axis = self._get_axis_number(axis) if axis == 0: - ax = self._info_axis_name - ...
i think i was responsible for these particular kludges a while back.
https://api.github.com/repos/pandas-dev/pandas/pulls/33084
2020-03-27T23:29:36Z
2020-03-29T15:16:18Z
2020-03-29T15:16:18Z
2020-03-29T15:20:56Z
CLN: avoid internals, some misc cleanups
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 21e171f937de8..2f50845fda4dc 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -561,7 +561,8 @@ def get_grouper( # if the actual grouper should be obj[key] def is_in_axis(key) -> bool: ...
The only non-trivial thing here is in io.formats.info replacing `frame._data.get_dtype_counts` with an alternative that uses public methods
https://api.github.com/repos/pandas-dev/pandas/pulls/33083
2020-03-27T23:27:48Z
2020-03-29T15:17:50Z
2020-03-29T15:17:50Z
2020-03-29T15:22:59Z
CI troubleshoot azure
diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index cfcf617cedf9c..d0eaafb787222 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -1,6 +1,7 @@ """ test parquet compat """ import datetime from distutils.version import LooseVersion +import locale i...
- [ ] closes #33077 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/33080
2020-03-27T21:27:01Z
2020-03-28T17:01:42Z
2020-03-28T17:01:42Z
2020-05-26T09:40:07Z
DOC: whatsnew for #32831
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 20415bba99476..570a5e3ce97ab 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -341,6 +341,7 @@ Indexing - Fix to preserve the ability to index with the "nearest" method with xarray's CFTimeIndex, an :c...
https://api.github.com/repos/pandas-dev/pandas/pulls/33079
2020-03-27T21:15:10Z
2020-03-29T01:02:57Z
2020-03-29T01:02:57Z
2020-03-29T01:09:31Z
CLN: avoid using internals methods for DataFrame.drop_duplicates
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 1e9f8995b6bed..5c04678cd5fa6 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4678,22 +4678,16 @@ def drop_duplicates( inplace = validate_bool_kwarg(inplace, "inplace") duplicated = self.duplicated(subset, keep=keep) - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33075
2020-03-27T19:02:21Z
2020-03-29T15:19:38Z
2020-03-29T15:19:38Z
2020-03-29T15:21:57Z
TYP: require _update_inplace gets Frame/Series, never BlockManager
diff --git a/pandas/core/base.py b/pandas/core/base.py index 9ff0d60b9cd6a..547d9aa47cd93 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -13,7 +13,6 @@ from pandas.compat.numpy import function as nv from pandas.errors import AbstractMethodError from pandas.util._decorators import cache_readonly, doc -...
https://api.github.com/repos/pandas-dev/pandas/pulls/33074
2020-03-27T17:56:51Z
2020-04-01T01:09:54Z
2020-04-01T01:09:53Z
2020-04-01T01:20:13Z
DOC: Added docstring for show_versions()
diff --git a/doc/source/reference/general_utility_functions.rst b/doc/source/reference/general_utility_functions.rst index 0d9e0b0f4c668..575b82b4b06de 100644 --- a/doc/source/reference/general_utility_functions.rst +++ b/doc/source/reference/general_utility_functions.rst @@ -108,3 +108,11 @@ Scalar introspection ...
- [x] closes #33044 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/33073
2020-03-27T17:55:55Z
2020-03-31T19:05:10Z
2020-03-31T19:05:10Z
2020-03-31T19:05:17Z
BUG: Add test to ensure, that bug will not occur again. #33058
diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py index 9fbcced75c327..9fcbabb07857e 100644 --- a/pandas/tests/groupby/test_apply.py +++ b/pandas/tests/groupby/test_apply.py @@ -880,3 +880,24 @@ def test_apply_function_index_return(function): index=pd.Index([1, 2, 3], name="i...
- [x] xref #33058 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Should I add a whatsnew entry? It's not really new, if it is backported to 1.0.1.
https://api.github.com/repos/pandas-dev/pandas/pulls/33072
2020-03-27T17:04:59Z
2020-04-10T20:47:58Z
2020-04-10T20:47:58Z
2020-06-14T21:38:00Z
BUG: AttributeError when read_sas used with GCS
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 19e8acdaa7384..f17cd354d40a3 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -407,6 +407,7 @@ I/O - Bug in :meth:`read_csv` was causing a segfault when there were blank lines between the header and da...
With GCSFS (and when a binary file buffer is passed in), the output from the file read is `bytes`, not a Unicode `str`. The `encode` call is unnecessary in this case. - [x] closes #33069 - [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/33070
2020-03-27T15:14:19Z
2020-04-07T01:23:30Z
2020-04-07T01:23:29Z
2020-04-07T14:09:48Z
ENH/PERF: use mask in factorize for nullable dtypes
diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index 1768e682b3db4..65e52e03c43c7 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -34,7 +34,16 @@ class Factorize: params = [ [True, False], [True, False], - ["...
xref https://github.com/pandas-dev/pandas/issues/30037 This adds the option to use a mask in the `HashTable.factorize` (implementation itself is in `HashTable._unique`). That allows eg IntegerArray to use its mask and avoid the need to convert to object dtype or float dtype (which also avoids a copy of the data),...
https://api.github.com/repos/pandas-dev/pandas/pulls/33064
2020-03-27T10:06:19Z
2020-05-09T11:41:15Z
2020-05-09T11:41:15Z
2020-05-09T11:41:19Z
CLN: remove CategoricalBlock.to_native_types
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 71b05eff9b118..b2a8c7a0864b8 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -2802,19 +2802,6 @@ def __init__(self, values, placement, ndim=None): def _holder(self): return Categorica...
The implementation of `to_native_types` on CategoricalBlock seems duplicated with the one of ExtensionBlock (the default for `na_rep` is different, but internally we always pass a value for that and never use the default).
https://api.github.com/repos/pandas-dev/pandas/pulls/33063
2020-03-27T08:35:25Z
2020-03-27T14:58:21Z
2020-03-27T14:58:21Z
2020-03-27T15:07:20Z
BUG: implement astype from string dtype to nullable int dtype
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 7920820b32620..8fdb442b6e16d 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -314,7 +314,7 @@ Conversion Strings ^^^^^^^ -- +- Bug in the :meth:`~Series.astype` method when converting "string" dtyp...
Closes #32450 This implements a conversion from nullable string dtype to nullable int dtype.
https://api.github.com/repos/pandas-dev/pandas/pulls/33062
2020-03-27T08:27:37Z
2020-03-27T14:59:58Z
2020-03-27T14:59:58Z
2020-03-27T15:06:57Z
ERR: Raise NotImplementedError with BaseIndexer and certain rolling operations
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 20415bba99476..88468050f9b2a 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -85,6 +85,7 @@ Other API changes - Added :meth:`DataFrame.value_counts` (:issue:`5377`) - :meth:`Groupby.groups` now retur...
- [x] xref #32865 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry As a temporary solution for returning incorrect results when using a BaseIndexer subclass with certain rolling operations, a `NotImplementedError` wil...
https://api.github.com/repos/pandas-dev/pandas/pulls/33057
2020-03-27T03:39:00Z
2020-03-29T15:36:18Z
2020-03-29T15:36:18Z
2020-03-29T16:42:09Z
REF: avoid internals in tshift
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b9ce7cce3685c..fef292306e741 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8978,7 +8978,7 @@ def slice_shift(self: FrameOrSeries, periods: int = 1, axis=0) -> FrameOrSeries: return new_obj.__finalize__(self) def ts...
https://api.github.com/repos/pandas-dev/pandas/pulls/33056
2020-03-27T03:26:39Z
2020-03-27T16:23:04Z
2020-03-27T16:23:04Z
2020-03-27T16:36:55Z
REF: rename _data->_mgr
diff --git a/pandas/_libs/properties.pyx b/pandas/_libs/properties.pyx index 0e04c5417cd7e..9b936eed785b4 100644 --- a/pandas/_libs/properties.pyx +++ b/pandas/_libs/properties.pyx @@ -56,10 +56,10 @@ cdef class AxisProperty: list axes if obj is None: - # Only instances have _data, no...
We have a long-term goal of reducing the exposed surface of the internals. One difficulty is that it is not trivial to identify all the places that access the internal, in part because grepping for `._data` will turn up a ton of non-internals Index and EA attributes. By renaming _data -> _mgr, we'll make it easier to...
https://api.github.com/repos/pandas-dev/pandas/pulls/33054
2020-03-27T01:59:24Z
2020-04-06T18:05:23Z
2020-04-06T18:05:23Z
2020-04-06T18:07:37Z
REF: MultiIndex Indexing tests
diff --git a/pandas/tests/indexes/multi/test_analytics.py b/pandas/tests/indexes/multi/test_analytics.py index a9e02934f27ab..cd98a87459061 100644 --- a/pandas/tests/indexes/multi/test_analytics.py +++ b/pandas/tests/indexes/multi/test_analytics.py @@ -57,23 +57,6 @@ def test_truncate(): index.truncate(3, 1) ...
Trying to make the tests.indexes.foo.test_indexing files cover a uniform collection of methods
https://api.github.com/repos/pandas-dev/pandas/pulls/33053
2020-03-27T01:17:19Z
2020-03-27T15:05:01Z
2020-03-27T15:05:01Z
2020-04-05T17:48:12Z
CLN: remove BlockManager.get
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 67523facb7b7d..de03ed4ebcfd1 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2555,7 +2555,7 @@ def _ixs(self, i: int, axis: int = 0): label = self.columns[i] values = self._mgr.iget(i) - result = self....
This should not be merged until after #33047 and #33045, since the assertions made here will not always hold until then.
https://api.github.com/repos/pandas-dev/pandas/pulls/33052
2020-03-26T21:39:34Z
2020-04-15T19:21:58Z
2020-04-15T19:21:58Z
2020-04-15T19:37:32Z
REF: RangeIndex tests
diff --git a/pandas/tests/indexes/ranges/test_indexing.py b/pandas/tests/indexes/ranges/test_indexing.py new file mode 100644 index 0000000000000..238c33c3db6d7 --- /dev/null +++ b/pandas/tests/indexes/ranges/test_indexing.py @@ -0,0 +1,79 @@ +import numpy as np +import pytest + +import pandas as pd +from pandas import...
https://api.github.com/repos/pandas-dev/pandas/pulls/33050
2020-03-26T19:03:48Z
2020-03-26T22:33:54Z
2020-03-26T22:33:54Z
2020-03-26T23:35:12Z
BUG: DataFrame.at with non-unique axes
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 2f4e961ff433f..0e75e91c61697 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -467,6 +467,7 @@ Indexing - Bug in :meth:`DatetimeIndex.get_loc` raising ``KeyError`` with converted-integer key instead of...
- [x] closes #33041 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Closes #33041 in conjunction with #33045.
https://api.github.com/repos/pandas-dev/pandas/pulls/33047
2020-03-26T18:09:35Z
2020-04-15T18:58:47Z
2020-04-15T18:58:46Z
2020-04-15T19:04:17Z
BUG: frame.lookup with non-unique axes
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 0ebe57bfbb3a1..cfae9a8bf504e 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -337,6 +337,7 @@ Indexing - Bug in :meth:`DataFrame.loc:` and :meth:`Series.loc` with a :class:`DatetimeIndex`, :class:`Tim...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry xref #33041, one more PR coming up to close that.
https://api.github.com/repos/pandas-dev/pandas/pulls/33045
2020-03-26T17:47:50Z
2020-03-26T22:35:34Z
2020-03-26T22:35:34Z
2020-03-26T23:37:05Z
REF: test_searchorted for PeriodIndex
diff --git a/pandas/tests/indexes/period/test_searchsorted.py b/pandas/tests/indexes/period/test_searchsorted.py new file mode 100644 index 0000000000000..f5a2583bf2e10 --- /dev/null +++ b/pandas/tests/indexes/period/test_searchsorted.py @@ -0,0 +1,77 @@ +import numpy as np +import pytest + +from pandas._libs.tslibs im...
https://api.github.com/repos/pandas-dev/pandas/pulls/33040
2020-03-26T16:17:01Z
2020-03-26T22:34:46Z
2020-03-26T22:34:46Z
2020-03-26T23:52:08Z
PERF: remove large-array-creating path in fast_xs
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index e98d2948e76ea..7f3c24d5a2732 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -308,6 +308,31 @@ def time_frame_getitem_single_column_int(self): self.df_int_col[0] +class IndexSingle...
When frame.columns is non-unique, `frame.iloc[n]` goes through an unnecessary path that effectively creates `frame.values` and looking up `[n]` on that. That's a lot of casting to access just one row. Luckily, that case is obsolete, so this rips it right out.
https://api.github.com/repos/pandas-dev/pandas/pulls/33032
2020-03-26T03:27:56Z
2020-03-29T15:40:25Z
2020-03-29T15:40:25Z
2020-03-29T15:56:33Z
DOC: Fixing links to the contributing page
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index bc31d362118b5..49200523df40f 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -2,7 +2,7 @@ Whether you are a novice or experienced software developer, all contributions and suggestions are welcome! -Our main contributing guid...
Not 100% sure on this changes. --- Feel free to close this at anytime.
https://api.github.com/repos/pandas-dev/pandas/pulls/33029
2020-03-26T00:57:50Z
2020-04-07T23:12:14Z
2020-04-07T23:12:14Z
2020-04-07T23:21:43Z
CLN: de-duplicate Block.should_store and related
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index a8cdb554edf03..71b05eff9b118 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -654,6 +654,20 @@ def _can_hold_element(self, element: Any) -> bool: return issubclass(tipo.type, dtype) ...
FooBlock.should_store is equivalent to `is_dtype_equal(self.dtype, other.dtype)` for almost all of our Block subclasses. This makes that the implementation for the base class, so we define it in fewer places. xref #32878 on remaining cases.
https://api.github.com/repos/pandas-dev/pandas/pulls/33028
2020-03-26T00:56:50Z
2020-03-27T07:01:17Z
2020-03-27T07:01:17Z
2020-03-27T15:23:33Z
ERR: Raise a better error for numpy singletons in Index
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index dcbfe6aeb9a12..3993f8ffa5d14 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -309,6 +309,7 @@ Indexing - Bug in :meth:`DataFrame.iloc.__setitem__` on a :class:`DataFrame` with duplicate columns incorr...
- [x] closes #33017 - [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/33026
2020-03-25T23:32:57Z
2020-03-26T13:24:10Z
2020-03-26T13:24:10Z
2020-03-27T16:33:55Z
Fiy Typo in datetimes (parced)
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 7414165ab5711..3dd17f5747df9 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -260,7 +260,7 @@ def _convert_listlike_datetimes( Parameters ---------- arg : list, tuple, ndarray, Series, I...
Fixed a typo in pandas/core/tools/datetimes (parced -> parsed)
https://api.github.com/repos/pandas-dev/pandas/pulls/33022
2020-03-25T21:30:55Z
2020-03-25T22:25:37Z
2020-03-25T22:25:37Z
2020-03-26T22:46:01Z
CLN: a batch of replacements of @Appender() with @doc()
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 4fabd8f558fee..40d5c1c7f2375 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -784,7 +784,7 @@ def shift(self, periods=1, fill_value=None, axis=0): "will raise in a futu...
- [x] xref #31942 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] replaces a number of uses of @Appender() with @doc() in `core/generic.py`
https://api.github.com/repos/pandas-dev/pandas/pulls/33021
2020-03-25T20:52:09Z
2020-04-10T11:45:01Z
2020-04-10T11:45:01Z
2020-04-10T11:45:15Z
REF: collect .align tests
diff --git a/pandas/tests/frame/methods/test_align.py b/pandas/tests/frame/methods/test_align.py new file mode 100644 index 0000000000000..36a9a6b5b3d58 --- /dev/null +++ b/pandas/tests/frame/methods/test_align.py @@ -0,0 +1,245 @@ +import numpy as np +import pytest + +import pandas as pd +from pandas import DataFrame,...
https://api.github.com/repos/pandas-dev/pandas/pulls/33019
2020-03-25T18:26:30Z
2020-03-25T23:50:52Z
2020-03-25T23:50:52Z
2020-03-26T00:40:56Z
REF: CategoricalIndex indexing tests
diff --git a/pandas/tests/indexes/categorical/test_category.py b/pandas/tests/indexes/categorical/test_category.py index 9562582393235..6e8e81230b2bb 100644 --- a/pandas/tests/indexes/categorical/test_category.py +++ b/pandas/tests/indexes/categorical/test_category.py @@ -1,8 +1,6 @@ import numpy as np import pytest ...
Current goal is to get the tests.indexes.foo.test_indexing files into alignment (and to actually hold tests for all/only indexing methods)
https://api.github.com/repos/pandas-dev/pandas/pulls/33018
2020-03-25T17:59:22Z
2020-03-25T23:53:26Z
2020-03-25T23:53:26Z
2020-03-26T00:42:57Z
DOC: Document axis for swaplevel, standardize elsewhere
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 8deeb415c17c9..73906033f8f7f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3897,7 +3897,7 @@ def rename( columns : dict-like or function Alternative to specifying axis (``mapper, axis=1`` is equivalent t...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/33016
2020-03-25T14:47:00Z
2020-03-26T03:18:26Z
2020-03-26T03:18:26Z
2020-03-26T06:43:25Z
Added RuntimeWarning to lib.fast_unique_multiple
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 25f847c698278..19e8acdaa7384 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -87,6 +87,7 @@ Other enhancements - Positional slicing on a :class:`IntervalIndex` now supports slices with ``step > 1`` (:...
- [ ] closes #xxxx - [ ] 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/33015
2020-03-25T14:25:39Z
2020-04-02T14:25:03Z
2020-04-02T14:25:03Z
2020-04-02T18:57:57Z
add match to bare pyteset.raises() - arrays
diff --git a/pandas/tests/arithmetic/test_timedelta64.py b/pandas/tests/arithmetic/test_timedelta64.py index b11fcfd20b8c4..beb16c9549cc4 100644 --- a/pandas/tests/arithmetic/test_timedelta64.py +++ b/pandas/tests/arithmetic/test_timedelta64.py @@ -650,9 +650,9 @@ def test_tdi_add_overflow(self): # See GH#1406...
- [x] ref #30999 - [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/33010
2020-03-25T11:46:48Z
2020-03-30T22:41:55Z
2020-03-30T22:41:55Z
2020-03-31T03:18:04Z
STY: Boolean values for bint variables
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 6aa9a8b2dedfd..6c6f6a8600ba2 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -530,14 +530,14 @@ def maybe_booleans_to_slice(ndarray[uint8_t] mask): cdef: Py_ssize_t i, n = len(mask) Py_ssize_t start = 0, end = 0 - ...
- [ ] closes #xxxx - [ ] 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/33009
2020-03-25T11:37:32Z
2020-03-26T22:39:13Z
2020-03-26T22:39:13Z
2020-03-29T09:22:41Z
STY: Boolean values for bint variables
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 94e757624c136..53bcf5be2586a 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -114,7 +114,7 @@ def ints_to_pydatetime( const int64_t[:] arr, object tz=None, object freq=None, - bint fold=0, + bint fold=False, ...
- [ ] closes #xxxx - [ ] 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/33008
2020-03-25T11:31:42Z
2020-03-26T09:02:08Z
2020-03-26T09:02:08Z
2020-03-26T15:40:16Z
STY: Boolean values for bint variables
diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx index cbe0e71153565..54892a7e4bc77 100644 --- a/pandas/_libs/join.pyx +++ b/pandas/_libs/join.pyx @@ -78,7 +78,7 @@ def inner_join(const int64_t[:] left, const int64_t[:] right, @cython.boundscheck(False) def left_outer_join(const int64_t[:] left, const int...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry --- ```asv``` benchmarks: to show that performance is not changed with the stylistic changes) ``` All benchmarks: before a...
https://api.github.com/repos/pandas-dev/pandas/pulls/33005
2020-03-25T10:39:02Z
2020-03-25T23:44:41Z
2020-03-25T23:44:41Z
2020-03-25T23:54:48Z
DOC: Fix PR01, PR02, RT03 on cumulative function
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 9c1cfda7d6271..abf0b55f8bca8 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10541,13 +10541,14 @@ def _doc_parms(cls): skipna : bool, default True Exclude NA/null values. If an entire row/column is NA, the result will be...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Related to #27977.
https://api.github.com/repos/pandas-dev/pandas/pulls/33000
2020-03-25T06:49:34Z
2020-03-25T23:49:31Z
2020-03-25T23:49:30Z
2020-03-25T23:49:35Z
REF: collect TimedeltaIndex.delete tests
diff --git a/pandas/tests/indexes/timedeltas/test_delete.py b/pandas/tests/indexes/timedeltas/test_delete.py new file mode 100644 index 0000000000000..593ed7bb0a1ac --- /dev/null +++ b/pandas/tests/indexes/timedeltas/test_delete.py @@ -0,0 +1,70 @@ +import pytest + +from pandas import TimedeltaIndex, timedelta_range +i...
organize the tests left in test_indexing; i made that file a while back and had some pretty inconsistent ideas about what belonged there
https://api.github.com/repos/pandas-dev/pandas/pulls/32996
2020-03-25T02:54:46Z
2020-03-25T23:57:00Z
2020-03-25T23:57:00Z
2020-03-26T00:40:29Z
BUG: DataFrame.diff(axis=1) with mixed (or EA) dtypes
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 5c39377899a20..35d6e867ff86f 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -410,6 +410,8 @@ Numeric - Bug in :meth:`to_numeric` with ``downcast="unsigned"`` fails for empty data (:issue:`32493`) - ...
- [ ] closes #xxxx - [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/32995
2020-03-25T01:31:54Z
2020-04-10T16:05:53Z
2020-04-10T16:05:53Z
2020-04-10T18:18:23Z
REF: collect DataFrame.drop, Series.drop tests
diff --git a/pandas/tests/frame/methods/test_drop.py b/pandas/tests/frame/methods/test_drop.py index e6d002369f758..0bc234dcb39aa 100644 --- a/pandas/tests/frame/methods/test_drop.py +++ b/pandas/tests/frame/methods/test_drop.py @@ -1,7 +1,12 @@ +import re + import numpy as np import pytest +from pandas.errors impo...
https://api.github.com/repos/pandas-dev/pandas/pulls/32994
2020-03-25T00:56:29Z
2020-03-25T23:58:24Z
2020-03-25T23:58:24Z
2020-03-26T00:40:00Z
DOC: Fix capitalization among headings in documentation files (#32550)
diff --git a/doc/source/getting_started/intro_tutorials/01_table_oriented.rst b/doc/source/getting_started/intro_tutorials/01_table_oriented.rst index 02e59b3c81755..9ee3bfc3b8e79 100644 --- a/doc/source/getting_started/intro_tutorials/01_table_oriented.rst +++ b/doc/source/getting_started/intro_tutorials/01_table_orie...
Following #32978 and #32944. Headers updated for the following files: ``` - [ ] doc/source/getting_started/comparison/comparison_with_stata.rst - [ ] doc/source/getting_started/intro_tutorials/01_table_oriented.rst - [ ] doc/source/getting_started/tutorials.rst - [ ] doc/source/reference/arrays.rst - [ ] doc/s...
https://api.github.com/repos/pandas-dev/pandas/pulls/32991
2020-03-24T23:16:27Z
2020-03-30T16:32:42Z
2020-03-30T16:32:42Z
2020-03-30T16:34:56Z
BUG: Multiple unstack using row index level labels and multi level columns DataFrame
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index dcbfe6aeb9a12..8d868550a7d12 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -387,6 +387,7 @@ Reshaping - Bug in :meth:`DataFrame.apply` where callback was called with :class:`Series` parameter even t...
- [x] closes #24729 - [x] closes #28306 - [x] closes #32624 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This should fix the issue with a long list of indices and unstack. The issue appeared with 6 indices for t...
https://api.github.com/repos/pandas-dev/pandas/pulls/32990
2020-03-24T23:12:52Z
2020-03-26T20:08:09Z
2020-03-26T20:08:08Z
2020-03-26T22:46:31Z
CLN: Fix linting
diff --git a/pandas/tests/indexes/timedeltas/test_constructors.py b/pandas/tests/indexes/timedeltas/test_constructors.py index 623b0d80a73dc..3e5bb56c3e58e 100644 --- a/pandas/tests/indexes/timedeltas/test_constructors.py +++ b/pandas/tests/indexes/timedeltas/test_constructors.py @@ -169,8 +169,8 @@ def test_constructo...
I think this fixes the linting problem in the CI
https://api.github.com/repos/pandas-dev/pandas/pulls/32987
2020-03-24T20:41:32Z
2020-03-25T02:51:24Z
2020-03-25T02:51:24Z
2020-03-25T02:52:30Z
CLN: Remove NameResolutionError
diff --git a/pandas/core/computation/common.py b/pandas/core/computation/common.py index 19a8898a2987c..327ec21c3c11c 100644 --- a/pandas/core/computation/common.py +++ b/pandas/core/computation/common.py @@ -24,7 +24,3 @@ def result_type_many(*arrays_and_dtypes): except ValueError: # we have > NPY_MAXARG...
Another small cleanup (this exception was removed in 0.14.0 according to release notes)
https://api.github.com/repos/pandas-dev/pandas/pulls/32985
2020-03-24T20:12:36Z
2020-03-26T01:20:03Z
2020-03-26T01:20:03Z
2020-03-26T01:25:03Z
PERF: Enable %z in parsing datetime
diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py index 6c9f8ee77e5ad..b494dbd8a38fa 100644 --- a/asv_bench/benchmarks/timeseries.py +++ b/asv_bench/benchmarks/timeseries.py @@ -336,15 +336,33 @@ def time_infer_quarter(self): class ToDatetimeFormat: def setup(self): - s...
- [ ] closes #32792 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/32984
2020-03-24T17:48:46Z
2020-03-29T15:54:50Z
2020-03-29T15:54:50Z
2020-04-17T14:23:47Z
DOC: Fix orc link
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index f3aff0654530e..d68dc24bae658 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -28,7 +28,7 @@ The pandas I/O API is a set of top level ``reader`` functions accessed like binary;`HDF5 Format <https://support...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/32983
2020-03-24T16:29:52Z
2020-03-24T20:10:36Z
2020-03-24T20:10:36Z
2020-03-24T20:10:53Z
TST: Move _get_cython_table_params into pandas/_testing.py
diff --git a/pandas/_testing.py b/pandas/_testing.py index e69263b81e1aa..1f6b645c821c8 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -2662,3 +2662,34 @@ def external_error_raised( import pytest return pytest.raises(expected_exception, match=None) + + +cython_table = pd.core.base.SelectionMixi...
Part of #30914 - [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/32981
2020-03-24T15:57:22Z
2020-03-24T19:35:39Z
2020-03-24T19:35:39Z
2020-03-24T19:35:43Z
DOC: Fix examples in reshape
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 15b4128424eb1..0b010bb67a89a 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -283,14 +283,8 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then pytest -q --doctest-modules pandas/core/tools/datetimes.py RET=$(($RET + $?)) ; echo $MSG "DONE...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/32980
2020-03-24T15:25:40Z
2020-03-27T21:08:52Z
2020-03-27T21:08:52Z
2020-03-29T09:23:40Z
DOC: Fix capitalization among headings in documentation files (#32550)
diff --git a/doc/source/development/policies.rst b/doc/source/development/policies.rst index b7cc3db3ad260..1031bbfc46457 100644 --- a/doc/source/development/policies.rst +++ b/doc/source/development/policies.rst @@ -6,7 +6,7 @@ Policies .. _policies.version: -Version Policy +Version policy ~~~~~~~~~~~~~~ .. v...
Files updated: ``` - [ ] doc/source/development/policies.rst - [ ] doc/source/development/roadmap.rst - [ ] doc/source/ecosystem.rst - [ ] doc/source/getting_started/comparison/comparison_with_sas.rst - [ ] doc/source/getting_started/comparison/comparison_with_sql.rst ``` more files updated in different PRs...
https://api.github.com/repos/pandas-dev/pandas/pulls/32978
2020-03-24T15:09:51Z
2020-04-07T01:27:42Z
2020-04-07T01:27:42Z
2020-04-07T18:29:24Z
DOC: Mention default behaviour of index_col in readcsv
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index f3aff0654530e..11103b36079f7 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -109,6 +109,11 @@ index_col : int, str, sequence of int / str, or False, default ``None`` Note: ``index_col=False`` can be used t...
- [x] closes #32664 - [ ] tests added / passed (Not needed) - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry (Not needed)
https://api.github.com/repos/pandas-dev/pandas/pulls/32977
2020-03-24T14:19:17Z
2020-04-07T00:23:21Z
2020-04-07T00:23:21Z
2020-04-07T00:23:49Z
CLN: Remove shebang from files that don't need it
diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py index a488aac08e060..b74f99fca21c7 100644 --- a/pandas/core/computation/eval.py +++ b/pandas/core/computation/eval.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 """ Top level ``eval`` module. """ diff --git a/pandas/tests/io/generate_legacy_...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/32975
2020-03-24T12:12:35Z
2020-03-24T23:56:08Z
2020-03-24T23:56:08Z
2020-03-25T07:40:23Z
PERF: Using _Period for optimization
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 4d26842cc0277..4a9b504ffb0d9 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -479,7 +479,6 @@ cdef class PeriodEngine(Int64Engine): return scalar.value if isinstance(scalar, Period): # NB: we assume...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry --- I did two bench marks one in a tight loop(```%timeit```), and one with asv. I don't see a significant performance change (but I'm not sure I ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32973
2020-03-24T11:46:49Z
2020-03-30T22:35:22Z
2020-03-30T22:35:22Z
2020-03-31T06:38:10Z
DOC: Change doc template to fix SA04 errors in docstrings #28792
diff --git a/pandas/core/ops/docstrings.py b/pandas/core/ops/docstrings.py index 7b03b4b449ea5..449a477646c02 100644 --- a/pandas/core/ops/docstrings.py +++ b/pandas/core/ops/docstrings.py @@ -29,11 +29,14 @@ def _make_flex_doc(op_name, typ): if typ == "series": base_doc = _flex_doc_SERIES + if o...
- [x] xref #28792 As requested in #32823 creating separate PR. Also all descriptions for methods starts with upper case and it looks a little out of place. Should it be casted to lowercase perhaps?
https://api.github.com/repos/pandas-dev/pandas/pulls/32972
2020-03-24T11:07:58Z
2020-04-10T19:25:36Z
2020-04-10T19:25:36Z
2020-04-10T19:25:43Z
Correct data type misspelling
diff --git a/doc/source/getting_started/intro_tutorials/02_read_write.rst b/doc/source/getting_started/intro_tutorials/02_read_write.rst index 1b3bcb799d5ce..412a5f9e7485f 100644 --- a/doc/source/getting_started/intro_tutorials/02_read_write.rst +++ b/doc/source/getting_started/intro_tutorials/02_read_write.rst @@ -118...
https://api.github.com/repos/pandas-dev/pandas/pulls/32970
2020-03-24T09:48:21Z
2020-03-24T18:24:06Z
2020-03-24T18:24:06Z
2020-03-24T19:17:50Z
REF: misplaces Series.where, Series.rename tests
diff --git a/pandas/tests/series/indexing/test_alter_index.py b/pandas/tests/series/indexing/test_alter_index.py index a3c431696b689..7d147ccfd7776 100644 --- a/pandas/tests/series/indexing/test_alter_index.py +++ b/pandas/tests/series/indexing/test_alter_index.py @@ -479,16 +479,6 @@ def test_reindex_empty_series_tz_d...
https://api.github.com/repos/pandas-dev/pandas/pulls/32969
2020-03-24T03:55:42Z
2020-03-24T19:36:43Z
2020-03-24T19:36:43Z
2020-03-24T19:52:17Z
CLN: move misplaced (and duplicated) Dataframe.__repr__ test
diff --git a/pandas/tests/frame/test_repr_info.py b/pandas/tests/frame/test_repr_info.py index 48cf37a9abc8b..bfeacdd623b5f 100644 --- a/pandas/tests/frame/test_repr_info.py +++ b/pandas/tests/frame/test_repr_info.py @@ -137,6 +137,10 @@ def test_unicode_string_with_unicode(self): df = DataFrame({"A": ["\u05d0...
https://api.github.com/repos/pandas-dev/pandas/pulls/32968
2020-03-24T03:34:00Z
2020-03-24T19:37:23Z
2020-03-24T19:37:23Z
2020-03-24T19:49:15Z
TST: Use indices fixture in tests/indexes/test_setops.py
diff --git a/pandas/conftest.py b/pandas/conftest.py index 39b98ba175a15..4861082840b1d 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -416,6 +416,10 @@ def indices(request): return indices_dict[request.param].copy() +# Needed to generate cartesian product of indices +index_fixture2 = indices + + ...
part of #30914 - [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/32964
2020-03-24T00:43:26Z
2020-03-26T01:15:23Z
2020-03-26T01:15:22Z
2020-03-26T01:15:28Z
TST: Use indices fixture in tests/indexes/test_base.py
diff --git a/pandas/tests/indexes/test_base.py b/pandas/tests/indexes/test_base.py index 9bc19be2999df..35ee81229b716 100644 --- a/pandas/tests/indexes/test_base.py +++ b/pandas/tests/indexes/test_base.py @@ -33,7 +33,6 @@ period_range, ) import pandas._testing as tm -from pandas.conftest import indices_dict fr...
part of #30914 - [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/32963
2020-03-24T00:30:05Z
2020-03-29T18:00:18Z
2020-03-29T18:00:18Z
2020-03-29T19:51:58Z
TYP: ensure Block.putmask, Block.where get arrays, not Series/DataFrame
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 9c1cfda7d6271..0fcc9fae8c681 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8609,7 +8609,7 @@ def _where( # GH 2745 / GH 4192 # treat like a scalar if len(other) == 1: ...
Avoids the `getattr(obj, "values", obj)` pattern (there's an issue for that)
https://api.github.com/repos/pandas-dev/pandas/pulls/32962
2020-03-23T23:42:34Z
2020-03-26T00:51:35Z
2020-03-26T00:51:35Z
2020-03-26T01:07:01Z
CLN/STY: Nitpicks
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index b7f17aee35a44..7a32b8957003e 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -38,8 +38,15 @@ cimport pandas._libs.util as util from pandas._libs.util cimport numeric, get_nat from pandas._libs.khash cimport ( - khiter_t, kh_de...
Things I find myself doing in multiple branches
https://api.github.com/repos/pandas-dev/pandas/pulls/32961
2020-03-23T23:25:29Z
2020-03-26T01:11:22Z
2020-03-26T01:11:22Z
2020-03-26T01:13:40Z
BUG: df.iloc[:, :1] with EA column
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 1b21983c590e2..587b4d181fa61 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -467,6 +467,7 @@ Indexing - Bug in :meth:`DataFrame.iloc.__setitem__` creating a new array instead of overwriting ``Categor...
- [x] closes #32957 - [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/32959
2020-03-23T22:30:23Z
2020-04-10T20:51:26Z
2020-04-10T20:51:26Z
2020-04-10T20:58:16Z
CLN: update Appender to doc with case __doc__
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 8deeb415c17c9..b3beaff5bff36 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2300,7 +2300,7 @@ def to_html( ) # ---------------------------------------------------------------------- - @Appender(info.__doc__) + @doc(in...
- [x] working on #31942 - [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/32956
2020-03-23T22:07:14Z
2020-03-27T21:14:04Z
2020-03-27T21:14:04Z
2020-03-29T04:15:25Z
CLN: Remove encoding specifier
diff --git a/pandas/_libs/khash.pxd b/pandas/_libs/khash.pxd index ca3b83852b098..b5fe73df5d9be 100644 --- a/pandas/_libs/khash.pxd +++ b/pandas/_libs/khash.pxd @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from cpython.object cimport PyObject from numpy cimport int64_t, uint64_t, int32_t, uint32_t, float64_t diff --git...
- [ ] closes #xxxx - [ ] 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/32955
2020-03-23T22:02:10Z
2020-03-26T01:09:27Z
2020-03-26T01:09:26Z
2020-03-26T01:10:28Z
BUG: passing a non-dict mapping to pd.concat raises a TypeError
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 692df075f25cb..d00a739004fc3 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -385,8 +385,10 @@ Reshaping - :meth:`DataFrame.replace` and :meth:`Series.replace` will raise a ``TypeError`` if ``to_repla...
closes #32954 closes #32863 - [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/32953
2020-03-23T21:48:29Z
2020-03-26T01:19:31Z
2020-03-26T01:19:31Z
2020-03-26T08:55:54Z
CLN: Remove GroupByError exception
diff --git a/pandas/core/base.py b/pandas/core/base.py index 148be3f50c0e7..2d8a41f770bc2 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -123,15 +123,11 @@ def __setattr__(self, key: str, value): object.__setattr__(self, key, value) -class GroupByError(Exception): +class DataError(Exception)...
From what I can tell this exception isn't used / needed
https://api.github.com/repos/pandas-dev/pandas/pulls/32952
2020-03-23T21:18:17Z
2020-03-24T19:39:39Z
2020-03-24T19:39:39Z
2020-03-24T19:56:45Z
REF: move mixed-dtype frame_apply check outside of _reduce try/except
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5c04678cd5fa6..58494d2fcaa5f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7995,35 +7995,44 @@ def blk_func(values): out[:] = coerce_to_dtypes(out.values, df.dtypes) return out + if not self._is_homo...
cc @jorisvandenbossche this is the same branch I linked the other day. Some variant of #32867 may make this irrelevant, but I don't think getting this improvement in the interim will make that any more difficult.
https://api.github.com/repos/pandas-dev/pandas/pulls/32950
2020-03-23T20:43:15Z
2020-03-30T22:43:04Z
2020-03-30T22:43:04Z
2020-03-30T23:08:05Z
CLN: remove unnecessary Series._convert calls
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 052a4adddca27..eb5674c46bccc 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5707,7 +5707,6 @@ def _convert( numeric: bool_t = False, timedelta: bool_t = False, coerce: bool_t = False, - copy: bool_...
cc @WillAyd my confidence on the correctness here is only "pretty sure", so could use an extra set of eyes.
https://api.github.com/repos/pandas-dev/pandas/pulls/32949
2020-03-23T20:39:42Z
2020-04-10T16:18:07Z
2020-04-10T16:18:07Z
2020-04-10T17:23:12Z