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
Fixed #38419 - BUG: set_index screws up the dtypes on empty DataFrames
diff --git a/pandas/tests/frame/methods/test_set_index.py b/pandas/tests/frame/methods/test_set_index.py index aea8caff5936b..ca098296daf8d 100644 --- a/pandas/tests/frame/methods/test_set_index.py +++ b/pandas/tests/frame/methods/test_set_index.py @@ -47,6 +47,17 @@ def test_set_index_empty_column(self): expe...
Fixes #38419 - BUG: set_index screws up the dtypes on empty DataFrames - [ test_set_index_empty_dataframe] tests added / passed
https://api.github.com/repos/pandas-dev/pandas/pulls/38430
2020-12-12T20:53:22Z
2020-12-13T17:41:40Z
2020-12-13T17:41:40Z
2020-12-13T17:41:44Z
REF: simplify maybe_upcast
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index fafa1f51c823e..35737f28da830 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -924,45 +924,31 @@ def maybe_infer_dtype_type(element): def maybe_upcast( - values: ArrayLike, + values: np.ndarray, fill_va...
It reduces to a 2-liner. It is currently used in 4 places, 2 of which I'm looking to remove in the near future. At that point it will make sense to inline those 2 lines and remove maybe_upcast entirely.
https://api.github.com/repos/pandas-dev/pandas/pulls/38428
2020-12-12T17:39:07Z
2020-12-12T23:08:49Z
2020-12-12T23:08:49Z
2020-12-13T00:02:50Z
REGR: Assigning label with registered EA dtype raises
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index af9219bc25931..da8487d52ca2f 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -856,7 +856,7 @@ Other - Bug in :meth:`Index.drop` raising ``InvalidIndexError`` when index has duplicates (:issue:`38051`)...
- [x] closes #38386 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Previous behavior in `io.parsers` depended on `is_bool_dtype("boolean")` erroneously raising `AttributeError`. Test currently iterates over the n...
https://api.github.com/repos/pandas-dev/pandas/pulls/38427
2020-12-12T17:35:29Z
2020-12-14T14:11:03Z
2020-12-14T14:11:03Z
2021-01-02T14:16:01Z
DOC: Clarify that DataFrame.sort_values is stable for sorting by multiple columns or labels
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 41cb76d88957e..472c505700327 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4367,9 +4367,9 @@ def sort_values( If True, perform operation in-place. kind : {'quicksort', 'mergesort', 'heapsort'}, default 'quic...
- [x] closes #38357 - ~~tests added / passed~~ - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - ~~whatsnew entry~~ From what I understand from the code, for `by` containing more than one entry, `pandas.DataFrame.sort_values` uses `pandas.core.sorting.lexsort_inde...
https://api.github.com/repos/pandas-dev/pandas/pulls/38426
2020-12-12T17:31:36Z
2020-12-22T20:32:57Z
2020-12-22T20:32:57Z
2020-12-22T20:34:34Z
CLN: MultiIndex.union align with Index.union()
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 385b7e487d4c5..1edd98e980a2d 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -3566,18 +3566,19 @@ def union(self, other, sort=None): """ self._validate_sort_keyword(sort) self._asser...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Similar to MultiIndex.intersection() Stumbled over a issue in the maybe_match_names function. Can not return plain None, because MultiIndex.rename can not handle this. cc @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/38423
2020-12-12T12:04:35Z
2020-12-13T19:59:52Z
2020-12-13T19:59:52Z
2020-12-13T20:01:07Z
ENH/POC: EA.isin
diff --git a/doc/source/reference/extensions.rst b/doc/source/reference/extensions.rst index fe4113d100abf..7b451ed3bf296 100644 --- a/doc/source/reference/extensions.rst +++ b/doc/source/reference/extensions.rst @@ -48,6 +48,7 @@ objects. api.extensions.ExtensionArray.equals api.extensions.ExtensionArray...
- [x] closes #38340 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Needs tests; the MaskedArray.isin method is not currently reached. cc @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/38422
2020-12-12T03:52:02Z
2020-12-20T04:41:56Z
null
2021-11-20T23:21:06Z
REF: simplify maybe_casted_values
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index fafa1f51c823e..fcd4a24140c9f 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -88,17 +88,11 @@ ABCSeries, ) from pandas.core.dtypes.inference import is_list_like -from pandas.core.dtypes.missing import ( - is...
The meat of this function boils down to a call to algorithms.take.
https://api.github.com/repos/pandas-dev/pandas/pulls/38421
2020-12-12T02:14:24Z
2020-12-12T23:09:17Z
2020-12-12T23:09:17Z
2020-12-12T23:53:23Z
BUG: read_csv not recognizing numbers appropriately when decimal is set
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 85da250648c28..0a0e94221befe 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -259,6 +259,7 @@ I/O ^^^ - Bug in :meth:`Index.__repr__` when ``display.max_seq_items=1`` (:issue:`38415`) +- Bug in :fu...
- [x] closes #31920 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The old regex was shorter but pretty buggy. Let's assume ``decimal=","`` and ``thousands="."`` For example something like ``1a.2,3`` was inter...
https://api.github.com/repos/pandas-dev/pandas/pulls/38420
2020-12-12T00:54:19Z
2021-01-03T16:36:21Z
2021-01-03T16:36:21Z
2021-01-03T18:47:35Z
ENH: Add method argument to rolling constructor to allow table-wise rolling
diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py index 5a36cff7908f0..ab9c46fd2bf0b 100644 --- a/asv_bench/benchmarks/rolling.py +++ b/asv_bench/benchmarks/rolling.py @@ -252,4 +252,22 @@ def time_groupby_mean(self, engine): self.gb_ewm.mean(engine=engine) +def table_method_fu...
- [x] closes #15095 - [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/38417
2020-12-11T20:44:59Z
2020-12-27T23:02:31Z
2020-12-27T23:02:31Z
2020-12-27T23:38:35Z
TYP: pandas/core/frame.py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 0af5ffc767a1e..99e91e01845ee 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -22,6 +22,7 @@ TYPE_CHECKING, Any, AnyStr, + Callable, Dict, FrozenSet, Hashable, @@ -71,6 +72,7 @@ NpDtype, PythonFuncTy...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I plan to do a pass through the whole file - putting it up in case anybody has feedback on what I have
https://api.github.com/repos/pandas-dev/pandas/pulls/38416
2020-12-11T19:20:59Z
2021-03-15T15:32:28Z
2021-03-15T15:32:28Z
2021-03-15T15:32:40Z
TST: add messages to bare pytest raises
diff --git a/pandas/tests/generic/methods/test_pipe.py b/pandas/tests/generic/methods/test_pipe.py index b378600634bf0..b865c191aebaf 100644 --- a/pandas/tests/generic/methods/test_pipe.py +++ b/pandas/tests/generic/methods/test_pipe.py @@ -31,5 +31,8 @@ def test_pipe_tuple_error(self, frame_or_series): ob...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This PR adds messages to the bare pytest raises in pandas/tests/generic/methods/test_pipe.py and pandas/tests/reshape/merge/test_merge_asof.py. This ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38414
2020-12-11T16:24:17Z
2020-12-14T19:11:21Z
2020-12-14T19:11:21Z
2020-12-14T19:11:26Z
REF: move __array_ufunc__ to base NumericArray
diff --git a/pandas/core/arrays/floating.py b/pandas/core/arrays/floating.py index 1ac23d7893fbf..2a47c2aa1c914 100644 --- a/pandas/core/arrays/floating.py +++ b/pandas/core/arrays/floating.py @@ -1,4 +1,3 @@ -import numbers from typing import List, Optional, Tuple, Type import warnings @@ -22,7 +21,6 @@ from pand...
xref https://github.com/pandas-dev/pandas/issues/38110 The implementations for integer and float array is almost identical, so move to base class. In addition, this also enables that ufuncs on IntegerArray can return FloatingArray (instead of float numpy array) I should probably consolidate the tests as well, and...
https://api.github.com/repos/pandas-dev/pandas/pulls/38412
2020-12-11T15:02:30Z
2021-01-13T13:58:36Z
2021-01-13T13:58:36Z
2021-01-13T13:59:37Z
REF: move __from_arrow__ to common base class for numeric masked arrays
diff --git a/pandas/core/arrays/floating.py b/pandas/core/arrays/floating.py index 1077538f6a21d..aedf6adf09db4 100644 --- a/pandas/core/arrays/floating.py +++ b/pandas/core/arrays/floating.py @@ -1,5 +1,5 @@ import numbers -from typing import TYPE_CHECKING, List, Optional, Tuple, Type, Union +from typing import List,...
xref https://github.com/pandas-dev/pandas/issues/38110
https://api.github.com/repos/pandas-dev/pandas/pulls/38411
2020-12-11T14:04:06Z
2020-12-12T22:54:06Z
2020-12-12T22:54:06Z
2020-12-13T07:30:24Z
Backport PR #38396 on branch 1.2.x (BUG: algos.rank with readonly values)
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 734b3d5c09cbf..4cddd49381a83 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -824,7 +824,7 @@ def rank_1d( if values.dtype != np.object_: values = values.astype('O') else: - values = np.asarray(in_ar...
Backport PR #38396: BUG: algos.rank with readonly values
https://api.github.com/repos/pandas-dev/pandas/pulls/38409
2020-12-11T11:22:57Z
2020-12-11T12:28:08Z
2020-12-11T12:28:08Z
2020-12-11T12:28:08Z
ENH: add end and end_day origin for resample
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 354c510b843dd..8909f5b33066b 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -1888,6 +1888,34 @@ Those two examples are equivalent for this time series: Note the use of ``'st...
- [x] closes #37804 - [x] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38408
2020-12-11T06:22:06Z
2020-12-22T14:02:49Z
2020-12-22T14:02:49Z
2020-12-22T14:07:34Z
CLN: remove coerce_float keyword from construction.internals
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 66399f2b9a5e4..d1be336204593 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1844,7 +1844,11 @@ def from_records( columns = ensure_index(columns) arr_columns = columns else: - arrays, arr_co...
This sits on top of #38400
https://api.github.com/repos/pandas-dev/pandas/pulls/38407
2020-12-11T04:55:45Z
2020-12-12T23:20:12Z
2020-12-12T23:20:12Z
2020-12-12T23:52:23Z
BUG: DataFrame.to_markdown with an empty frame
diff --git a/ci/deps/azure-38.yaml b/ci/deps/azure-38.yaml index 954e9710f79b9..89e8d28a139b7 100644 --- a/ci/deps/azure-38.yaml +++ b/ci/deps/azure-38.yaml @@ -17,4 +17,4 @@ dependencies: - python-dateutil - nomkl - pytz - - tabulate==0.8.3 + - tabulate==0.8.7 diff --git a/doc/source/getting_started/install...
- [x] closes #31771 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Picking up #36233. Bumping the minimum version of tabulate as per https://github.com/pandas-dev/pandas/issues/31771#issuecomment-685401053
https://api.github.com/repos/pandas-dev/pandas/pulls/38406
2020-12-11T04:41:13Z
2020-12-12T23:28:05Z
2020-12-12T23:28:04Z
2020-12-12T23:28:09Z
BUG: Series/DataFrame construction from scalars
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index ab9f303bec6aa..2a316a3194b14 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -86,7 +86,7 @@ Categorical Datetimelike ^^^^^^^^^^^^ - +- Bug in :class:`DataFrame` and :class:`Series` constructors som...
- [x] closes #38032 - [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/38405
2020-12-11T02:44:24Z
2020-12-12T23:23:56Z
2020-12-12T23:23:56Z
2020-12-12T23:51:05Z
REF: simplify casting
diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index b8375af797b3a..76c9d013575f0 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -21,7 +21,6 @@ astype_nansafe, construct_1d_arraylike_from_scalar, find_common_type, - inf...
This gets us down to only 3 usages of maybe_cast_to_datetime
https://api.github.com/repos/pandas-dev/pandas/pulls/38404
2020-12-10T18:10:42Z
2020-12-11T22:47:03Z
2020-12-11T22:47:03Z
2020-12-11T22:54:01Z
TST: Add test to ensure DF describe does not throw an error (#32409)
diff --git a/pandas/tests/frame/methods/test_describe.py b/pandas/tests/frame/methods/test_describe.py index 1de270fc72fb2..ed1c3fcce378c 100644 --- a/pandas/tests/frame/methods/test_describe.py +++ b/pandas/tests/frame/methods/test_describe.py @@ -367,6 +367,15 @@ def test_describe_percentiles_integer_idx(self): ...
- [x] closes #32409 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Notes: - Tested using `pytest pandas/tests/frame/methods/test_describe.py::TestDataFrameDescribe::test_describe_does_not_raise_error` and tested er...
https://api.github.com/repos/pandas-dev/pandas/pulls/38403
2020-12-10T16:45:14Z
2021-01-20T18:57:33Z
2021-01-20T18:57:32Z
2022-06-16T01:11:40Z
REF: simplify internals.construction
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 3c5216b65a70b..d25482872c594 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -524,59 +524,49 @@ def to_arrays( if columns is not None: return [...
https://api.github.com/repos/pandas-dev/pandas/pulls/38400
2020-12-10T03:35:35Z
2020-12-11T23:08:38Z
2020-12-11T23:08:38Z
2020-12-11T23:10:00Z
REF: implement sanitize_masked_array
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 44224f9709699..0d30ded94a22e 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -420,6 +420,20 @@ def ensure_wrapped_if_datetimelike(arr): return arr +def sanitize_masked_array(data: ma.MaskedArray) -> np.nd...
The recarray handling in internals.construction is inconsistent with the other recarray handling. Hopefully I can get that sorted out and then we can re-use sanitize_masked_array there too.
https://api.github.com/repos/pandas-dev/pandas/pulls/38398
2020-12-10T02:46:55Z
2020-12-11T23:03:20Z
2020-12-11T23:03:20Z
2020-12-11T23:08:13Z
BUG: algos.rank with readonly values
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 734b3d5c09cbf..4cddd49381a83 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -824,7 +824,7 @@ def rank_1d( if values.dtype != np.object_: values = values.astype('O') else: - values = np.asarray(in_ar...
One of the two current npdev failures is caused by https://github.com/numpy/numpy/pull/17884
https://api.github.com/repos/pandas-dev/pandas/pulls/38396
2020-12-10T01:31:50Z
2020-12-10T19:42:14Z
2020-12-10T19:42:14Z
2020-12-11T11:21:35Z
Backport PR #35100 on branch 1.2.x (Document Tips for Debugging C Extensions)
diff --git a/doc/source/development/debugging_extensions.rst b/doc/source/development/debugging_extensions.rst new file mode 100644 index 0000000000000..358c4036df961 --- /dev/null +++ b/doc/source/development/debugging_extensions.rst @@ -0,0 +1,93 @@ +.. _debugging_c_extensions: + +{{ header }} + +====================...
Backport PR #35100: Document Tips for Debugging C Extensions
https://api.github.com/repos/pandas-dev/pandas/pulls/38395
2020-12-10T00:19:53Z
2020-12-10T10:28:54Z
2020-12-10T10:28:54Z
2020-12-10T10:28:54Z
ENH: make "closed" part of IntervalDtype
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 9e557a0020f1e..9b9fbe86a6d22 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -201,7 +201,7 @@ Datetimelike - Bug in constructing a :class:`Series` or :class:`DataFrame` with a ``datetime`` object out ...
- [x] closes #19371 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Most of the work here is in accomodating backwards-compat.
https://api.github.com/repos/pandas-dev/pandas/pulls/38394
2020-12-10T00:08:54Z
2021-01-10T00:38:29Z
2021-01-10T00:38:28Z
2021-01-10T02:07:08Z
Solved desing problem with to_datetime when "ignore" error was being used.
diff --git a/pandas/_libs/tslibs/strptime.pyx b/pandas/_libs/tslibs/strptime.pyx index bc4632ad028ab..99fb7b017a3ce 100644 --- a/pandas/_libs/tslibs/strptime.pyx +++ b/pandas/_libs/tslibs/strptime.pyx @@ -53,7 +53,9 @@ cdef dict _parse_code_table = {'y': 0, def array_strptime(ndarray[object] values, object fmt, bint...
- [x] closes #28120 - [x] tests added / passed `test_to_datetime_some_invalid_numbers` - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] Now when u use some array of integers on to_datetime function passing as arguments: error="ignore" and format="%Y%m%d" it only...
https://api.github.com/repos/pandas-dev/pandas/pulls/38393
2020-12-09T21:34:16Z
2021-02-11T01:32:43Z
null
2021-02-11T01:32:44Z
BUG: read_csv interpreting NA value as comment when NA contains comment string
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 70b07e08cf760..dda7d6b7736c4 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -217,6 +217,7 @@ MultiIndex I/O ^^^ +- Bug in :func:`read_csv` interpreting ``NA`` value as comment, when ``NA`` does co...
- [x] xref #34002 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I looked into the ``c`` case, but this is not that trivial as here. Comments are removed way before checking for na values. Would have to move that p...
https://api.github.com/repos/pandas-dev/pandas/pulls/38392
2020-12-09T20:46:56Z
2020-12-13T23:44:23Z
2020-12-13T23:44:23Z
2020-12-14T08:21:46Z
[#38390] Bug fix for Datetime64Formatter with values of ndim > 1
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 57dd1d05a274e..ad44078d051f6 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -242,6 +242,7 @@ I/O - Bug in :func:`read_csv` not accepting ``usecols`` with different length than ``names`` for ``engine=...
- [x] closes #38390 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This change fixes a bug in `Datetime64Formatter` that errors with values of ndim > 1. This was discovered when using an ExtensionArray with 2D value...
https://api.github.com/repos/pandas-dev/pandas/pulls/38391
2020-12-09T19:28:54Z
2021-03-09T07:25:14Z
null
2021-03-09T07:25:14Z
REF: consolidate NDFrame._iset_item, _set_item with DataFrame methods
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index fd7820196f9a9..de60cda382fba 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3211,12 +3211,16 @@ def _setitem_frame(self, key, value): self._check_setitem_copy() self._where(-key, value, inplace=True) - def _iset_item...
- [ ] 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/38389
2020-12-09T17:55:26Z
2020-12-10T00:14:48Z
2020-12-10T00:14:48Z
2020-12-10T00:16:36Z
Updated docstring for DataFrame.plot.bar graph clearify the use of color list
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index e0e35e31d22ac..e891017b37bc1 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -422,7 +422,9 @@ def hist_frame( - A sequence of color strings referred to by name, RGB or RGBA code, which will be us...
- [X] closes #31691 - [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/38387
2020-12-09T16:32:58Z
2020-12-14T17:27:38Z
2020-12-14T17:27:37Z
2020-12-14T17:27:45Z
CLN: fix C408 #38138
diff --git a/pandas/tests/io/parser/test_common.py b/pandas/tests/io/parser/test_common.py index c8ed0d75b13a2..df20db0c7ee84 100644 --- a/pandas/tests/io/parser/test_common.py +++ b/pandas/tests/io/parser/test_common.py @@ -378,12 +378,12 @@ def test_read_duplicate_index_implicit(all_parsers): [ ( ...
- [x] closes #38138
https://api.github.com/repos/pandas-dev/pandas/pulls/38385
2020-12-09T14:10:52Z
2020-12-09T17:09:16Z
2020-12-09T17:09:15Z
2022-11-18T02:22:04Z
Backport PR #38374 on branch 1.2.x (CLN: typo fixup in 1.2.0 whatsnew)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index ef0a1eb7e82e3..af9219bc25931 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -850,7 +850,7 @@ Other - Bug in :meth:`Index.difference` failing to set the correct name on the returned :class:`Index` in ...
Backport PR #38374: CLN: typo fixup in 1.2.0 whatsnew
https://api.github.com/repos/pandas-dev/pandas/pulls/38384
2020-12-09T13:40:00Z
2020-12-09T17:08:29Z
2020-12-09T17:08:29Z
2020-12-09T17:08:30Z
CLN: C408 Unnecessary dict call - rewrite as a literal #38138
diff --git a/pandas/tests/io/generate_legacy_storage_files.py b/pandas/tests/io/generate_legacy_storage_files.py index 61e1fc019faac..be6cdf1696882 100644 --- a/pandas/tests/io/generate_legacy_storage_files.py +++ b/pandas/tests/io/generate_legacy_storage_files.py @@ -142,16 +142,16 @@ def create_data(): "E": ...
Fix in: ./pandas/tests/io/generate_legacy_storage_files.py - [x] closes #38138 - [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/38383
2020-12-09T04:32:51Z
2020-12-09T09:15:06Z
2020-12-09T09:15:05Z
2020-12-09T10:14:53Z
REF: unify Index union methods
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 2261a6a20e58f..bafb37775cbb1 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2592,47 +2592,6 @@ def _get_reconciled_name_object(self, other): return self.rename(name) return self - @fin...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Sits on top of #38373 which focuses on intersection. @simonjayhawkins this changes corner-case behavior for IntervalIndex.union, which we already ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38382
2020-12-09T02:53:00Z
2020-12-14T14:28:23Z
2020-12-14T14:28:23Z
2020-12-14T16:15:04Z
CLN: C408 Unnecessary dict call, last files #38138
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index 76b7877b0ac70..6dabb9cd63774 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -49,7 +49,7 @@ from pandas.core.missing import get_fill_func from pandas.core.sorting import nargminmax, nargsort -_extension_array_shar...
- [x] 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/38381
2020-12-09T02:00:38Z
2020-12-09T04:25:17Z
null
2020-12-09T04:25:17Z
BUG: item_cache invalidation on DataFrame.insert
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 90f611c55e710..d0afc24aaecac 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -127,7 +127,7 @@ Interval Indexing ^^^^^^^^ - +- Bug in inserting many new columns into a :class:`DataFrame` causing inc...
- [x] closes #26985 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Something wonky is going on with tm.assert_produces_warning, will see if it shows up on the CI.
https://api.github.com/repos/pandas-dev/pandas/pulls/38380
2020-12-09T01:42:38Z
2020-12-11T02:35:42Z
2020-12-11T02:35:41Z
2020-12-11T02:50:21Z
fix series.isin slow issue with Dtype IntegerArray
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index 3f4da8acf4db0..e3ab8b243e25a 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -25,17 +25,32 @@ def time_constructor(self, data): class IsIn: - params = ["int64", ...
- [ ] closes #38340 - [ ] 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/38379
2020-12-09T01:08:46Z
2021-01-20T01:44:33Z
2021-01-20T01:44:32Z
2021-02-01T11:30:00Z
CLN: lighter-weight casting
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 96cf1be7520fb..44224f9709699 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -520,9 +520,7 @@ def sanitize_array( # a 1-element ndarray if len(subarr) != len(index) and len(subarr) == 1...
- [ ] 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/38377
2020-12-09T00:36:48Z
2020-12-09T23:44:33Z
2020-12-09T23:44:33Z
2020-12-09T23:52:30Z
Add py39 target in Black's configuration, bump Black to 21.5b2
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3078619ecac35..d580fcf4fc545 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: absolufy-imports files: ^pandas/ - repo: https://github.com/python/black - rev: 20.8b1 + rev: 21.5b2 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38376
2020-12-08T23:43:09Z
2021-06-09T22:47:04Z
2021-06-09T22:47:04Z
2022-11-18T02:20:26Z
CLN: typo fixup in 1.2.0 whatsnew
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index ef0a1eb7e82e3..af9219bc25931 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -850,7 +850,7 @@ Other - Bug in :meth:`Index.difference` failing to set the correct name on the returned :class:`Index` in ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry cc @simonjayhawkins
https://api.github.com/repos/pandas-dev/pandas/pulls/38374
2020-12-08T22:30:26Z
2020-12-09T13:38:24Z
2020-12-09T13:38:24Z
2020-12-09T15:57:14Z
REF: share IntervalIndex.intersection with Index.intersection
diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index 3c5421ae433b6..dd4c7c1eedb49 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -1171,3 +1171,15 @@ def __from_arrow__( results.append(iarr) return IntervalArray._concat_same_type(results)...
- [x] closes #38299 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This changes the return dtype of IntervalIndex.intersection when that intersection is empty.
https://api.github.com/repos/pandas-dev/pandas/pulls/38373
2020-12-08T22:26:56Z
2020-12-12T23:21:45Z
2020-12-12T23:21:45Z
2020-12-14T01:22:44Z
REF: de-duplicate get_indexer methods
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index d0afc24aaecac..ae3ac44a8388c 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -127,6 +127,7 @@ Interval Indexing ^^^^^^^^ +- Bug in :meth:`CategoricalIndex.get_indexer` failing to raise ``InvalidInd...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Sits on top of #38308
https://api.github.com/repos/pandas-dev/pandas/pulls/38372
2020-12-08T21:05:53Z
2020-12-11T22:54:20Z
2020-12-11T22:54:20Z
2020-12-11T22:58:04Z
Backport PR #38369 on branch 1.2.x (DOC: sync xarray version)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 4294871b56bcb..ef0a1eb7e82e3 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -482,7 +482,7 @@ Optional libraries below the lowest tested version may still work, but are not c +-----------------+------...
Backport PR #38369: DOC: sync xarray version
https://api.github.com/repos/pandas-dev/pandas/pulls/38371
2020-12-08T21:00:09Z
2020-12-09T13:36:58Z
2020-12-09T13:36:58Z
2020-12-09T13:36:59Z
[WIP] ENH: add Pyarrow csv engine
diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py index 24d21ad6a633d..287f1d997d665 100644 --- a/asv_bench/benchmarks/io/csv.py +++ b/asv_bench/benchmarks/io/csv.py @@ -146,7 +146,7 @@ def time_read_csv(self, bad_date_value): class ReadCSVSkipRows(BaseIO): fname = "__test__.csv" - ...
- [x] closes #23697 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Picking up #31817. I'm putting this up to use CI for debugging. There are a bunch of comments in #31817 that I haven't addressed yet (working on...
https://api.github.com/repos/pandas-dev/pandas/pulls/38370
2020-12-08T18:20:41Z
2021-06-08T18:32:19Z
null
2021-08-12T23:46:45Z
DOC: sync xarray version
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 4294871b56bcb..ef0a1eb7e82e3 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -482,7 +482,7 @@ Optional libraries below the lowest tested version may still work, but are not c +-----------------+------...
followup #37983
https://api.github.com/repos/pandas-dev/pandas/pulls/38369
2020-12-08T18:10:57Z
2020-12-08T20:59:45Z
2020-12-08T20:59:45Z
2022-11-18T02:22:05Z
Shruti bug fix
diff --git a/pandas/tests/io/generate_legacy_storage_files.py b/pandas/tests/io/generate_legacy_storage_files.py index 61e1fc019faac..ea6d158d55d7c 100644 --- a/pandas/tests/io/generate_legacy_storage_files.py +++ b/pandas/tests/io/generate_legacy_storage_files.py @@ -142,16 +142,16 @@ def create_data(): "E": ...
- [x] closes #line too long - [x] 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/38368
2020-12-08T16:12:19Z
2020-12-08T17:28:31Z
null
2020-12-08T17:28:39Z
Backport PR #38360 on branch 1.2.x (CI: activate azure pipelines/github actions on 1.2.x)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c00cec450c85e..2848437a76a16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ on: pull_request: branches: - master - - 1.1.x + - 1.2.x env: ENV_FILE: environment.yml diff --git a/azu...
Backport PR #38360: CI: activate azure pipelines/github actions on 1.2.x
https://api.github.com/repos/pandas-dev/pandas/pulls/38366
2020-12-08T15:56:34Z
2020-12-08T18:10:54Z
2020-12-08T18:10:54Z
2020-12-08T18:10:54Z
BUG FIX- C408
diff --git a/pandas/tests/io/generate_legacy_storage_files.py b/pandas/tests/io/generate_legacy_storage_files.py index 61e1fc019faac..ea6d158d55d7c 100644 --- a/pandas/tests/io/generate_legacy_storage_files.py +++ b/pandas/tests/io/generate_legacy_storage_files.py @@ -142,16 +142,16 @@ def create_data(): "E": ...
- [ ] closes #c408 - [ ] 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/38365
2020-12-08T15:54:16Z
2020-12-08T17:29:03Z
null
2020-12-08T17:29:03Z
Backport PR #38361 on branch 1.2.x (DOC: minor fixes to 1.2 release notes)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index acf1b3bce8113..4294871b56bcb 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -495,7 +495,7 @@ Optional libraries below the lowest tested version may still work, but are not c See :ref:`install.depen...
Backport PR #38361: DOC: minor fixes to 1.2 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/38363
2020-12-08T15:50:06Z
2020-12-08T17:07:55Z
2020-12-08T17:07:55Z
2020-12-08T17:07:55Z
DOC: minor fixes to 1.2 release notes
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index acf1b3bce8113..4294871b56bcb 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -495,7 +495,7 @@ Optional libraries below the lowest tested version may still work, but are not c See :ref:`install.depen...
https://api.github.com/repos/pandas-dev/pandas/pulls/38361
2020-12-08T14:22:06Z
2020-12-08T15:49:22Z
2020-12-08T15:49:22Z
2020-12-08T15:51:18Z
CI: activate azure pipelines/github actions on 1.2.x
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c00cec450c85e..2848437a76a16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ on: pull_request: branches: - master - - 1.1.x + - 1.2.x env: ENV_FILE: environment.yml diff --git a/azu...
https://api.github.com/repos/pandas-dev/pandas/pulls/38360
2020-12-08T14:14:33Z
2020-12-08T15:49:46Z
2020-12-08T15:49:46Z
2020-12-08T15:56:23Z
DOC: Start v1.3.0 release notes
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 310857faec436..aa8a7a389adee 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -10,6 +10,14 @@ This is the list of changes to pandas between each release. For full details, see the `commit logs <https://git...
https://api.github.com/repos/pandas-dev/pandas/pulls/38359
2020-12-08T14:04:47Z
2020-12-08T16:23:28Z
2020-12-08T16:23:28Z
2020-12-08T16:28:48Z
TST: a weird bug with numpy + DataFrame with duplicate columns
diff --git a/pandas/tests/frame/test_nonunique_indexes.py b/pandas/tests/frame/test_nonunique_indexes.py index b42c56f256478..8dcf6f2188058 100644 --- a/pandas/tests/frame/test_nonunique_indexes.py +++ b/pandas/tests/frame/test_nonunique_indexes.py @@ -486,3 +486,36 @@ def test_set_value_by_index(self): df.i...
- [x] closes #31954 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Picking up #37125
https://api.github.com/repos/pandas-dev/pandas/pulls/38354
2020-12-08T05:47:26Z
2020-12-08T15:58:34Z
2020-12-08T15:58:34Z
2020-12-08T15:58:38Z
PERF: IntervalIndex.isin
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 2fa6fcd9de9d7..329e33d7c8ac5 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -133,7 +133,7 @@ Deprecations Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ - +- Performance improvement in :meth:`I...
``` In [1]: import pandas as pd In [2]: ii = pd.IntervalIndex.from_breaks(range(100000)) In [3]: values = ii[:100] In [4]: from pandas.core.algorithms import isin In [5]: %timeit isin(ii, values) 91.3 ms ± 5.24 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <-- master 3.84 ms ± 57.6 µs per lo...
https://api.github.com/repos/pandas-dev/pandas/pulls/38353
2020-12-08T05:28:38Z
2020-12-14T13:50:34Z
2020-12-14T13:50:34Z
2020-12-14T15:52:36Z
ENH: column-wise DataFrame.fillna with Series/Dict value
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 56a5412d4ecfc..395ce9277f631 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -119,6 +119,7 @@ Other enhancements - Added :meth:`MultiIndex.dtypes` (:issue:`37062`) - Added ``end`` and ``end_day`` opt...
- [x] closes #4514 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Picking up #30922
https://api.github.com/repos/pandas-dev/pandas/pulls/38352
2020-12-08T04:27:46Z
2021-07-11T23:34:31Z
null
2021-07-11T23:34:31Z
BUG: item_cache invalidation
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index b40f012f034b6..90f611c55e710 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -104,7 +104,7 @@ Timezones Numeric ^^^^^^^ - +- Bug in :meth:`DataFrame.quantile`, :meth:`DataFrame.sort_values` causing...
- [ ] 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/38351
2020-12-08T01:14:28Z
2020-12-08T19:07:17Z
2020-12-08T19:07:17Z
2020-12-08T19:46:08Z
TST: add message matches to pytest.raises in various tests GH30999
diff --git a/pandas/tests/io/pytables/test_complex.py b/pandas/tests/io/pytables/test_complex.py index 3a7aff3b551c2..71bb6584889aa 100644 --- a/pandas/tests/io/pytables/test_complex.py +++ b/pandas/tests/io/pytables/test_complex.py @@ -149,8 +149,17 @@ def test_complex_indexing_error(setup_path): {"A": [1, 2,...
- [x] ref [#30999 ](https://github.com/pandas-dev/pandas/issues/30999) - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Files changed: pandas/tests/io/pytables/test_complex.py pandas/tests/io/test_clipboard.py pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/38350
2020-12-08T00:46:57Z
2020-12-08T21:31:51Z
2020-12-08T21:31:51Z
2020-12-08T21:33:42Z
REF: call _ensure_valid_index inside _sanitize_column
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index a1582a57e9a71..e9fb981607a6e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3212,7 +3212,6 @@ def _setitem_frame(self, key, value): self._where(-key, value, inplace=True) def _iset_item(self, loc: int, value): - self...
They are only ever called together.
https://api.github.com/repos/pandas-dev/pandas/pulls/38349
2020-12-07T23:37:43Z
2020-12-08T16:21:01Z
2020-12-08T16:21:01Z
2020-12-08T16:23:13Z
Removed unused strict struct member in tokenizer
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 4b7a47c5f93c2..eae72d700190d 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -161,7 +161,6 @@ cdef extern from "parser/tokenizer.h": char commentchar int allow_embedded_newline - int strict ...
I don't see where this would ever be assigned a value
https://api.github.com/repos/pandas-dev/pandas/pulls/38348
2020-12-07T21:57:04Z
2020-12-08T19:43:14Z
2020-12-08T19:43:14Z
2023-04-12T20:17:01Z
Extend check namespace usage
diff --git a/pandas/tests/api/test_api.py b/pandas/tests/api/test_api.py index 541c2988a0636..561c53c68347b 100644 --- a/pandas/tests/api/test_api.py +++ b/pandas/tests/api/test_api.py @@ -235,9 +235,9 @@ def test_datetime(): with warnings.catch_warnings(): warnings.simplefilter("ignore", FutureWarning)...
- [ ] xref #38093 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` TLDR: This code changes might be not in a mergeable state as false positives remain when updating the pattern. The change is a bit bigger to what is described in #38093 as more files needed to be f...
https://api.github.com/repos/pandas-dev/pandas/pulls/38347
2020-12-07T21:36:39Z
2021-01-04T09:32:19Z
null
2021-01-04T09:32:19Z
PERF: isin casting integers to object
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 9749297efd004..67a0e02fc2d4d 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -440,8 +440,7 @@ def isin(comps: AnyArrayLike, values: AnyArrayLike) -> np.ndarray: if not isinstance( values, (ABCIndexClass, ABC...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref https://github.com/pandas-dev/pandas/pull/38279#issuecomment-739973166 cc @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/38346
2020-12-07T20:52:06Z
2020-12-08T08:41:40Z
2020-12-08T08:41:40Z
2020-12-08T15:45:01Z
TST: revert too-ambitious
diff --git a/pandas/tests/io/pytables/test_store.py b/pandas/tests/io/pytables/test_store.py index f8d283f622d4d..b35414724d946 100644 --- a/pandas/tests/io/pytables/test_store.py +++ b/pandas/tests/io/pytables/test_store.py @@ -1661,7 +1661,9 @@ def check_col(key, name, size): result = store.select("df_...
https://api.github.com/repos/pandas-dev/pandas/pulls/38345
2020-12-07T17:43:50Z
2020-12-07T19:27:33Z
2020-12-07T19:27:33Z
2020-12-07T20:49:53Z
CI: Move sql builds from Travis to Github actions
diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml new file mode 100644 index 0000000000000..5fe7fc17a98cb --- /dev/null +++ b/.github/workflows/database.yml @@ -0,0 +1,180 @@ +name: Database + +on: + push: + branches: [master] + pull_request: + branches: + - master + - 1.2.x...
try to move builds with databases to GitHub actions
https://api.github.com/repos/pandas-dev/pandas/pulls/38344
2020-12-07T16:02:17Z
2020-12-27T21:40:49Z
2020-12-27T21:40:49Z
2022-11-18T02:22:00Z
Backport PR #38318 on branch 1.1.x (DOC: 1.1.5 release date)
diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst index 7164830392f35..9e40e13ea0e13 100644 --- a/doc/source/whatsnew/v1.1.5.rst +++ b/doc/source/whatsnew/v1.1.5.rst @@ -1,7 +1,7 @@ .. _whatsnew_115: -What's new in 1.1.5 (??) ------------------------- +What's new in 1.1.5 (December 07, 202...
Backport PR #38318: DOC: 1.1.5 release date
https://api.github.com/repos/pandas-dev/pandas/pulls/38342
2020-12-07T09:49:02Z
2020-12-07T10:46:09Z
2020-12-07T10:46:09Z
2020-12-07T10:46:09Z
Backport PR #38332 on branch 1.1.x (REGR: Fix Index construction from Sparse["datetime64[ns]"])
diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst index 7164830392f35..cfdeeb61d8f61 100644 --- a/doc/source/whatsnew/v1.1.5.rst +++ b/doc/source/whatsnew/v1.1.5.rst @@ -20,6 +20,7 @@ Fixed regressions - Fixed regression in inplace operations on :class:`Series` with ``ExtensionDtype`` with N...
Backport PR #38332: REGR: Fix Index construction from Sparse["datetime64[ns]"]
https://api.github.com/repos/pandas-dev/pandas/pulls/38341
2020-12-07T09:45:23Z
2020-12-07T10:39:13Z
2020-12-07T10:39:13Z
2020-12-07T10:39:13Z
TYP: pandas/core/missing.py
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 669bfe08d42b0..fb664e4ed657e 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -849,8 +849,8 @@ def dict_compat(d: Dict[Scalar, Scalar]) -> Dict[Scalar, Scalar]: def infer_dtype_from_array( - arr, pandas_dtype: ...
- [ ] 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/38339
2020-12-07T04:44:43Z
2021-03-15T13:42:18Z
null
2021-03-15T13:47:34Z
REF: avoid accessing private iloc methods
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f710660d6ad8e..bba9f7d00d882 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3170,7 +3170,7 @@ def _setitem_slice(self, key: slice, value): # operates on labels and we need to operate positional for # backwards-compat, x...
I'm pretty sure this is made possible by @phofl's recent fix to only call `_align_series` in `_setitem_with_indexer` when `name != "iloc"`
https://api.github.com/repos/pandas-dev/pandas/pulls/38337
2020-12-06T23:08:34Z
2020-12-07T19:27:02Z
2020-12-07T19:27:02Z
2020-12-07T20:54:00Z
rewrite dict as literal in tests/io/parser/test_index_col.py
diff --git a/pandas/tests/io/parser/test_index_col.py b/pandas/tests/io/parser/test_index_col.py index 9c6cad4b41949..d55814a0e9a2d 100644 --- a/pandas/tests/io/parser/test_index_col.py +++ b/pandas/tests/io/parser/test_index_col.py @@ -86,35 +86,39 @@ def test_infer_index_col(all_parsers): @pytest.mark.parametrize( ...
for issue # 38138 rewrite unnecessary dict call as a literal in pandas/tests/io/parser/test_index_col.py Please let me know if anything needs to be amended, changed or fixed. I'm new to contributing. - [ ] issue #38138 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/ma...
https://api.github.com/repos/pandas-dev/pandas/pulls/38336
2020-12-06T23:07:29Z
2020-12-09T10:13:52Z
null
2020-12-09T10:13:53Z
BUG: iloc.__setitem__ with dict value and mixed dtypes
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index d0afc24aaecac..2f2fe93d95fea 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -128,6 +128,7 @@ Interval Indexing ^^^^^^^^ - Bug in inserting many new columns into a :class:`DataFrame` causing incorre...
- [ ] 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/38335
2020-12-06T21:53:13Z
2020-12-12T22:55:13Z
2020-12-12T22:55:13Z
2020-12-13T00:03:40Z
BUG: read_csv not converting to float for python engine with decimal sep, usecols and parse_dates
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 9d1b3eaebdf8b..133872d1d2f78 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -262,6 +262,7 @@ I/O - Bug in :func:`read_csv` interpreting ``NA`` value as comment, when ``NA`` does contain the comment s...
- [x] closes #35873 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry self.columns is alread resticted to usecols, while data is not restricted yet, so we have use the initial column indices
https://api.github.com/repos/pandas-dev/pandas/pulls/38334
2020-12-06T20:52:47Z
2021-01-03T23:26:00Z
2021-01-03T23:26:00Z
2021-01-03T23:28:15Z
Backport PR #38330: REGR: Groupby first/last/nth treats None as an observation
diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst index fbb12cb38448a..7164830392f35 100644 --- a/doc/source/whatsnew/v1.1.5.rst +++ b/doc/source/whatsnew/v1.1.5.rst @@ -27,6 +27,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.fillna` not filling ``NaN`` after other operations ...
Backport PR #38330
https://api.github.com/repos/pandas-dev/pandas/pulls/38333
2020-12-06T19:11:55Z
2020-12-06T20:32:58Z
2020-12-06T20:32:57Z
2020-12-06T20:33:04Z
REGR: Fix Index construction from Sparse["datetime64[ns]"]
diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst index fbb12cb38448a..0ce437a988d71 100644 --- a/doc/source/whatsnew/v1.1.5.rst +++ b/doc/source/whatsnew/v1.1.5.rst @@ -20,6 +20,7 @@ Fixed regressions - Fixed regression in inplace operations on :class:`Series` with ``ExtensionDtype`` with N...
- [ ] closes #35843 - [ ] 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/38332
2020-12-06T18:10:59Z
2020-12-07T09:44:50Z
2020-12-07T09:44:49Z
2020-12-07T09:44:58Z
BUG: first("1M") returning two months when first day is last day of month
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index ac930b3e77785..49ea516b2bfad 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -590,6 +590,7 @@ Datetimelike - Bug in :meth:`Series.isin` with ``datetime64[ns]`` dtype and :meth:`.DatetimeIndex.isin` fa...
- [x] closes #29623 - [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/38331
2020-12-06T18:02:05Z
2020-12-12T23:08:00Z
2020-12-12T23:07:59Z
2020-12-13T15:45:27Z
REGR: Groupby first/last/nth treats None as an observation
diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst index fbb12cb38448a..7164830392f35 100644 --- a/doc/source/whatsnew/v1.1.5.rst +++ b/doc/source/whatsnew/v1.1.5.rst @@ -27,6 +27,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.fillna` not filling ``NaN`` after other operations ...
- [x] closes #38286 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is a regression from 1.0.x to 1.1.x, introduced by #33462. Assuming it doesn't get into the 1.2 rc, not sure if it should go into 1.2 during th...
https://api.github.com/repos/pandas-dev/pandas/pulls/38330
2020-12-06T16:13:18Z
2020-12-06T18:46:41Z
2020-12-06T18:46:41Z
2020-12-07T21:55:13Z
REF/TYP: Rename ABCIndexClass->ABCIndex and use cast
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 67a0e02fc2d4d..aa69f57336f68 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -50,7 +50,7 @@ from pandas.core.dtypes.generic import ( ABCDatetimeArray, ABCExtensionArray, - ABCIndexClass, + ABCIndex, ...
- [ ] 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/38329
2020-12-06T14:10:12Z
2020-12-12T23:05:24Z
2020-12-12T23:05:24Z
2020-12-13T14:05:02Z
CLN: dtypes.cast
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 1ca18bae4e2c4..c5fb20596d7b6 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -1483,7 +1483,7 @@ def infer_dtype(value: object, skipna: bool = True) -> str: return "mixed" -def infer_datetimelike_array(arr: object) -> object: +def in...
https://api.github.com/repos/pandas-dev/pandas/pulls/38327
2020-12-06T03:33:12Z
2020-12-07T13:29:46Z
2020-12-07T13:29:46Z
2020-12-07T15:39:04Z
CLN: use with instead of try finally in `io/stata.py`
diff --git a/pandas/io/stata.py b/pandas/io/stata.py index 6f296d3c8d92f..853a982536d40 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -1912,11 +1912,8 @@ def read_stata( if iterator or chunksize: return reader - try: - data = reader.read() - finally: - reader.close() - ...
This is reported by lgtm.com.
https://api.github.com/repos/pandas-dev/pandas/pulls/38326
2020-12-06T03:08:01Z
2020-12-08T19:44:32Z
2020-12-08T19:44:32Z
2022-11-18T02:21:00Z
BUG: read_csv raising IndexError with multiple header cols, specified index_col and no data rows
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 26e548f519ecd..80e5484c5f324 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -217,6 +217,7 @@ MultiIndex I/O ^^^ +- Bug in :func:`read_csv` raising ``IndexError`` with multiple header columns and `...
- [x] closes #38292 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Parser returned an empty list instead of a list filled with None, which caused the IndexError.
https://api.github.com/repos/pandas-dev/pandas/pulls/38325
2020-12-05T23:43:55Z
2020-12-13T20:01:38Z
2020-12-13T20:01:38Z
2020-12-13T20:02:42Z
BUG: BDay() offsetting not behaving as expected
diff --git a/pandas/tests/tseries/offsets/test_offsets.py b/pandas/tests/tseries/offsets/test_offsets.py index 1ac98247780b7..325a5311829dc 100644 --- a/pandas/tests/tseries/offsets/test_offsets.py +++ b/pandas/tests/tseries/offsets/test_offsets.py @@ -19,11 +19,9 @@ from pandas.compat.numpy import np_datetime64_compa...
- [x] closes #38046 - [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/38324
2020-12-05T22:16:35Z
2020-12-18T23:05:35Z
2020-12-18T23:05:35Z
2020-12-18T23:05:39Z
CLN: Implement multiindex handling for get_op_result_name
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 11b7acc0a9deb..e462cb451d6f1 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2580,7 +2580,6 @@ def __nonzero__(self): # -------------------------------------------------------------------- # Set Operati...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` @jbrockmendel This would solve the inconsistency in ``get_op_result_name`` for MultiIndexes, but adds a bit more complexity here. I think this would allow us to remove the now duplicated...
https://api.github.com/repos/pandas-dev/pandas/pulls/38323
2020-12-05T21:50:19Z
2020-12-11T23:36:34Z
2020-12-11T23:36:34Z
2020-12-11T23:42:58Z
REF: use lighter-weight casting function
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 12974d56dacdc..4627100161b40 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -241,10 +241,6 @@ def maybe_downcast_numeric(result, dtype: DtypeObj, do_round: bool = False): # e.g. SparseDtype has no itemsize a...
https://api.github.com/repos/pandas-dev/pandas/pulls/38322
2020-12-05T21:27:50Z
2020-12-08T18:13:23Z
2020-12-08T18:13:23Z
2020-12-08T18:14:50Z
CLN: remove now-unnecesary coerce_to_dtypes
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 12974d56dacdc..1d22fa4754fad 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -987,36 +987,6 @@ def coerce_indexer_dtype(indexer, categories): return ensure_int64(indexer) -def coerce_to_dtypes(result: Sequenc...
Made unnecessary bc we now operate blockwise, so coercion is handled at a lower level.
https://api.github.com/repos/pandas-dev/pandas/pulls/38321
2020-12-05T21:23:26Z
2020-12-07T13:47:48Z
2020-12-07T13:47:48Z
2020-12-07T15:37:10Z
CLN: fix C408 #38138
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index 77cd603cc6b8d..95470422f2ccd 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -952,7 +952,7 @@ def factorize(self, na_sentinel: int = -1) -> Tuple[np.ndarray, ExtensionArray]: @Substitution(klass="ExtensionArray")...
xref #38138
https://api.github.com/repos/pandas-dev/pandas/pulls/38320
2020-12-05T19:42:07Z
2020-12-07T13:32:02Z
2020-12-07T13:32:02Z
2022-11-18T02:21:03Z
Removed unnecessary dict calls
diff --git a/pandas/tests/io/parser/test_quoting.py b/pandas/tests/io/parser/test_quoting.py index 14773dfbea20e..7a07632390eff 100644 --- a/pandas/tests/io/parser/test_quoting.py +++ b/pandas/tests/io/parser/test_quoting.py @@ -17,12 +17,12 @@ @pytest.mark.parametrize( "kwargs,msg", [ - (dict(quotech...
xref #38138 File modified: pandas/tests/io/parser/test_quoting.py pandas/tests/io/parser/test_usecols.py - [ ] 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/38319
2020-12-05T19:30:38Z
2020-12-07T13:34:34Z
2020-12-07T13:34:34Z
2020-12-07T13:34:34Z
DOC: 1.1.5 release date
diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst index fbb12cb38448a..1b1591ab82304 100644 --- a/doc/source/whatsnew/v1.1.5.rst +++ b/doc/source/whatsnew/v1.1.5.rst @@ -1,7 +1,7 @@ .. _whatsnew_115: -What's new in 1.1.5 (??) ------------------------- +What's new in 1.1.5 (December 07, 202...
https://api.github.com/repos/pandas-dev/pandas/pulls/38318
2020-12-05T17:52:30Z
2020-12-07T09:48:52Z
2020-12-07T09:48:52Z
2020-12-07T09:48:56Z
DEPR: xlwt for writing excel files
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 2b324a74fffaf..965833c013c03 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3200,6 +3200,13 @@ pandas supports writing Excel files to buffer-like objects such as ``StringIO`` Excel writer engines '''''''''...
- [x] closes #26552 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Deprecates both specifying `engine="xlwt"` and the option `io.excel.xls.writer`. Note that a warning is emitted when a user sets the `io.excel.xls.w...
https://api.github.com/repos/pandas-dev/pandas/pulls/38317
2020-12-05T17:04:46Z
2020-12-08T10:11:55Z
2020-12-08T10:11:54Z
2021-01-02T14:15:03Z
API: add EA._from_scalars / stricter casting of result values back to EA dtype
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index ae7e8191fc482..613c0ebfbfc77 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -213,7 +213,7 @@ def _reconstruct_data( if isinstance(values, cls) and values.dtype == dtype: return values - val...
Closes #33254 Closes #31108 This adds a ``ExtensionArray._from_scalars`` function which is more strict than the existing `_from_sequence` constructor: in theory, it should only accept a sequence of scalars of its own type (i.e. the type you get with `arr[0]`, plus NAs), or arrays with the appropriate dtype. Thi...
https://api.github.com/repos/pandas-dev/pandas/pulls/38315
2020-12-05T13:09:44Z
2023-02-22T13:47:25Z
null
2023-02-22T13:47:26Z
REF: simplify casting of scalars to array
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 0a2d4c22f8a4b..6cd8036da1577 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -33,7 +33,7 @@ ints_to_pytimedelta, ) from pandas._libs.tslibs.timezones import tz_compare -from pandas._typing import AnyArrayLike, ...
cast_scalar_to_array is only used in two places, and in each of them there is a better option available.
https://api.github.com/repos/pandas-dev/pandas/pulls/38313
2020-12-05T05:49:53Z
2020-12-07T19:23:24Z
2020-12-07T19:23:24Z
2020-12-07T20:53:24Z
TST: avoid skipping in frame arith test
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index b422f2daadb78..e5ec3c5641bd2 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -835,16 +835,9 @@ def test_frame_with_frame_reindex(self): ) def test_binop_other(self...
- [ ] 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/38310
2020-12-05T04:11:33Z
2020-12-07T13:35:33Z
2020-12-07T13:35:33Z
2020-12-07T15:34:02Z
TST: tighten xfails
diff --git a/pandas/tests/arrays/test_datetimelike.py b/pandas/tests/arrays/test_datetimelike.py index 159f52a4c7c25..c489aa5867632 100644 --- a/pandas/tests/arrays/test_datetimelike.py +++ b/pandas/tests/arrays/test_datetimelike.py @@ -3,7 +3,6 @@ import numpy as np import pytest -import pytz from pandas._libs ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38309
2020-12-05T04:08:30Z
2020-12-05T17:48:43Z
2020-12-05T17:48:42Z
2020-12-05T19:26:16Z
REF: implement Index._get_indexer
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index c0840d8e0d4b0..6ee0b5574226a 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3141,10 +3141,9 @@ def get_loc(self, key, method=None, tolerance=None): def get_indexer( self, target, method=None, limit...
De-duplicate all the boilerplate in Index.get_indexer.
https://api.github.com/repos/pandas-dev/pandas/pulls/38308
2020-12-05T04:03:56Z
2020-12-08T21:13:47Z
2020-12-08T21:13:47Z
2020-12-08T21:17:04Z
TYP: datetimelike
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 66906f8463336..be9864731842d 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -112,8 +112,11 @@ def __init__(self, data, dtype=None, freq=None, copy=False): @classmethod def ...
use np.putmask in a few places, as it is appreciably more performant than `__setitem__`
https://api.github.com/repos/pandas-dev/pandas/pulls/38307
2020-12-05T03:50:01Z
2020-12-07T19:30:58Z
2020-12-07T19:30:58Z
2020-12-12T17:26:25Z
TYP/BUG: fix passing incorrect type to interpolate_1d
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 4a9e020a0fe46..7760db6281ed1 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -7182,6 +7182,7 @@ def interpolate( if method == "linear": # prior default index = np.arange(len(obj.index)) + ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38306
2020-12-05T03:31:29Z
2020-12-07T15:06:49Z
2020-12-07T15:06:49Z
2020-12-07T15:30:20Z
TST: share transform tests
diff --git a/pandas/tests/frame/apply/test_frame_transform.py b/pandas/tests/frame/apply/test_frame_transform.py index f2a66b553b366..db5b2f3d86dfe 100644 --- a/pandas/tests/frame/apply/test_frame_transform.py +++ b/pandas/tests/frame/apply/test_frame_transform.py @@ -10,23 +10,41 @@ from pandas.core.groupby.base impo...
https://api.github.com/repos/pandas-dev/pandas/pulls/38304
2020-12-05T02:30:40Z
2020-12-07T13:37:17Z
2020-12-07T13:37:17Z
2020-12-07T15:31:04Z
BUG: Clean intersection and fix resulting names when MultiIndex are equal
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index c0840d8e0d4b0..111f9a0f7b0d0 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2826,7 +2826,9 @@ def intersection(self, other, sort=False): self._assert_can_do_setop(other) other, _ = self._conver...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Names were wrong when MultiIndexes where equal and unique with different names. Additional cleanups cc @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/38302
2020-12-05T00:19:31Z
2020-12-07T15:08:39Z
2020-12-07T15:08:39Z
2021-12-10T09:23:23Z
BUG: Fix typo in melt value_name futurewarning
diff --git a/pandas/core/reshape/melt.py b/pandas/core/reshape/melt.py index 3c4c42886b396..f49aaee8bbc00 100644 --- a/pandas/core/reshape/melt.py +++ b/pandas/core/reshape/melt.py @@ -42,7 +42,7 @@ def melt( if value_name in frame.columns: warnings.warn( "This dataframe has a column name tha...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Just removing the duplicated 'i' in "resultiing" of the futurewarning in melt about using `value_name` with the same name as a column the in the original dataframe. Filing an issue or a what...
https://api.github.com/repos/pandas-dev/pandas/pulls/38301
2020-12-04T22:57:54Z
2020-12-05T01:57:04Z
2020-12-05T01:57:04Z
2020-12-05T01:57:12Z
New dict call fixings #38138
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index 76b7877b0ac70..77cd603cc6b8d 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -49,7 +49,7 @@ from pandas.core.missing import get_fill_func from pandas.core.sorting import nargminmax, nargsort -_extension_array_shar...
xref #38138 File modified: pandas/core/strings/accesory.py Changed unnecessary dict calls for flake8 (C408) standard: Rewrite dict() as {} - [ ] 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/38298
2020-12-04T21:20:04Z
2020-12-04T23:27:16Z
2020-12-04T23:27:16Z
2020-12-04T23:27:19Z
Backport PR #38272 on branch 1.1.x (BUG: DataFrame.apply with axis=1 and EA dtype)
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index fd7ffd1b54a70..af4717498aa19 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -9,7 +9,12 @@ from pandas._typing import Axis from pandas.util._decorators import cache_readonly -from pandas.core.dtypes.common import is_dict_like, is_list_li...
Backport PR #38272: BUG: DataFrame.apply with axis=1 and EA dtype
https://api.github.com/repos/pandas-dev/pandas/pulls/38295
2020-12-04T19:04:18Z
2020-12-04T20:03:20Z
2020-12-04T20:03:20Z
2020-12-04T20:03:20Z
BUG: read_json does not respect chunksize
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index fe80a3b5d6d0c..0421159593603 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -567,6 +567,7 @@ Performance improvements - Performance improvement in :meth:`DataFrame.groupby` for ``float`` ``dtype`` (:...
- [X] closes #36791 - [X] closes #34548 - [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/38293
2020-12-04T18:37:19Z
2020-12-23T16:32:23Z
2020-12-23T16:32:22Z
2020-12-23T16:32:40Z
ENH: use correct dtype in groupby cython ops when it is known (without try/except)
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 6cd8036da1577..c77991ced3907 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -357,12 +357,18 @@ def maybe_cast_result_dtype(dtype: DtypeObj, how: str) -> DtypeObj: The desired dtype of the result. """ ...
Addresses part of #37494. And xref https://github.com/pandas-dev/pandas/pull/38162/files#r536191377 cc @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/38291
2020-12-04T17:09:05Z
2020-12-08T10:22:11Z
2020-12-08T10:22:11Z
2020-12-08T16:07:35Z