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
BUG: Bug in fillna with method = bfill/ffill and datetime64[ns] dtype (GH6587)
diff --git a/doc/source/release.rst b/doc/source/release.rst index 5c7d090becf83..b161d1f785114 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -225,6 +225,7 @@ Bug Fixes - Bug in indexing: empty list lookup caused ``IndexError`` exceptions (:issue:`6536`, :issue:`6551`) - Series.quantile raising ...
closes #6587
https://api.github.com/repos/pandas-dev/pandas/pulls/6588
2014-03-10T17:16:19Z
2014-03-10T18:14:52Z
2014-03-10T18:14:52Z
2014-07-16T08:57:38Z
CLN: Finish changing assert_(...) to specialized forms
diff --git a/pandas/io/tests/test_parsers.py b/pandas/io/tests/test_parsers.py index 79d96aa8115b0..612840e82e3ff 100644 --- a/pandas/io/tests/test_parsers.py +++ b/pandas/io/tests/test_parsers.py @@ -873,8 +873,7 @@ def test_parse_dates_implicit_first_col(self): """ df = self.read_csv(StringIO(data), parse_d...
Finishes #6175, to the extent that everything remaining can be mapped to assertTrue or assertFalse, unless larger refactorings are desired.
https://api.github.com/repos/pandas-dev/pandas/pulls/6580
2014-03-09T15:41:55Z
2014-03-09T16:05:42Z
2014-03-09T16:05:42Z
2014-06-30T15:30:00Z
BUG: Bug in .xs with a nan in level when dropped (GH6574)
diff --git a/doc/source/release.rst b/doc/source/release.rst index fa1d1bef333d4..267f373a9e534 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -222,6 +222,7 @@ Bug Fixes - Bug in preserving frequency across Timestamp addition/subtraction (:issue:`4547`) - Bug in indexing: empty list lookup caused...
closes #6574
https://api.github.com/repos/pandas-dev/pandas/pulls/6579
2014-03-09T14:46:56Z
2014-03-09T15:15:00Z
2014-03-09T15:15:00Z
2014-06-22T14:52:08Z
FIX raise when groupby selecting cols not in frame
diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py index 031088c4e5672..770c4ae27dbdb 100644 --- a/pandas/core/groupby.py +++ b/pandas/core/groupby.py @@ -2568,15 +2568,27 @@ def __getitem__(self, key): if self._selection is not None: raise Exception('Column(s) %s already selected' % sel...
KeyError part of #5264
https://api.github.com/repos/pandas-dev/pandas/pulls/6578
2014-03-09T09:14:10Z
2014-05-02T12:51:52Z
2014-05-02T12:51:52Z
2014-07-16T08:57:30Z
CLN: Change assert_([not] isinstance(a,b)) to specialized forms
diff --git a/pandas/io/tests/test_packers.py b/pandas/io/tests/test_packers.py index 0bbf81384672e..1386439d51757 100644 --- a/pandas/io/tests/test_packers.py +++ b/pandas/io/tests/test_packers.py @@ -359,7 +359,7 @@ def test_multi(self): l = [self.frame['float'], self.frame['float'] .A, self.fra...
Work on #6175. Changes instances of assert_([not] isinstance(a,b)) to specialized assert[Not]IsInstance(a, b).
https://api.github.com/repos/pandas-dev/pandas/pulls/6577
2014-03-08T15:30:22Z
2014-03-09T14:48:34Z
2014-03-09T14:48:34Z
2014-07-16T08:57:26Z
API: default value for read_excel sheet
diff --git a/doc/source/io.rst b/doc/source/io.rst index ac2cabe009694..f43582ded4473 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -1820,7 +1820,7 @@ a DataFrame. See the :ref:`cookbook<cookbook.excel>` for some advanced strategies Besides ``read_excel`` you can also read Excel files using the ``ExcelF...
closes #6573 Implements a default sheetname of 0 for `read_excel` #6573. Before: `read_excel(io, sheetname, **kwds)` After: `read_excel(io, sheetname=0, **kwds)`
https://api.github.com/repos/pandas-dev/pandas/pulls/6576
2014-03-08T06:23:16Z
2014-03-12T13:12:25Z
2014-03-12T13:12:25Z
2014-06-18T20:59:40Z
ENH: including offset/freq in Timestamp repr (#4553)
diff --git a/doc/source/release.rst b/doc/source/release.rst index b161d1f785114..0e6924e4b0122 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -150,6 +150,7 @@ Improvements to existing features (e.g. MonthEnd,BusinessMonthEnd), (:issue:`6479`) - perf improvements in single-dtyped indexing (:iss...
fixes #4553 Hopefully the `test_repr()` implementation I included was sufficient. I see some `test_repr()` instances in the code that are more minimal - literally just making sure that repr(obj) doesn't blow up. And some which are pretty detailed, which makes me worry they might be a bit fragile. I went more middle-o...
https://api.github.com/repos/pandas-dev/pandas/pulls/6575
2014-03-07T22:19:12Z
2014-03-10T20:01:30Z
2014-03-10T20:01:30Z
2014-06-24T18:38:06Z
FIX use selected_obj rather the obj throughout groupby
diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py index 031088c4e5672..1bdb3973ee92c 100644 --- a/pandas/core/groupby.py +++ b/pandas/core/groupby.py @@ -208,6 +208,8 @@ class GroupBy(PandasObject): Number of groups """ _apply_whitelist = _common_apply_whitelist + _internal_names = ['_c...
fixes many parts of for #5264... Changes lots of `self.obj` to `self._selected_obj`. probably should vbench before merging? cc @jreback @TomAugspurger
https://api.github.com/repos/pandas-dev/pandas/pulls/6570
2014-03-07T18:33:48Z
2014-03-09T19:09:40Z
2014-03-09T19:09:40Z
2014-06-30T09:34:37Z
ENH/BUG groupby nth now filters, works with DataFrames
diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index 4fb8061939fbc..b5c15f83bb9d3 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -738,6 +738,34 @@ This shows the first or last n rows from each group. 1 0 1 2 5 2 5 6 +Taking the nth row of each group +~~~~~~~~~~...
fixes #5552 partial for #5264 ``` In [101]: df = pd.DataFrame([[1, np.nan], [1, 4], [5, 6]], columns=['A', 'B']) In [102]: g = df.groupby('A') In [103]: g.nth(0) Out[103]: A B 0 1 NaN 2 5 6 In [104]: g.nth(1) Out[104]: A B 1 1 4 In [105]: g.nth(-1) Out[105]: A B 1 1 4 2 5 6 In [106]: g.nth...
https://api.github.com/repos/pandas-dev/pandas/pulls/6569
2014-03-07T17:50:43Z
2014-03-07T20:24:22Z
2014-03-07T20:24:22Z
2014-07-03T18:44:46Z
BLD: change wheel url to pandas.pydata.org
diff --git a/ci/install.sh b/ci/install.sh index 0525a8c89ccc3..fc1740857bfd2 100755 --- a/ci/install.sh +++ b/ci/install.sh @@ -35,7 +35,8 @@ pip install -I -U setuptools pip install wheel # comment this line to disable the fetching of wheel files -base_url=http://cache27diy-cpycloud.rhcloud.com +base_url=http://p...
BLD: remove scikit-timeseries from the deps and builds closes #6566
https://api.github.com/repos/pandas-dev/pandas/pulls/6567
2014-03-06T22:01:25Z
2014-03-06T22:41:36Z
2014-03-06T22:41:35Z
2014-06-23T13:11:39Z
BUG: preserve frequency across Timestamp addition/subtraction (#4547)
diff --git a/doc/source/release.rst b/doc/source/release.rst index 183d662f1578d..c273ae11aa1dc 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -218,6 +218,7 @@ Bug Fixes - Bug in ``DataFrame.to_stata`` that lead to data loss in certain cases, and could exported using the wrong data types and mi...
closes #4547 My second PR, on basically the same code. Assuming people agree with my comments on #4547 (that users adding timedeltas that don't match frequencies better know what they are doing), then this would be my submission. I'm also assuming that something is up with Travis and it is not anything I have done -...
https://api.github.com/repos/pandas-dev/pandas/pulls/6560
2014-03-06T00:23:30Z
2014-03-07T00:04:40Z
2014-03-07T00:04:40Z
2014-06-27T01:15:56Z
BUG: Series.quantile raising on an object dtype (GH6555)
diff --git a/doc/source/release.rst b/doc/source/release.rst index 183d662f1578d..03e21a26c9398 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -219,7 +219,7 @@ Bug Fixes wrong data types and missing values (:issue:`6335`) - Inconsistent types in Timestamp addition/subtraction (:issue:`6543`) -...
closes #6555
https://api.github.com/repos/pandas-dev/pandas/pulls/6558
2014-03-05T22:35:59Z
2014-03-06T23:35:30Z
2014-03-06T23:35:30Z
2014-06-16T07:04:38Z
ENH: Allow timestamp and data label to be set when exporting to Stata
diff --git a/doc/source/release.rst b/doc/source/release.rst index 183d662f1578d..192d96884a02b 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -147,6 +147,7 @@ Improvements to existing features - perf improvements in DataFrame construction with certain offsets, by removing faulty caching (e.g. ...
closes #6545 Added code which allows the time stamp and the data label to be set using either StataWriter or to_stata. Also simplified reading these values using StataReader by removing null bytes from the string values read. Added basic test for both. Also fixed one small bug where variables could be stored using ...
https://api.github.com/repos/pandas-dev/pandas/pulls/6553
2014-03-05T13:46:45Z
2014-03-07T00:01:16Z
2014-03-07T00:01:16Z
2014-07-16T08:57:07Z
BUG: fix fancy indexing with empty list
diff --git a/doc/source/release.rst b/doc/source/release.rst index 1819272c59243..9eceb4b767eac 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -207,6 +207,7 @@ Bug Fixes - Bug in ``pd.read_stata`` which would use the wrong data types and missing values (:issue:`6327`) - Bug in ``DataFrame.to_stat...
This should fix #6536. There's a side issue though with loc/ix indexers that somehow discard column names for empty indexers.
https://api.github.com/repos/pandas-dev/pandas/pulls/6551
2014-03-05T12:03:51Z
2014-03-06T23:01:26Z
2014-03-06T23:01:26Z
2014-10-15T13:40:48Z
BUG: Bug in setitem with loc on mixed integer Indexes (GH6546)
diff --git a/doc/source/release.rst b/doc/source/release.rst index f5e2c80289c5c..d84afc66bf9ac 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -200,6 +200,7 @@ Bug Fixes - Regression from 0.13 in the treatmenet of numpy ``datetime64`` non-ns dtypes in Series creation (:issue:`6529`) - ``.names`` ...
closes #6546
https://api.github.com/repos/pandas-dev/pandas/pulls/6548
2014-03-05T00:25:42Z
2014-03-05T01:02:29Z
2014-03-05T01:02:29Z
2014-06-12T11:59:19Z
BUG: Bug in setitem with a duplicate index and an alignable rhs (GH6541)
diff --git a/doc/source/release.rst b/doc/source/release.rst index 29fd5bad16986..f5e2c80289c5c 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -199,6 +199,7 @@ Bug Fixes - Bug that caused _ref_locs corruption when slice indexing across columns axis of a DataFrame (:issue:`6525`) - Regression from...
closes #6541
https://api.github.com/repos/pandas-dev/pandas/pulls/6542
2014-03-04T18:33:03Z
2014-03-04T19:10:20Z
2014-03-04T19:10:20Z
2014-07-11T04:46:38Z
BUG: informative error message with Series ValueError
diff --git a/doc/source/release.rst b/doc/source/release.rst index ae31f1e7fc495..30cb5fb56f96f 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -139,6 +139,7 @@ Improvements to existing features Bug Fixes ~~~~~~~~~ +- Bug in Series ValueError when index doesn't match data (:issue:`6532`) - Bug ...
Fixes issue #6532.
https://api.github.com/repos/pandas-dev/pandas/pulls/6535
2014-03-04T03:51:05Z
2014-03-04T05:51:10Z
2014-03-04T05:51:10Z
2014-06-16T02:20:16Z
API change in groupby head and tail
diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index a88b7332d9b9e..76c4280d8b728 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -707,6 +707,38 @@ can be used as group keys. If so, the order of the levels will be preserved: data.groupby(factor).mean() + +Taking the first rows ...
BUG/API groupby head and tail act like filter, since they dont aggregage fixes column selection Breaking API change to groupby head and tail, these were never aggregated output, so should not have the group labels as the index, it should always filter. (It was a legacy from when this was `g.apply(lambda x: x.head(n))`...
https://api.github.com/repos/pandas-dev/pandas/pulls/6533
2014-03-03T23:54:07Z
2014-03-06T00:21:26Z
2014-03-06T00:21:26Z
2014-06-27T15:35:00Z
BUG/TST: fix several issues with slice bound checking code
diff --git a/doc/source/release.rst b/doc/source/release.rst index f4f376026225e..1819272c59243 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -108,6 +108,9 @@ API Changes - Slicing and advanced/boolean indexing operations on ``Index`` classes will no longer change type of the resulting index (...
This patch removes more of what's left after removing pandas-specific customizations to slice indexing. BUG/TST: `obj.iloc[:,-4:-10]` should return empty slice (because slice.step > 0 and slice.start > slice.stop) There's no way to describe this by setting stop to a value in `[0; len]` interval, it should remain nega...
https://api.github.com/repos/pandas-dev/pandas/pulls/6531
2014-03-03T17:04:55Z
2014-03-05T11:20:16Z
2014-03-05T11:20:16Z
2014-06-12T19:22:01Z
BUG: Regression from 0.13 in the treatment of numpy datetime64 non-ns dtypes in Series creation (GH6429)
diff --git a/doc/source/release.rst b/doc/source/release.rst index 49955ec79e9f3..ae31f1e7fc495 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -195,6 +195,7 @@ Bug Fixes fail (:issue:`6445`). - Bug in multi-axis indexing using ``.loc`` on non-unique indices (:issue:`6504`) - Bug that caused _r...
closes #6529
https://api.github.com/repos/pandas-dev/pandas/pulls/6530
2014-03-03T16:53:04Z
2014-03-03T19:13:31Z
2014-03-03T19:13:31Z
2014-06-27T23:40:56Z
BUG: fix DataFarame column slice indexer
diff --git a/doc/source/release.rst b/doc/source/release.rst index 08bfcbe42ad5b..49955ec79e9f3 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -194,6 +194,7 @@ Bug Fixes - Bug in ``read_html`` tests where redirected invalid URLs would make one test fail (:issue:`6445`). - Bug in multi-axis ind...
The code pulled in in #6123 didn't account for slice indexers which return views, not copies in `take_ref_locs` function. As a result, slice across columns corrupted `_ref_locs` of the parent block (provided `_ref_locs` existed). This PR should fix that. ``` python In [1]: df = pd.DataFrame(np.random.rand(5,3)) In [2...
https://api.github.com/repos/pandas-dev/pandas/pulls/6525
2014-03-03T12:36:45Z
2014-03-03T14:10:37Z
2014-03-03T14:10:37Z
2014-06-14T08:38:16Z
DOC: Add common error message to byte-ordering gotcha.
diff --git a/doc/source/gotchas.rst b/doc/source/gotchas.rst index 97699aa32890d..49d463d07e75e 100644 --- a/doc/source/gotchas.rst +++ b/doc/source/gotchas.rst @@ -533,7 +533,15 @@ parse HTML tables in the top-level pandas io function ``read_html``. Byte-Ordering Issues -------------------- Occasionally you may hav...
A friend of mine got tripped up by [this gotcha](http://pandas.pydata.org/pandas-docs/stable/gotchas.html#byte-ordering-issues). We document it well, but Googling the error message doesn't turn up our documentation, so it took him a lot of digging to get there. This commit adds an example error message that byte-order...
https://api.github.com/repos/pandas-dev/pandas/pulls/6521
2014-03-02T20:32:18Z
2014-03-02T20:53:43Z
2014-03-02T20:53:43Z
2014-06-26T12:43:08Z
[BUG]: Fix ValueError in concat() when at least one Index has duplicates
diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index 65e52e03c43c7..03480ae198345 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -5,6 +5,7 @@ from pandas._libs import lib import pandas as pd +from pandas.core.algorithms import make_d...
- [x] closes #36263 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry If obj_labes Index has duplicates and they are not removed from new_labels before redindexing, they are multiplied. So we would get a way too big in...
https://api.github.com/repos/pandas-dev/pandas/pulls/36290
2020-09-11T15:27:36Z
2020-11-19T19:01:09Z
2020-11-19T19:01:09Z
2020-12-24T15:09:44Z
ENH: support of pandas.DataFrame.hist for datetime data
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index b30e4177270b8..d67e5c1a3fd40 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -165,6 +165,7 @@ Other enhancements - :meth:`DataFrame.applymap` now supports ``na_action`` (:issue:`23803`) - :class:`Ind...
- [x] closes #32590 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry # Update ``` import numpy as np from pandas import DataFrame, to_datetime from datetime import timedelta df = DataFrame( { "a...
https://api.github.com/repos/pandas-dev/pandas/pulls/36287
2020-09-11T10:04:07Z
2020-10-10T23:07:42Z
2020-10-10T23:07:42Z
2020-10-10T23:07:49Z
DOC: Fixed type hints for GroupBy.{any, all}
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 8340f964fb44b..54d52b1e79da3 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -1371,7 +1371,9 @@ def any(self, skipna: bool = True): Returns ------- - bool + Series or ...
The current documentation says the return value of GroupBy.all and GroupBy.any is `bool`. ``` def any(self, skipna: bool = True): """ Return True if any value in the group is truthful, else False. Parameters ---------- skipna : bool, default True Flag ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36284
2020-09-11T07:08:35Z
2020-10-09T01:47:41Z
2020-10-09T01:47:40Z
2020-10-09T01:50:00Z
TST: #31922 assert no segmentation fault with numpy.array.__contains__
diff --git a/pandas/tests/scalar/test_na_scalar.py b/pandas/tests/scalar/test_na_scalar.py index 5c4d7e191d1bb..10d366fe485da 100644 --- a/pandas/tests/scalar/test_na_scalar.py +++ b/pandas/tests/scalar/test_na_scalar.py @@ -305,3 +305,11 @@ def test_pickle_roundtrip_containers(as_frame, values, dtype): s = s....
- [ ] closes #31922 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] new test cases
https://api.github.com/repos/pandas-dev/pandas/pulls/36283
2020-09-11T06:03:39Z
2020-09-19T22:07:25Z
2020-09-19T22:07:24Z
2020-11-19T00:34:52Z
REF: de-duplicate _wrap_joined_index
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 67456096e8681..5d15d33e7e215 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3877,7 +3877,7 @@ def _join_monotonic(self, other, how="left", return_indexers=False): def _wrap_joined_index(self, joined, othe...
https://api.github.com/repos/pandas-dev/pandas/pulls/36282
2020-09-11T02:47:46Z
2020-09-12T20:31:30Z
2020-09-12T20:31:30Z
2020-09-12T20:57:10Z
PERF: CategoricalDtype.__eq__
diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index e321fdd9b3a9b..2e5dc15131e70 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -375,12 +375,30 @@ def __eq__(self, other: Any) -> bool: # but same order is not necessary. There is no distinction be...
Three special cases where we can get better performance 1) categories have different lengths --> never equal 2) categories have different dtypes --> never equal 3) categories are not object-dtype --> can use use get_indexer instead of hashing ``` import pandas as pd import numpy as np dti = pd.date_range("...
https://api.github.com/repos/pandas-dev/pandas/pulls/36280
2020-09-11T01:52:01Z
2020-09-13T12:29:32Z
2020-09-13T12:29:32Z
2020-09-13T15:03:54Z
Concatenating rows with Int64 datatype coerces to object
diff --git a/pandas/tests/reshape/test_concat.py b/pandas/tests/reshape/test_concat.py index 90705f827af25..7d6611722d8b5 100644 --- a/pandas/tests/reshape/test_concat.py +++ b/pandas/tests/reshape/test_concat.py @@ -2918,3 +2918,12 @@ def test_concat_frame_axis0_extension_dtypes(): result = pd.concat([df2, df1], ...
- [x] closes #24768 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Issue was fixed in the past.
https://api.github.com/repos/pandas-dev/pandas/pulls/36278
2020-09-10T21:46:06Z
2020-09-13T23:25:30Z
2020-09-13T23:25:29Z
2020-09-13T23:54:12Z
CLN: typo cleanups
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 569562f5b5037..8155e7e6c074a 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -260,7 +260,7 @@ cdef class IndexEngine: def get_indexer_non_unique(self, targets): """ Return an indexer suitable for taking from a ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36276
2020-09-10T20:50:05Z
2020-09-12T01:00:16Z
2020-09-12T01:00:15Z
2020-09-12T01:00:19Z
REF: implement Categorical._validate_listlike
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 81f9456502bf0..363873be87899 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1716,6 +1716,35 @@ def _box_func(self, i: int): return np.NaN return self.categories[i] ...
I found it really confusing why we used slightly different dtype-comparisons in a bunch of different places (e.g CategoricalIndex.get_indexer vs CategoricalIndex.get_indexer_non_unique). AFAICT It's just a matter of optimizations accruing over time without a helper method to keep them in sync.
https://api.github.com/repos/pandas-dev/pandas/pulls/36274
2020-09-10T18:21:12Z
2020-09-12T21:13:32Z
2020-09-12T21:13:32Z
2020-09-12T21:19:38Z
CI: xfail failing parquet test
diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index 15f9837176315..35a400cba8671 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -8,6 +8,7 @@ import numpy as np import pytest +from pandas.compat import PY38 import pandas.util._test_decorators a...
https://api.github.com/repos/pandas-dev/pandas/pulls/36272
2020-09-10T18:15:21Z
2020-09-11T19:18:24Z
2020-09-11T19:18:24Z
2020-09-15T16:09:48Z
CLN: pandas/io/parsers.py
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 4c619a636f057..b963d5be69b5f 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -421,10 +421,6 @@ def _read(filepath_or_buffer: FilePathOrBuffer, kwds): kwds["encoding"] = encoding compression = kwds.get("compression", "infer") ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Slight clean-up of ``pandas/io/parsers.py``.
https://api.github.com/repos/pandas-dev/pandas/pulls/36269
2020-09-10T16:26:00Z
2020-09-12T20:54:23Z
2020-09-12T20:54:23Z
2020-09-12T20:54:28Z
BUG: fix isin with nans and large arrays
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 8ead78a17e9c2..603cfc38bbbbd 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -30,6 +30,7 @@ Bug fixes - Bug in :meth:`Series.str.startswith` and :meth:`Series.str.endswith` with ``category`` dtype not...
Does a np.isnan if nan is given to isin and we have a large enough array to trigger the `np.in1d` path - [x] closes #22205 - [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/36266
2020-09-10T11:40:06Z
2020-09-19T02:14:26Z
2020-09-19T02:14:25Z
2020-09-24T20:20:07Z
Resample fix dst transition
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 2aac2596c18cb..b04f5964e861e 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -307,6 +307,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrameGroupBy.count` and :meth:`SeriesGroupBy.sum` returning...
Fix bug when resampling with DST transition. - [x] closes #35219 - [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/36264
2020-09-10T07:48:04Z
2020-09-12T21:07:53Z
2020-09-12T21:07:53Z
2020-09-12T21:08:11Z
ENH: consistently cast strings for DTA/TDA/PA.__setitem__
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 00cbb248e4690..119b34afdb69a 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -230,6 +230,8 @@ Datetimelike - Bug in :meth:`DatetimeIndex.get_slice_bound` where ``datetime.date`` objects were not accep...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ATM we cast strings for listlike inputs but not for scalars.
https://api.github.com/repos/pandas-dev/pandas/pulls/36261
2020-09-10T00:59:20Z
2020-09-12T23:24:34Z
2020-09-12T23:24:34Z
2020-09-12T23:41:15Z
CLN: _wrap_applied_output
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index e870187fc7952..1552256468ad2 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1203,16 +1203,27 @@ def _wrap_applied_output(self, keys, values, not_indexed_same=False): values = [x if (x ...
- [ ] 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/36260
2020-09-10T00:25:23Z
2020-09-12T21:12:43Z
2020-09-12T21:12:43Z
2020-09-12T21:15:53Z
de-privatize imported names
diff --git a/pandas/compat/numpy/function.py b/pandas/compat/numpy/function.py index d7a14c28cc9ca..5f627aeade47c 100644 --- a/pandas/compat/numpy/function.py +++ b/pandas/compat/numpy/function.py @@ -21,7 +21,7 @@ from distutils.version import LooseVersion from typing import Any, Dict, Optional, Union -from numpy ...
After this we're down to ~5 i think
https://api.github.com/repos/pandas-dev/pandas/pulls/36259
2020-09-09T23:49:42Z
2020-09-11T20:51:55Z
2020-09-11T20:51:55Z
2020-09-11T21:51:23Z
searchsorted numpy compat for Period dtype
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index bce6a735b7b07..888658eb5ed18 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -228,7 +228,7 @@ Datetimelike - Bug in :class:`DateOffset` where attributes reconstructed from pickle files differ from ori...
- [ ] 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/36254
2020-09-09T19:44:52Z
2020-09-12T21:15:13Z
2020-09-12T21:15:13Z
2020-09-12T21:17:52Z
CLN: simplify Categorical comparisons
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index a2b5b54c55490..fdc77c488e87f 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -80,17 +80,9 @@ def func(self, other): # the same (maybe up to ordering, depending on ordered) ...
We have way too many ways of comparing Categorical dtypes.
https://api.github.com/repos/pandas-dev/pandas/pulls/36250
2020-09-09T17:45:09Z
2020-09-12T21:14:36Z
2020-09-12T21:14:36Z
2020-09-12T21:18:29Z
BUG: na parameter for str.startswith and str.endswith not propagating for Series with categorical dtype
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index e3161012da5d1..c06990e3f2051 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -22,7 +22,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ -- +- Bug in :meth:`Series.str.startswith` and :meth:`Series.str.en...
- [x] closes #36241 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I parametrized dtype in existing tests. Should I create a separate test instead?
https://api.github.com/repos/pandas-dev/pandas/pulls/36249
2020-09-09T16:31:45Z
2020-09-12T21:17:49Z
2020-09-12T21:17:49Z
2020-09-13T12:25:48Z
DOC: Fixed a broken JSON Table Schema link
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 43030d76d945a..bf6575a8836f5 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -2412,7 +2412,7 @@ indicate missing values and the subsequent read cannot distinguish the intent. os.remove('test.json') -.....
Fixed a link to JSON Table Schema specification hosted on https://specs.frictionlessdata.io/table-schema/ - [ ] 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/36246
2020-09-09T14:57:05Z
2020-09-09T15:12:06Z
2020-09-09T15:12:05Z
2020-09-09T15:12:12Z
Backport PR #36183 on branch 1.1.x (DOC: Start 1.1.3)
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 1b5e63dfcf359..33c0750c1dc16 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -16,6 +16,7 @@ Version 1.1 .. toctree:: :maxdepth: 2 + v1.1.3 v1.1.2 v1.1.1 v1.1.0 diff --git a/doc/source/...
Backport PR #36183: DOC: Start 1.1.3
https://api.github.com/repos/pandas-dev/pandas/pulls/36242
2020-09-09T08:32:45Z
2020-09-09T09:28:47Z
2020-09-09T09:28:47Z
2020-09-09T09:28:47Z
PERF: Allow groupby transform with numba engine to be fully parallelizable
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index 5ffda03fad80f..bda3ab71d1a00 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -627,33 +627,42 @@ def time_first(self): class TransformEngine: - def setup(self): + + param_names = ["parall...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry New performance comparison with 10k groups ``` In [1]: df_g = pd.DataFrame({'a': range(10**4), 'b': range(10**4), 'c': range(10**4)}) In [2]: df_g.groupby('a').tran...
https://api.github.com/repos/pandas-dev/pandas/pulls/36240
2020-09-09T04:03:17Z
2020-09-13T13:13:54Z
2020-09-13T13:13:54Z
2020-09-13T17:25:07Z
DOC: Improve Index docstrings
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 8014b16d07b01..67456096e8681 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -195,7 +195,7 @@ def _new_Index(cls, d): class Index(IndexOpsMixin, PandasObject): """ - Immutable ndarray implementing an or...
Index is now described as List instead of Set - [x] closes #36170 - [ ] 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/36239
2020-09-09T03:33:22Z
2020-09-09T22:25:32Z
2020-09-09T22:25:32Z
2020-09-09T22:25:46Z
DOC: Update groupby.rst
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index ddba3dc452e28..f745dab00bab8 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -87,11 +87,9 @@ The mapping can be specified many different ways: * A Python function, to be called on each of ...
The previous description still had a conflict between the column name and index level - [x] closes #16870 - [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/36238
2020-09-09T03:09:02Z
2020-09-11T16:47:14Z
2020-09-11T16:47:14Z
2020-09-11T16:47:21Z
CLN: simplify Categorical comparisons
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index a2b5b54c55490..0209ef5046645 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -63,6 +63,7 @@ def _cat_compare_op(op): opname = f"__{op.__name__}__" + fill_value = True if op is op...
Not as much as I had hoped, but not nothing.
https://api.github.com/repos/pandas-dev/pandas/pulls/36237
2020-09-09T02:47:03Z
2020-09-11T13:12:12Z
2020-09-11T13:12:12Z
2020-09-11T14:34:57Z
TST: add test case for sort_index on multiindexed Frame with sparse cols
diff --git a/pandas/tests/frame/methods/test_sort_index.py b/pandas/tests/frame/methods/test_sort_index.py index dcc33428d18a5..a106702aff807 100644 --- a/pandas/tests/frame/methods/test_sort_index.py +++ b/pandas/tests/frame/methods/test_sort_index.py @@ -739,3 +739,18 @@ def test_changes_length_raises(self): ...
- [ ] closes #29735 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] add test case for sort_index on multiindexed Frame with sparse cols
https://api.github.com/repos/pandas-dev/pandas/pulls/36236
2020-09-09T00:33:24Z
2020-09-12T21:23:21Z
2020-09-12T21:23:21Z
2020-09-12T21:23:25Z
STY: De-privatize imported names
diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index 931ad8326c371..f8bcbcfb158b5 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -46,7 +46,7 @@ from pandas._libs.tslibs.util cimport ( is_timedelta64_object, ) -_VALID_CLOSED = frozenset(['left', 'right', 'both', 'ne...
Getting close to the end on these.
https://api.github.com/repos/pandas-dev/pandas/pulls/36235
2020-09-08T23:38:09Z
2020-09-09T01:33:42Z
2020-09-09T01:33:42Z
2020-09-09T01:58:31Z
REF: pass setitem to unbox_scalar to de-duplicate validation
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index ba5bfc108f16b..bb40cf78ea006 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -183,7 +183,7 @@ def _rebox_native(cls, value: int) -> Union[int, np.datetime64, np.timedelta64]: "...
Also fixes a test that is failing on master because _np_version_under_118 is no longer defined.
https://api.github.com/repos/pandas-dev/pandas/pulls/36234
2020-09-08T23:34:30Z
2020-09-09T00:55:22Z
2020-09-09T00:55:22Z
2020-09-09T00:58:12Z
BUG: Fix unintentionally added suffix in DataFrame.apply/agg and Series.apply/agg
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 2457d00eb2173..d789518f93f6d 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :meth:`Dat...
- [x] closes #36189 - [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/36231
2020-09-08T21:26:39Z
2020-09-13T15:53:38Z
2020-09-13T15:53:38Z
2020-09-14T09:54:41Z
CLN: re-use invalid_comparison in Categorical comparisons
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index b732db4c66003..e0cec7a3270e7 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -119,15 +119,7 @@ def func(self, other): ret[mask] = False return ret ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36229
2020-09-08T21:12:00Z
2020-09-08T22:53:04Z
2020-09-08T22:53:04Z
2020-09-08T23:10:03Z
Change default of float_precision for read_csv and read_table to "high"
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index bce6a735b7b07..ee53b83c1764c 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -96,6 +96,19 @@ For example: buffer = io.BytesIO() data.to_csv(buffer, mode="w+b", encoding="utf-8", compression="gz...
- [x] closes #17154 - [x] tests added / passed - modified `tests/io/parser/test_c_parser.py` to make sure all 4 options are tested - added `tests/io/parser/test_c_parser.py:test_high_is_default` - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew e...
https://api.github.com/repos/pandas-dev/pandas/pulls/36228
2020-09-08T19:35:57Z
2020-09-13T22:54:42Z
2020-09-13T22:54:41Z
2020-09-18T11:35:31Z
BUG: GH36212 DataFrame agg() raises error when DataFrame column name is `name`
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index bce6a735b7b07..fdc7a5b796685 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -323,6 +323,7 @@ Reshaping - Bug in :meth:`DataFrame.pivot_table` with ``aggfunc='count'`` or ``aggfunc='sum'`` returning `...
- [x] closes #36212 - [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/36224
2020-09-08T17:07:18Z
2020-09-13T13:15:08Z
2020-09-13T13:15:07Z
2020-09-13T13:15:12Z
CLN: w3 formatting
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 023557dd6494d..b27a4e036e137 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -327,7 +327,7 @@ def format_attr(pair): colspan = col_lengths.get((r, c), 0) if colspan > 1: ...
- [x] closes #35706 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Cleans a very minor formatting error to be consistent with w3schools specification. `colspan=2 ---> colspan="2"` Note this generally has no effect in browsers parsing HTML.
https://api.github.com/repos/pandas-dev/pandas/pulls/36223
2020-09-08T16:14:42Z
2020-09-08T23:56:47Z
2020-09-08T23:56:47Z
2020-09-09T05:11:04Z
CLN remove trailing commas
diff --git a/pandas/tests/io/pytables/test_timezones.py b/pandas/tests/io/pytables/test_timezones.py index 38d32b0bdc8a3..1c29928991cde 100644 --- a/pandas/tests/io/pytables/test_timezones.py +++ b/pandas/tests/io/pytables/test_timezones.py @@ -110,7 +110,7 @@ def test_append_with_timezones_dateutil(setup_path): ...
#35925 From this set of 10 files, only the first 3 needed changes to comply if the new version of black: - [x] pandas/tests/io/pytables/test_timezones.py - [x] pandas/tests/io/test_feather.py - [x] pandas/tests/io/test_s3.py - [ ] pandas/tests/io/test_sql.py - [ ] pandas/tests/io/test_stata.py - [ ] pandas/tes...
https://api.github.com/repos/pandas-dev/pandas/pulls/36222
2020-09-08T14:10:59Z
2020-09-08T15:28:22Z
2020-09-08T15:28:22Z
2020-09-08T15:28:25Z
Backport PR #36141 on branch 1.1.x (BUG: copying series into empty dataframe does not preserve dataframe index name)
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index a214ad9762733..c6a08f4fb852a 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -43,6 +43,7 @@ Bug fixes - Bug in :class:`DataFrame` indexing returning an incorrect :class:`Series` in some cases when the...
Backport PR #36141: BUG: copying series into empty dataframe does not preserve dataframe index name
https://api.github.com/repos/pandas-dev/pandas/pulls/36221
2020-09-08T14:06:41Z
2020-09-08T14:55:07Z
2020-09-08T14:55:07Z
2020-09-08T14:55:08Z
TST: skip test_groupby_rolling_index_changed on 32bit
diff --git a/pandas/tests/window/test_grouper.py b/pandas/tests/window/test_grouper.py index 97f3e50edf211..806c22c60b48f 100644 --- a/pandas/tests/window/test_grouper.py +++ b/pandas/tests/window/test_grouper.py @@ -384,6 +384,7 @@ def test_groupby_subset_rolling_subset_with_closed(self): ) tm.assert...
this is against 1.1.x directly. see https://github.com/pandas-dev/pandas/issues/35831#issuecomment-688862692
https://api.github.com/repos/pandas-dev/pandas/pulls/36220
2020-09-08T13:32:35Z
2020-09-08T14:20:27Z
2020-09-08T14:20:27Z
2020-09-08T14:22:22Z
REF: eliminate method _write() in json writers
diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py index 3cf3c2e7fd91d..288bc0adc5162 100644 --- a/pandas/io/json/_json.py +++ b/pandas/io/json/_json.py @@ -1,15 +1,21 @@ +from abc import ABC, abstractmethod from collections import abc import functools from io import BytesIO, StringIO from itertools imp...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Attempted to figure out what is wrong with the issue https://github.com/pandas-dev/pandas/issues/36211. I noticed that the private methods ``_write`...
https://api.github.com/repos/pandas-dev/pandas/pulls/36218
2020-09-08T12:09:13Z
2020-10-22T19:36:59Z
2020-10-22T19:36:59Z
2020-11-06T15:35:25Z
Backport PR #36182 on branch 1.1.x (DOC: release date for 1.1.2)
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index 0e4a88f3ee56b..a214ad9762733 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -1,7 +1,7 @@ .. _whatsnew_112: -What's new in 1.1.2 (??) ------------------------- +What's new in 1.1.2 (September 8, 202...
Backport PR #36182: DOC: release date for 1.1.2
https://api.github.com/repos/pandas-dev/pandas/pulls/36217
2020-09-08T11:50:25Z
2020-09-08T12:34:57Z
2020-09-08T12:34:57Z
2020-09-08T12:34:57Z
Backport PR #36205 on branch 1.1.x (DOC: doc fix)
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index 28ce49c11b3f0..331650b7073f5 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -51,7 +51,7 @@ Bug fixes Other ~~~~~ - :meth:`factorize` now supports ``na_sentinel=None`` to include NaN in the uniques ...
Backport PR #36205: DOC: doc fix
https://api.github.com/repos/pandas-dev/pandas/pulls/36215
2020-09-08T10:22:30Z
2020-09-08T11:05:52Z
2020-09-08T11:05:52Z
2020-09-08T11:05:52Z
Backport PR #36208 on branch 1.1.x (BUG: GroupbyRolling with an empty frame)
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index 28ce49c11b3f0..f13d38d1f8f76 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -24,7 +24,7 @@ Fixed regressions - Fix regression in pickle roundtrip of the ``closed`` attribute of :class:`IntervalIndex`...
Backport PR #36208: BUG: GroupbyRolling with an empty frame
https://api.github.com/repos/pandas-dev/pandas/pulls/36213
2020-09-08T09:53:16Z
2020-09-08T10:49:23Z
2020-09-08T10:49:23Z
2020-09-08T10:49:23Z
REF: share more EA methods
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index 8b79f8ce66756..e9d8671b69c78 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -6,7 +6,7 @@ from pandas.errors import AbstractMethodError from pandas.util._decorators import cache_readonly, doc -from pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/36209
2020-09-08T02:37:54Z
2020-09-11T13:04:38Z
2020-09-11T13:04:38Z
2020-09-11T14:36:10Z
BUG: GroupbyRolling with an empty frame
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index 28ce49c11b3f0..f13d38d1f8f76 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -24,7 +24,7 @@ Fixed regressions - Fix regression in pickle roundtrip of the ``closed`` attribute of :class:`IntervalIndex`...
- [x] closes #36197 - [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/36208
2020-09-08T02:01:13Z
2020-09-08T09:51:21Z
2020-09-08T09:51:21Z
2020-11-12T05:15:26Z
Fixed pandas.json_normalize doctests errors
diff --git a/pandas/io/json/_normalize.py b/pandas/io/json/_normalize.py index 2e1fc57e88ed1..3ed0b5851b395 100644 --- a/pandas/io/json/_normalize.py +++ b/pandas/io/json/_normalize.py @@ -163,11 +163,11 @@ def _json_normalize( >>> data = [{'id': 1, 'name': {'first': 'Coleen', 'last': 'Volk'}}, ... {'...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] Changed `pandas.` to `pd.` in the docstring of `pandas.json_normalize`. Fixed the expected results.
https://api.github.com/repos/pandas-dev/pandas/pulls/36207
2020-09-08T01:52:16Z
2020-09-08T13:01:44Z
2020-09-08T13:01:43Z
2020-09-08T23:15:16Z
REF: implement Categorical._box_func, make _box_func a method
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index b732db4c66003..f20d3d5e316f8 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1734,6 +1734,11 @@ def _ndarray(self) -> np.ndarray: def _from_backing_data(self, arr: np.ndarray) -> "Cat...
Defining `_box_func` on `Categorical` is to facilitate more code sharing with datetimelike. Also there are a bunch of places that do something _similar_ but slightly different that I want to standardize within `Categorical`. Changing `_box_func` from a property-lambda to a method on the datetimelike arrays gives a ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36206
2020-09-08T00:50:57Z
2020-09-08T22:24:55Z
2020-09-08T22:24:55Z
2020-09-08T23:10:51Z
DOC: doc fix
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index 28ce49c11b3f0..331650b7073f5 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -51,7 +51,7 @@ Bug fixes Other ~~~~~ - :meth:`factorize` now supports ``na_sentinel=None`` to include NaN in the uniques ...
https://github.com/pandas-dev/pandas/issues/35831#issuecomment-688518465
https://api.github.com/repos/pandas-dev/pandas/pulls/36205
2020-09-07T22:06:54Z
2020-09-08T10:22:20Z
2020-09-08T10:22:20Z
2020-09-08T10:23:17Z
Backport PR #36152 on branch 1.1.x (Fix compressed multiindex for output of groupby.rolling)
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index e9cba3de56920..28ce49c11b3f0 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -23,6 +23,7 @@ Fixed regressions - Regression in :meth:`DataFrame.replace` where a ``TypeError`` would be raised when attem...
Backport PR #36152: Fix compressed multiindex for output of groupby.rolling
https://api.github.com/repos/pandas-dev/pandas/pulls/36203
2020-09-07T21:13:12Z
2020-09-07T22:10:03Z
2020-09-07T22:10:03Z
2020-09-07T22:10:03Z
TST: DataFrame.replace: TypeError: Cannot compare types 'ndarray(dtype=int64)' and 'unicode'
diff --git a/pandas/tests/frame/methods/test_replace.py b/pandas/tests/frame/methods/test_replace.py index ea2488dfc0877..a77753ed9f9d0 100644 --- a/pandas/tests/frame/methods/test_replace.py +++ b/pandas/tests/frame/methods/test_replace.py @@ -1599,3 +1599,11 @@ def test_replace_intervals(self): result = df.r...
- [x] closes #16784 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Thanks @jbrockmendel for fixing my related issue
https://api.github.com/repos/pandas-dev/pandas/pulls/36202
2020-09-07T19:54:48Z
2020-09-07T21:11:30Z
2020-09-07T21:11:29Z
2020-09-07T21:13:36Z
Backport PR #36191 on branch 1.1.x (TST: update test_series_factorize_na_sentinel_none for 32bit)
diff --git a/pandas/tests/base/test_factorize.py b/pandas/tests/base/test_factorize.py index 9fad9856d53cc..f8cbadb987d29 100644 --- a/pandas/tests/base/test_factorize.py +++ b/pandas/tests/base/test_factorize.py @@ -34,7 +34,7 @@ def test_series_factorize_na_sentinel_none(): ser = pd.Series(values) codes, un...
Backport PR #36191: TST: update test_series_factorize_na_sentinel_none for 32bit
https://api.github.com/repos/pandas-dev/pandas/pulls/36200
2020-09-07T19:41:11Z
2020-09-07T20:35:06Z
2020-09-07T20:35:06Z
2020-09-07T20:35:07Z
Backport PR #36134: BUG: shows correct package name when import_optional_dependency is ca…
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index 8a4574af8f6a9..e9cba3de56920 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -41,6 +41,7 @@ Bug fixes - Bug in :meth:`Series.dt.isocalendar` and :meth:`DatetimeIndex.isocalendar` that returned incorre...
xref #36134
https://api.github.com/repos/pandas-dev/pandas/pulls/36199
2020-09-07T19:30:17Z
2020-09-07T20:35:19Z
2020-09-07T20:35:19Z
2020-09-07T20:51:23Z
CLN: remove unused return value in _create_blocks
diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index 9466ada3f4578..5a7482076903c 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -234,7 +234,7 @@ def _validate_get_window_bounds_signature(window: BaseIndexer) -> None: f"get_window_bounds" ...
The blocks are made unnecessary by the recent changes to use BlockManager.apply
https://api.github.com/repos/pandas-dev/pandas/pulls/36196
2020-09-07T17:38:01Z
2020-09-08T15:29:03Z
2020-09-08T15:29:03Z
2020-09-08T15:31:24Z
pandas docs json_normalize example
diff --git a/pandas/io/json/_normalize.py b/pandas/io/json/_normalize.py index 44765dbe74b46..2e1fc57e88ed1 100644 --- a/pandas/io/json/_normalize.py +++ b/pandas/io/json/_normalize.py @@ -176,7 +176,7 @@ def _json_normalize( ... 'fitness': {'height': 130, 'weight': 60}}, ... {'id': 2, 'name'...
- [x] closes #36184 - [x] Inserted " pandas. " preceding the json_normalize() method in the example cells where it was missing. Documentation Location : [https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.json_normalize.html](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.json_norma...
https://api.github.com/repos/pandas-dev/pandas/pulls/36194
2020-09-07T16:00:38Z
2020-09-08T00:30:20Z
2020-09-08T00:30:20Z
2020-09-08T03:37:02Z
CLN: remove unnecessary trailing commas on issues #35925
diff --git a/pandas/tests/arrays/categorical/test_replace.py b/pandas/tests/arrays/categorical/test_replace.py index b9ac3ce9a37ae..8b784fde1d3c5 100644 --- a/pandas/tests/arrays/categorical/test_replace.py +++ b/pandas/tests/arrays/categorical/test_replace.py @@ -43,9 +43,5 @@ def test_replace(to_replace, value, expec...
#35925 - pandas/tests/arrays/categorical/test_replace.py - pandas/tests/arrays/sparse/test_array.py - pandas/tests/arrays/test_array.py - pandas/tests/arrays/test_timedeltas.py - pandas/tests/base/test_conversion.py - pandas/tests/dtypes/test_missing.py - pandas/tests/extension/base/methods.py - pandas/tests/...
https://api.github.com/repos/pandas-dev/pandas/pulls/36193
2020-09-07T15:40:32Z
2020-09-09T13:24:15Z
2020-09-09T13:24:15Z
2020-09-09T13:24:19Z
TST: test_datetime64_factorize on 32bit
diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index ec7413514d430..a2c2ae22a0b62 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -256,7 +256,7 @@ def test_datetime64_factorize(self, writable): # GH35650 Verify whether read-only datetime64 array can be factoriz...
- [ ] closes #35921 - [ ] 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/36192
2020-09-07T12:16:13Z
2020-09-07T19:05:51Z
2020-09-07T19:05:51Z
2020-09-07T19:07:35Z
TST: update test_series_factorize_na_sentinel_none for 32bit
diff --git a/pandas/tests/base/test_factorize.py b/pandas/tests/base/test_factorize.py index 9fad9856d53cc..f8cbadb987d29 100644 --- a/pandas/tests/base/test_factorize.py +++ b/pandas/tests/base/test_factorize.py @@ -34,7 +34,7 @@ def test_series_factorize_na_sentinel_none(): ser = pd.Series(values) codes, un...
xref https://github.com/pandas-dev/pandas/issues/35831#issuecomment-688163069 (I've not tested this locally, after backport can retrigger https://github.com/MacPython/pandas-wheels/pull/97 to check)
https://api.github.com/repos/pandas-dev/pandas/pulls/36191
2020-09-07T12:11:14Z
2020-09-07T19:39:16Z
2020-09-07T19:39:16Z
2020-09-07T19:41:30Z
Backport PR #35882 on branch 1.1.x (BUG: item_cache invalidation in get_numeric_data)
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index a0e57eb1729e1..8a4574af8f6a9 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -40,6 +40,7 @@ Bug fixes - Bug in :class:`Series` constructor incorrectly raising a ``TypeError`` when passed an ordered se...
Backport PR #35882: BUG: item_cache invalidation in get_numeric_data
https://api.github.com/repos/pandas-dev/pandas/pulls/36188
2020-09-07T11:34:34Z
2020-09-07T19:06:15Z
2020-09-07T19:06:15Z
2020-09-07T19:06:15Z
DOC: move release note for #36155
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index da261907565a1..e9cba3de56920 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -50,6 +50,7 @@ Bug fixes Other ~~~~~ - :meth:`factorize` now supports ``na_sentinel=None`` to include NaN in the uniques ...
xref https://github.com/pandas-dev/pandas/pull/36155#issuecomment-687846461 does not need backport. release note already in 1.1.2 on backport branch
https://api.github.com/repos/pandas-dev/pandas/pulls/36187
2020-09-07T11:28:54Z
2020-09-07T19:41:43Z
2020-09-07T19:41:42Z
2020-09-07T19:44:44Z
BUG: pandas.DataFrame().stack() raise an error, while expected is empty
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 6f046d3a9379d..f9e348b04e318 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -727,6 +727,8 @@ Reshaping - Bug in :meth:`DataFrame.pivot_table` with ``aggfunc='count'`` or ``aggfunc='sum'`` returning `...
- [ ] closes #36113 - [ ] 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/36185
2020-09-07T10:07:24Z
2020-11-26T15:54:44Z
2020-11-26T15:54:44Z
2020-11-27T07:29:39Z
DOC: Start 1.1.3
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 1827d151579a1..933ed3cb8babf 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -24,6 +24,7 @@ Version 1.1 .. toctree:: :maxdepth: 2 + v1.1.3 v1.1.2 v1.1.1 v1.1.0 diff --git a/doc/source/...
pr for tomorrow
https://api.github.com/repos/pandas-dev/pandas/pulls/36183
2020-09-07T09:10:51Z
2020-09-08T22:43:53Z
2020-09-08T22:43:53Z
2020-09-09T08:37:11Z
DOC: release date for 1.1.2
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index 0e4a88f3ee56b..a214ad9762733 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -1,7 +1,7 @@ .. _whatsnew_112: -What's new in 1.1.2 (??) ------------------------- +What's new in 1.1.2 (September 8, 202...
pr for tomorrow
https://api.github.com/repos/pandas-dev/pandas/pulls/36182
2020-09-07T09:03:18Z
2020-09-08T11:50:14Z
2020-09-08T11:50:14Z
2020-09-09T08:46:02Z
REF: use _validate_foo pattern in Categorical
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 02305479bef67..228e630f95863 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1192,6 +1192,26 @@ def map(self, mapper): __le__ = _cat_compare_op(operator.le) __ge__ = _cat_compare...
Similar to how we did it in datetimelike, eventually these validator methods are going to end up sharing most of their code
https://api.github.com/repos/pandas-dev/pandas/pulls/36181
2020-09-07T02:57:23Z
2020-09-07T19:56:19Z
2020-09-07T19:56:18Z
2020-09-07T20:10:41Z
REF: implement Categorical._validate_setitem_value
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 58847528d2183..b732db4c66003 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -9,7 +9,7 @@ from pandas._config import get_option -from pandas._libs import NaT, algos as libalgos, hashta...
Moving towards sharing more methods
https://api.github.com/repos/pandas-dev/pandas/pulls/36180
2020-09-07T02:28:46Z
2020-09-07T22:41:00Z
2020-09-07T22:41:00Z
2020-09-08T00:12:46Z
DEPR: string indexing along index for datetimes
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 32f0cac3f81e2..868bf5a1672ff 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -579,7 +579,12 @@ This type of slicing will work on a ``DataFrame`` with a ``DatetimeIndex`` as we ...
- [x] closes #31476 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Let's get ourselves one less special case to worry about
https://api.github.com/repos/pandas-dev/pandas/pulls/36179
2020-09-07T02:21:18Z
2020-09-24T19:57:39Z
2020-09-24T19:57:39Z
2020-09-27T01:04:33Z
STY: de-privatize names imported across modules
diff --git a/pandas/__init__.py b/pandas/__init__.py index 2737bcd8f9ccf..70bb0c8a2cb51 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -20,9 +20,9 @@ # numpy compat from pandas.compat.numpy import ( - _np_version_under1p17, - _np_version_under1p18, - _is_numpy_dev, + np_version_under1p17 as...
getting close to the end of this and enabling a code_check
https://api.github.com/repos/pandas-dev/pandas/pulls/36178
2020-09-07T00:02:21Z
2020-09-08T22:41:30Z
2020-09-08T22:41:30Z
2020-09-08T23:04:44Z
Move sort index to generic
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 56dc5e54e1d59..bc0e55195fb3e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -143,7 +143,6 @@ ) from pandas.core.reshape.melt import melt from pandas.core.series import Series -from pandas.core.sorting import ensure_key_mapped from pan...
- [x] closes #8283 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/36177
2020-09-06T23:57:53Z
2020-09-15T02:11:48Z
2020-09-15T02:11:48Z
2020-09-15T15:14:21Z
COMPAT: match numpy behavior for searchsorted on dt64/td64
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index ccaae9f996425..2afa1f1a6199e 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -228,6 +228,7 @@ Datetimelike - Bug in :class:`DateOffset` where attributes reconstructed from pickle files differ from ori...
- [x] closes #29884 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Should whatsnew be considered a bug or breaking change?
https://api.github.com/repos/pandas-dev/pandas/pulls/36176
2020-09-06T23:14:17Z
2020-09-08T00:15:52Z
2020-09-08T00:15:51Z
2020-09-08T00:17:02Z
BUG: read_excel for ods files raising UnboundLocalError in certain cases
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 2aac2596c18cb..b4289973a26cd 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -296,6 +296,7 @@ I/O - :meth:`to_csv` did not support zip compression for binary file object not having a filename (:issue:...
- [x] closes #36122 - [x] closes #35802 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Need some guidance on tests here. Do we need tests for other file formats here as well? Also unsure about naming conventions. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36175
2020-09-06T22:58:37Z
2020-09-13T22:57:45Z
2020-09-13T22:57:45Z
2021-01-05T09:37:02Z
BUG: Ensure read_spss accepts pathlib Paths (GH33666)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 2457d00eb2173..c03a7244a6f0e 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -25,6 +25,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- Bug in :func:`read_spss` where passing a ``pathlib.Path`` as ``p...
- [x] closes #33666 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Wrapped the `path` passed into `pandas.io.spss.read_spss` in a `pandas.io.common.stringify_path` call prior to passing it to `pyreadstat.read_sav`. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36174
2020-09-06T21:28:24Z
2020-09-13T20:29:42Z
2020-09-13T20:29:42Z
2020-09-13T20:33:16Z
REF: collect methods by topic
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 228e630f95863..58847528d2183 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -393,56 +393,6 @@ def __init__( self._dtype = self._dtype.update_dtype(dtype) self._codes = co...
https://api.github.com/repos/pandas-dev/pandas/pulls/36173
2020-09-06T21:13:10Z
2020-09-07T21:43:13Z
2020-09-07T21:43:12Z
2020-09-07T21:47:37Z
DTA/TDA/PA use self._data instead of self.asi8 for self._ndarray
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index a5b8032974fa4..a218745db0a44 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -27,7 +27,7 @@ from pandas.compat import set_function_name from pandas.compat.numpy import function as nv ...
This in turn will let us share more methods with the parent class, at the cost of re-shuffling where we do some of the view-casting.
https://api.github.com/repos/pandas-dev/pandas/pulls/36171
2020-09-06T20:26:35Z
2020-09-07T20:46:34Z
2020-09-07T20:46:34Z
2020-09-07T21:51:02Z
Comma cleanup
diff --git a/pandas/tests/indexing/test_iloc.py b/pandas/tests/indexing/test_iloc.py index 4fae01ec710fd..bfb62835add93 100644 --- a/pandas/tests/indexing/test_iloc.py +++ b/pandas/tests/indexing/test_iloc.py @@ -56,7 +56,7 @@ def test_is_scalar_access(self): assert ser.iloc._is_scalar_access((1,)) ...
- [x] pandas/tests/indexing/test_iloc.py - [x] pandas/tests/indexing/test_indexing.py - [x] pandas/tests/indexing/test_loc.py - [x] pandas/tests/internals/test_internals.py - [x] pandas/tests/io/formats/test_css.py - [x] pandas/tests/io/formats/test_info.py - [x] pandas/tests/io/json/test_compression.py - [x] pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/36168
2020-09-06T17:10:01Z
2020-09-07T19:04:43Z
2020-09-07T19:04:43Z
2020-09-07T19:04:48Z
Backport PR #35979 on branch 1.1.x (BUG: Respect errors="ignore" during extension astype)
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index dea3cb6f567ac..1c3258db28698 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -33,6 +33,7 @@ Bug fixes - Bug in :meth:`DataFrame.eval` with ``object`` dtype column binary operations (:issue:`35794`) -...
Backport PR #35979: BUG: Respect errors="ignore" during extension astype
https://api.github.com/repos/pandas-dev/pandas/pulls/36167
2020-09-06T17:07:33Z
2020-09-06T18:06:24Z
2020-09-06T18:06:24Z
2020-09-06T18:06:24Z
Backport PR #36115 on branch 1.1.x (REGR: append tz-aware DataFrame with tz-naive values)
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index dea3cb6f567ac..0d3c0b203a10d 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -16,6 +16,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Regression in :meth:`DatetimeIndex.intersection` incorrectly raising ...
Backport PR #36115: REGR: append tz-aware DataFrame with tz-naive values
https://api.github.com/repos/pandas-dev/pandas/pulls/36166
2020-09-06T17:05:57Z
2020-09-06T18:07:55Z
2020-09-06T18:07:55Z
2020-09-06T18:07:56Z
TST verify groupby doesn't alter unit64s to floats #30859
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index e0196df7ceac0..69397228dd941 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -1183,6 +1183,18 @@ def test_groupby_dtype_inference_empty(): tm.assert_frame_equal(result, exp...
- [x] closes #30859 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Logic of the test is to check that the value hasn't changes and that the dtype remains uint64.
https://api.github.com/repos/pandas-dev/pandas/pulls/36164
2020-09-06T14:12:04Z
2020-09-07T20:47:40Z
2020-09-07T20:47:40Z
2020-09-07T20:47:44Z
Backport PR #35914 on branch 1.1.x (Make MultiIndex.get_loc raise for unhashable type)
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index d1a66256454ca..0fa5dd30f8cd9 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -17,6 +17,7 @@ Fixed regressions - Regression in :meth:`DatetimeIndex.intersection` incorrectly raising ``AssertionError`` ...
Backport PR #35914: Make MultiIndex.get_loc raise for unhashable type
https://api.github.com/repos/pandas-dev/pandas/pulls/36163
2020-09-06T13:01:29Z
2020-09-06T15:13:33Z
2020-09-06T15:13:33Z
2020-09-06T15:13:33Z
Backport PR #36054 on branch 1.1.x (BUG: Don't raise when constructing Series from ordered set)
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index d1a66256454ca..5bb0e1376fceb 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -34,6 +34,7 @@ Bug fixes - Bug in :meth:`DataFrame.apply` with ``result_type="reduce"`` returning with incorrect index (:is...
Backport PR #36054: BUG: Don't raise when constructing Series from ordered set
https://api.github.com/repos/pandas-dev/pandas/pulls/36162
2020-09-06T12:59:34Z
2020-09-06T15:13:54Z
2020-09-06T15:13:54Z
2020-09-06T15:13:55Z
BUG: Enable Series.equals to compare numpy arrays to scalars
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index bce6a735b7b07..81577d1c0205d 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -247,6 +247,7 @@ Numeric ^^^^^^^ - Bug in :func:`to_numeric` where float precision was incorrect (:issue:`31364`) - Bug i...
- [x] closes #35267 - [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/36161
2020-09-06T12:50:08Z
2020-09-19T20:29:44Z
2020-09-19T20:29:43Z
2020-09-19T20:29:49Z
CLN: _wrap_applied_output
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index b855ce65f41b2..e2b847b442269 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1192,113 +1192,104 @@ def _wrap_applied_output(self, keys, values, not_indexed_same=False): return self.obj._c...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry All if statements above the changed block return, so we can remove the else's and flatten out the structure a bit.
https://api.github.com/repos/pandas-dev/pandas/pulls/36160
2020-09-06T12:34:00Z
2020-09-06T17:24:04Z
2020-09-06T17:24:04Z
2020-09-10T00:07:20Z
ENH: add set_td_classes method for CSS class addition to data cells
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index e577a8f26bd12..eb43ccd3429aa 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -104,7 +104,7 @@ Other enhancements - :meth:`DataFrame.applymap` now supports ``na_action`` (:issue:`23803`) - :class:`Ind...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Simple extension to Styler to allow cells to be assigned CSS classes from a DataFrame of strings. Seems to be a reasonably common request. The existing framework, i.e....
https://api.github.com/repos/pandas-dev/pandas/pulls/36159
2020-09-06T11:59:10Z
2020-09-13T12:52:43Z
2020-09-13T12:52:43Z
2020-09-13T14:04:17Z