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 |
|---|---|---|---|---|---|---|---|
move 3.9 travis build to allowed failures | diff --git a/.travis.yml b/.travis.yml
index c5dbddacc6a43..fdea9876d5d89 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -69,9 +69,9 @@ matrix:
env:
- JOB="3.7, arm64" PYTEST_WORKERS=8 ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard)"
- dist: bionic
- ... | xref #34881
| https://api.github.com/repos/pandas-dev/pandas/pulls/34894 | 2020-06-20T12:47:03Z | 2020-06-20T13:07:52Z | 2020-06-20T13:07:52Z | 2020-06-20T13:07:53Z |
DOC: add mention of recommended dependencies in users guide | diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst
index 2056fe2f754f8..24fcb369804c6 100644
--- a/doc/source/user_guide/enhancingperf.rst
+++ b/doc/source/user_guide/enhancingperf.rst
@@ -13,6 +13,14 @@ when we use Cython and Numba on a test function operating row-wise on th... | First-time contributor here!
Ian Ozsvald mentioned installing the optional dependencies for pandas in his talk at PyData Amsterdam 2020. Although these are mentioned in the Getting Started section, I though they should be mentioned in the Users Guide, which is where I typically go for pandas information. It seems li... | https://api.github.com/repos/pandas-dev/pandas/pulls/34890 | 2020-06-20T11:59:46Z | 2020-06-20T13:45:11Z | 2020-06-20T13:45:11Z | 2020-06-20T17:14:05Z |
TST: IntegerNA Support for DataFrame.diff() | diff --git a/pandas/tests/frame/methods/test_diff.py b/pandas/tests/frame/methods/test_diff.py
index e876e40aa2eb1..45f134a93a23a 100644
--- a/pandas/tests/frame/methods/test_diff.py
+++ b/pandas/tests/frame/methods/test_diff.py
@@ -169,3 +169,48 @@ def test_diff_sparse(self):
)
tm.assert_frame_equa... | - [x] closes #24171
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Test for IntegerNA support DataFrame.diff().
``` bash
pytest tests/frame/methods/test_diff.py::TestDataFrameDiff::test_diff_integer_na
```
| https://api.github.com/repos/pandas-dev/pandas/pulls/34889 | 2020-06-20T11:36:49Z | 2020-06-20T16:50:34Z | 2020-06-20T16:50:33Z | 2020-06-20T16:50:37Z |
DOC: document support for in-memory HDFStore GH33166 | diff --git a/doc/source/user_guide/cookbook.rst b/doc/source/user_guide/cookbook.rst
index 56ef6fc479f2c..50b946999092a 100644
--- a/doc/source/user_guide/cookbook.rst
+++ b/doc/source/user_guide/cookbook.rst
@@ -1166,6 +1166,25 @@ Storing Attributes to a group node
store.close()
os.remove('test.h5')
+You can... | I currently have added to the docstring that **kwargs passes its parameters to
PyTables. Maybe this is too much but I also added an example using **kwargs,
passing the driver paramter to create an in-memory HDFStore.
Furthermore, I have added HDFStore class to the reference api, as it was not
autogenerated and al... | https://api.github.com/repos/pandas-dev/pandas/pulls/34888 | 2020-06-20T10:52:30Z | 2020-06-20T20:08:40Z | 2020-06-20T20:08:40Z | 2020-06-20T20:08:44Z |
Deprecate `center` on `df.expanding` | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 9bd4ddbb624d9..e7f417cbe52c3 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -820,6 +820,9 @@ Deprecations
precision through the ``rtol``, and ``atol`` parameters, thus deprecating the
``check_le... | `df.expanding(center=True)` currently returns non-sensical results and it is unclear what results would be expected. It was previously removed in #7934 for that same reason,but was reintroduced for unclear reasons in a later refactoring
- [x] closes #20647
- [x] tests added / passed
- [x] passes `black pandas`
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/34887 | 2020-06-20T10:52:14Z | 2020-07-14T17:08:45Z | 2020-07-14T17:08:45Z | 2020-07-14T17:08:50Z |
TST: Ensure dtypes are set correctly for empty integer columns #24386 | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index baac87755c6d2..6207b270faefc 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -2245,6 +2245,33 @@ def test_from_records_empty_with_nonempty_fields_gh3682(self):
... | - [x ] closes #24386
- [x ] tests added / passed
- [x ] passes `black pandas`
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x ] added tests to verify whether empty integer columns are loaded in as integer columns
| https://api.github.com/repos/pandas-dev/pandas/pulls/34886 | 2020-06-20T10:51:35Z | 2020-06-20T22:26:00Z | 2020-06-20T22:25:59Z | 2020-06-20T22:26:14Z |
DOC: Fixed table formatting in box plot section | diff --git a/doc/source/user_guide/visualization.rst b/doc/source/user_guide/visualization.rst
index 4cd7b9e8cecca..305221b767aff 100644
--- a/doc/source/user_guide/visualization.rst
+++ b/doc/source/user_guide/visualization.rst
@@ -443,9 +443,8 @@ Faceting, created by ``DataFrame.boxplot`` with the ``by``
keyword, wi... | [DOC]fixed table formatting in the box plot section keeing simple rst table format
- [ ] 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/34885 | 2020-06-20T10:40:06Z | 2020-06-20T11:58:14Z | 2020-06-20T11:58:14Z | 2020-06-20T12:19:13Z |
DOC: fixed labels in "Plotting with error bars" | diff --git a/doc/source/user_guide/visualization.rst b/doc/source/user_guide/visualization.rst
index 4cd7b9e8cecca..228f67dadf2d9 100644
--- a/doc/source/user_guide/visualization.rst
+++ b/doc/source/user_guide/visualization.rst
@@ -1424,7 +1424,7 @@ Here is an example of one way to easily plot group means with standar... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
x-labels should now be visible in the plot. | https://api.github.com/repos/pandas-dev/pandas/pulls/34884 | 2020-06-20T10:35:51Z | 2020-06-20T18:26:40Z | 2020-06-20T18:26:40Z | 2020-06-20T18:26:53Z |
TST: Feather RoundTrip Column Ordering | diff --git a/pandas/tests/io/test_feather.py b/pandas/tests/io/test_feather.py
index e59100146249a..a8a5c8f00e6bf 100644
--- a/pandas/tests/io/test_feather.py
+++ b/pandas/tests/io/test_feather.py
@@ -115,6 +115,12 @@ def test_read_columns(self):
columns = ["col1", "col3"]
self.check_round_trip(df, ex... | Looks like this in fixed from pyarrow 0.17.1 -> Added a Test.
- [x] closes #https://github.com/pandas-dev/pandas/issues/33878
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/34883 | 2020-06-20T09:44:58Z | 2020-06-20T12:30:43Z | 2020-06-20T12:30:43Z | 2020-06-20T12:30:47Z |
DOC: Fix validation issues with Index.is_ docstring | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 057adceda7efd..b12a556a8291d 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -518,7 +518,12 @@ def is_(self, other) -> bool:
Returns
-------
- True if both have same underlying data, Fal... | - [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Fix validation issues with the `Index.is_ docstring` and add `Index.identical` to see also section. Trying to finish what was started in #32357 | https://api.github.com/repos/pandas-dev/pandas/pulls/34882 | 2020-06-20T09:19:57Z | 2020-06-20T11:50:50Z | 2020-06-20T11:50:50Z | 2020-06-20T12:19:17Z |
TST: Add test to verify align behaviour on CategoricalIndex | diff --git a/pandas/tests/frame/methods/test_align.py b/pandas/tests/frame/methods/test_align.py
index 5dae719283d17..d19b59debfdea 100644
--- a/pandas/tests/frame/methods/test_align.py
+++ b/pandas/tests/frame/methods/test_align.py
@@ -129,6 +129,39 @@ def test_align_mixed_int(self, mixed_int_frame):
)
... | verify that aligning two dataframes with a `CategoricalIndex` does not change the type of the index.
- [x] closes #28397
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry (not applicable?)
| https://api.github.com/repos/pandas-dev/pandas/pulls/34880 | 2020-06-20T08:53:23Z | 2020-07-06T23:27:27Z | 2020-07-06T23:27:27Z | 2020-07-06T23:27:32Z |
TST: Add test to verify 'dropna' behaviour on SparseArray | diff --git a/pandas/tests/arrays/sparse/test_array.py b/pandas/tests/arrays/sparse/test_array.py
index 2f2907fbaaebc..d0cdec712f39d 100644
--- a/pandas/tests/arrays/sparse/test_array.py
+++ b/pandas/tests/arrays/sparse/test_array.py
@@ -1295,3 +1295,15 @@ def test_map_missing():
result = arr.map({0: 10, 1: 11})
... | verify that calling `dropna` on a pd.SparseArray does not inadvertently drop non-na records on both DataFrames and the SparseArray itself.
- [x] closes #28287
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry (not appl... | https://api.github.com/repos/pandas-dev/pandas/pulls/34879 | 2020-06-20T08:38:43Z | 2020-06-20T13:35:18Z | 2020-06-20T13:35:18Z | 2020-06-20T15:08:10Z |
BUG/TST: Read from Public s3 Bucket Without Creds | diff --git a/pandas/io/common.py b/pandas/io/common.py
index 51323c5ff3ef5..32ec088f00d88 100644
--- a/pandas/io/common.py
+++ b/pandas/io/common.py
@@ -202,9 +202,37 @@ def get_filepath_or_buffer(
filepath_or_buffer = filepath_or_buffer.replace("s3n://", "s3://")
fsspec = import_optional_dependen... | - [x] Closes #34626
We should potentially merge this before https://github.com/pandas-dev/pandas/pull/34266 to confirm reading from s3 without credentials works.
Ref discussion here: https://github.com/pandas-dev/pandas/pull/34793#issuecomment-645023794
cc. @jorisvandenbossche | https://api.github.com/repos/pandas-dev/pandas/pulls/34877 | 2020-06-19T23:07:29Z | 2020-07-15T19:07:53Z | 2020-07-15T19:07:52Z | 2020-07-15T19:07:56Z |
DF.__setitem__ creates extension column when given extension scalar | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 798a3d838ef7e..9795e58995ab5 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1144,6 +1144,7 @@ ExtensionArray
- Fixed bug where :meth:`StringArray.memory_usage` was not implemented (:issue:`33963`)
... | This PR is in response to [Issue 34832]( https://github.com/pandas-dev/pandas/issues/34832).
These changes follow the suggestions from reviewers on the PR to fix an issue where `df['a']=pd.Period('2020-01')` would create an object column instead of a `period[M]` column.
One potential issue that I see with these cha... | https://api.github.com/repos/pandas-dev/pandas/pulls/34875 | 2020-06-19T18:54:51Z | 2020-07-11T02:02:55Z | 2020-07-11T02:02:55Z | 2020-07-13T13:01:58Z |
PERF: to speed up rendering of styler | diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json
index 7c10a2d17775a..4583fac85b776 100644
--- a/asv_bench/asv.conf.json
+++ b/asv_bench/asv.conf.json
@@ -53,6 +53,7 @@
"xlwt": [],
"odfpy": [],
"pytest": [],
+ "jinja2": [],
// If using Windows with python 2.7 and... | see https://github.com/pandas-dev/pandas/issues/19917#issuecomment-646209895
- [x] closes #19917
- [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/34863 | 2020-06-18T18:59:20Z | 2020-07-09T23:35:58Z | 2020-07-09T23:35:58Z | 2020-07-09T23:36:05Z |
DOC: Fix syntax in 1.1.0 whatsnew | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 10522ff797c59..6b11ddc8149e6 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -292,7 +292,7 @@ Other enhancements
- :meth:`DataFrame.to_csv` and :meth:`Series.to_csv` now accept an ``errors`` argument ... | - [ ] 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/34856 | 2020-06-18T05:37:34Z | 2020-06-18T07:22:44Z | 2020-06-18T07:22:44Z | 2020-06-20T11:08:40Z |
DEPR: to_perioddelta | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 10522ff797c59..2c792d5f10b00 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -776,6 +776,7 @@ Deprecations
instead (:issue:`34191`).
- The ``squeeze`` keyword in the ``groupby`` function is depreca... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
The only usage was in liboffsets and that has now been removed. | https://api.github.com/repos/pandas-dev/pandas/pulls/34853 | 2020-06-17T15:19:24Z | 2020-06-18T16:33:53Z | 2020-06-18T16:33:53Z | 2020-06-18T16:47:15Z |
base/test_unique.py: regression test for bad unicode string | diff --git a/pandas/tests/base/test_unique.py b/pandas/tests/base/test_unique.py
index 8cf234012d02f..e5592cef59592 100644
--- a/pandas/tests/base/test_unique.py
+++ b/pandas/tests/base/test_unique.py
@@ -105,3 +105,19 @@ def test_nunique_null(null_obj, index_or_series_obj):
num_unique_values = len(obj.unique(... | - [x] closes #34550
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I ran the tests with pandas 1.0.4, where it segfaults as expected (shown below), and `master` passes the test.
tests/test_mytest.py::test_un... | https://api.github.com/repos/pandas-dev/pandas/pulls/34851 | 2020-06-17T13:27:02Z | 2020-06-18T23:08:41Z | 2020-06-18T23:08:41Z | 2020-06-18T23:08:46Z |
Remove redundant lists in array.py | diff --git a/pandas/tests/extension/json/array.py b/pandas/tests/extension/json/array.py
index 3132b39a7d6d6..447a6108fc3c7 100644
--- a/pandas/tests/extension/json/array.py
+++ b/pandas/tests/extension/json/array.py
@@ -179,13 +179,11 @@ def astype(self, dtype, copy=True):
def unique(self):
# Parent meth... | As far as I know these lists do nothing but taking up memory. | https://api.github.com/repos/pandas-dev/pandas/pulls/34847 | 2020-06-17T10:58:46Z | 2020-06-20T14:47:21Z | 2020-06-20T14:47:21Z | 2020-06-20T14:47:24Z |
Backport PR #34845 on branch 1.0.x (DOC: 1.0.5 release date) | diff --git a/doc/source/whatsnew/v1.0.5.rst b/doc/source/whatsnew/v1.0.5.rst
index fdf08dd381050..9a5128a07bbfd 100644
--- a/doc/source/whatsnew/v1.0.5.rst
+++ b/doc/source/whatsnew/v1.0.5.rst
@@ -1,7 +1,7 @@
.. _whatsnew_105:
-What's new in 1.0.5 (June XX, 2020)
+What's new in 1.0.5 (June 17, 2020)
-------------... | Backport PR #34845: DOC: 1.0.5 release date | https://api.github.com/repos/pandas-dev/pandas/pulls/34846 | 2020-06-17T10:57:34Z | 2020-06-17T11:45:01Z | 2020-06-17T11:45:01Z | 2020-06-17T11:45:01Z |
DOC: 1.0.5 release date | diff --git a/doc/source/whatsnew/v1.0.5.rst b/doc/source/whatsnew/v1.0.5.rst
index fdf08dd381050..9a5128a07bbfd 100644
--- a/doc/source/whatsnew/v1.0.5.rst
+++ b/doc/source/whatsnew/v1.0.5.rst
@@ -1,7 +1,7 @@
.. _whatsnew_105:
-What's new in 1.0.5 (June XX, 2020)
+What's new in 1.0.5 (June 17, 2020)
-------------... | https://api.github.com/repos/pandas-dev/pandas/pulls/34845 | 2020-06-17T09:15:02Z | 2020-06-17T10:57:00Z | 2020-06-17T10:57:00Z | 2020-06-17T11:00:19Z | |
BUG: fix construction from read-only non-ns datetime64 numpy array | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 10522ff797c59..6a6c7ebd49db1 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -843,6 +843,9 @@ Datetimelike
- Bug in :meth:`DatetimeIndex.intersection` and :meth:`TimedeltaIndex.intersection` with resu... | Closes #34843 | https://api.github.com/repos/pandas-dev/pandas/pulls/34844 | 2020-06-17T09:03:34Z | 2020-06-18T06:47:45Z | 2020-06-18T06:47:45Z | 2020-06-18T10:26:49Z |
ENH: Add support for calculating EWMA with a time component | diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py
index b1f6d052919bd..f0dd908f81043 100644
--- a/asv_bench/benchmarks/rolling.py
+++ b/asv_bench/benchmarks/rolling.py
@@ -91,11 +91,18 @@ class EWMMethods:
def setup(self, constructor, window, dtype, method):
N = 10 ** 5
... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This enhancement allows EWMA to be calculated relative to the timestamp in which an observation occurs instead of assuming each observation is equally spaced. | https://api.github.com/repos/pandas-dev/pandas/pulls/34839 | 2020-06-17T05:21:43Z | 2020-07-06T22:37:57Z | 2020-07-06T22:37:57Z | 2020-07-07T00:31:46Z |
REF: implement _shared_docs to de-circularize dependencies | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e5de9b428e2d5..e57b88f1be040 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -135,6 +135,7 @@
sanitize_index,
to_arrays,
)
+from pandas.core.reshape.melt import melt
from pandas.core.series import Series
from pandas.core.sorting... | A side effect of this is that a bunch of pd.concat imports can be done at import-time instead of at runtime, will do this in a separate pass. | https://api.github.com/repos/pandas-dev/pandas/pulls/34837 | 2020-06-17T02:20:16Z | 2020-06-24T23:36:11Z | 2020-06-24T23:36:11Z | 2020-06-24T23:51:38Z |
Replaced np.bool refs; fix CI failure | diff --git a/asv_bench/benchmarks/pandas_vb_common.py b/asv_bench/benchmarks/pandas_vb_common.py
index fd1770df8e5d3..23286343d7367 100644
--- a/asv_bench/benchmarks/pandas_vb_common.py
+++ b/asv_bench/benchmarks/pandas_vb_common.py
@@ -33,7 +33,7 @@
np.uint8,
]
datetime_dtypes = [np.datetime64, np.timedelta64]
... | I mostly just replace `np.bool` with `np.bool_` though there are some other cases where I just used bool. I don't know if it matters...so happy to conform one way or another
For now just seeing if this fixes CI
Closes https://github.com/pandas-dev/pandas/issues/34848. | https://api.github.com/repos/pandas-dev/pandas/pulls/34835 | 2020-06-16T23:48:06Z | 2020-06-17T17:26:57Z | 2020-06-17T17:26:57Z | 2020-06-30T16:05:52Z |
CLN: GH29547 change string formatting with f-strings (6 files changed) | diff --git a/pandas/tests/io/parser/test_header.py b/pandas/tests/io/parser/test_header.py
index 7dc106ef0c186..4cd110136d7b0 100644
--- a/pandas/tests/io/parser/test_header.py
+++ b/pandas/tests/io/parser/test_header.py
@@ -528,12 +528,11 @@ def test_multi_index_unnamed(all_parsers, index_col, columns):
p... | Replace old string formatting syntax with f-strings #29547
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Changed 6 files:
- pandas/tests/io/parser/test_header.py
- pandas/tests/io/test_sql.py
- pandas/tests/io/test_html.py
- pandas/tests/reductions/test_red... | https://api.github.com/repos/pandas-dev/pandas/pulls/34831 | 2020-06-16T21:09:49Z | 2020-06-18T13:59:00Z | 2020-06-18T13:59:00Z | 2020-06-20T09:01:29Z |
REF: move registry, Registry to dtypes.base | diff --git a/pandas/api/extensions/__init__.py b/pandas/api/extensions/__init__.py
index 3019dd0e9b371..401e7081d2422 100644
--- a/pandas/api/extensions/__init__.py
+++ b/pandas/api/extensions/__init__.py
@@ -4,7 +4,7 @@
from pandas._libs.lib import no_default
-from pandas.core.dtypes.dtypes import ExtensionDtype,... | These are more closely related to ExtensionDtype than to our internal EADtypes. More concretely, they are low-dependency, while dtypes.dtypes has some unfortunate circular dependencies.
I'd also like to move pandas_dtype and is_dtype_equal from dtypes.common so that those can be stricty "above" dtypes.dtypes in the... | https://api.github.com/repos/pandas-dev/pandas/pulls/34830 | 2020-06-16T21:07:39Z | 2020-07-10T23:54:35Z | 2020-07-10T23:54:35Z | 2020-07-11T00:27:07Z |
REF: remove libfrequencies | diff --git a/pandas/_libs/tslibs/frequencies.pxd b/pandas/_libs/tslibs/frequencies.pxd
deleted file mode 100644
index b3ad6e6c19ee3..0000000000000
--- a/pandas/_libs/tslibs/frequencies.pxd
+++ /dev/null
@@ -1 +0,0 @@
-cpdef int get_to_timestamp_base(int base)
diff --git a/pandas/_libs/tslibs/frequencies.pyx b/pandas/_l... | https://api.github.com/repos/pandas-dev/pandas/pulls/34828 | 2020-06-16T17:30:02Z | 2020-06-16T20:47:02Z | 2020-06-16T20:47:02Z | 2020-06-16T20:51:28Z | |
Backport PR #34733 on branch 1.0.x (BUG: Fixed Series.replace for EA with casting) | diff --git a/doc/source/whatsnew/v1.0.5.rst b/doc/source/whatsnew/v1.0.5.rst
index 7dfac54279e6f..fdf08dd381050 100644
--- a/doc/source/whatsnew/v1.0.5.rst
+++ b/doc/source/whatsnew/v1.0.5.rst
@@ -24,6 +24,8 @@ Note this disables the ability to read Parquet files from directories on S3
again (:issue:`26388`, :issue:`3... | xref #34733 | https://api.github.com/repos/pandas-dev/pandas/pulls/34819 | 2020-06-16T09:46:06Z | 2020-06-16T11:24:26Z | 2020-06-16T11:24:26Z | 2020-06-16T11:24:42Z |
CLN: remove unused args/kwargs in BlockManager.reduce | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index 8e16d31b49150..e496694ee7899 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -327,16 +327,16 @@ def _verify_integrity(self) -> None:
f"tot_items: {tot_items}"
... | Small clean-up broken off from https://github.com/pandas-dev/pandas/pull/32867 cc @jbrockmendel | https://api.github.com/repos/pandas-dev/pandas/pulls/34818 | 2020-06-16T07:48:52Z | 2020-06-16T12:44:28Z | 2020-06-16T12:44:28Z | 2020-06-16T15:33:28Z |
DOC: move 'Other API changes' under correct section | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index f68135bf8cf9c..47f9d526dfd79 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -297,116 +297,10 @@ Other enhancements
.. ---------------------------------------------------------------------------
-... | The "Other API changes" bullet points were split in two (one part under "Other API changes", and one part directly under "Backwards incompatible API changes"), and in previous whatsnew files, the "Other API changes" is also a subsection of "Backwards incompatible API changes".
So moved a few things around to make th... | https://api.github.com/repos/pandas-dev/pandas/pulls/34817 | 2020-06-16T07:27:09Z | 2020-06-16T12:53:05Z | 2020-06-16T12:53:05Z | 2020-06-16T13:00:35Z |
BUG: Respect center=True in rolling.apply when numba engine is used | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index f68135bf8cf9c..7e04d8f906cb0 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1015,7 +1015,7 @@ Groupby/resample/rolling
The behaviour now is consistent, independent of internal heuristics. (:issue:... | - [x] closes #34784
- [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/34816 | 2020-06-16T04:07:34Z | 2020-06-16T12:47:57Z | 2020-06-16T12:47:57Z | 2020-06-16T15:40:30Z |
CLN: liboffsets annotations | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index bf2998bfcd9d1..df43ebcfd9df2 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -358,7 +358,6 @@ cdef class BaseOffset:
Base class for DateOffset methods that are not overridden by subclasses
... | It looks like rollforward/rollback we have some tests that pass `date` instead of `datetime`. That and a couple other outliers means there are some things that are not yet annotated. | https://api.github.com/repos/pandas-dev/pandas/pulls/34815 | 2020-06-16T03:35:11Z | 2020-06-16T12:49:30Z | 2020-06-16T12:49:30Z | 2020-06-16T15:34:51Z |
ENH: add masked algorithm for mean() function | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index c7573ee860744..2d82ffd95adb6 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -160,7 +160,7 @@ Deprecations
Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
- Performance improvement in :meth:`Inter... | - [x] closes #34754
- [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/34814 | 2020-06-16T02:57:34Z | 2021-01-01T21:46:48Z | 2021-01-01T21:46:48Z | 2021-01-01T21:46:52Z |
REF: move Resolution to tslibs.dtypes | diff --git a/pandas/_libs/tslibs/dtypes.pyx b/pandas/_libs/tslibs/dtypes.pyx
index 143eac7f1ef6e..70acb42712201 100644
--- a/pandas/_libs/tslibs/dtypes.pyx
+++ b/pandas/_libs/tslibs/dtypes.pyx
@@ -1,5 +1,6 @@
# period frequency constants corresponding to scikits timeseries
# originals
+from enum import Enum
cdef... | This is pretty much a clean move, in preparation for making FreqGroup an enum and trying to de-duplicate our 3+ enum-like classes | https://api.github.com/repos/pandas-dev/pandas/pulls/34813 | 2020-06-16T02:04:17Z | 2020-06-16T12:51:02Z | 2020-06-16T12:51:02Z | 2020-06-16T15:51:10Z |
BUG: apply() fails on some value types | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 10522ff797c59..9ef60e2c8bf2e 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1050,6 +1050,7 @@ Reshaping
- Bug in :func:`Dataframe.aggregate` and :func:`Series.aggregate` was causing recursive loop i... | - [x] closes #34529
- [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/34812 | 2020-06-15T23:47:32Z | 2020-06-19T22:33:21Z | 2020-06-19T22:33:21Z | 2020-06-19T22:33:26Z |
BUG: reading line-format JSON from file url #27135 | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index c5eb2febe8ae9..70c45acec9f35 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1040,6 +1040,7 @@ I/O
- Bug in :meth:`read_excel` for ODS files removes 0.0 values (:issue:`27222`)
- Bug in :meth:`ujson... | - [x] closes #27135
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew note entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/34811 | 2020-06-15T21:05:52Z | 2020-06-29T21:42:19Z | 2020-06-29T21:42:19Z | 2020-06-29T21:51:40Z |
API: Allow non-tuples in pandas.merge | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 0ca19ffd1f496..d32eeb493b2c2 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -693,7 +693,6 @@ Other API changes
- :func: `pandas.api.dtypes.is_string_dtype` no longer incorrectly identifies categorica... | Closes https://github.com/pandas-dev/pandas/issues/34741, while
retaining the spirit of the spirit of
https://github.com/pandas-dev/pandas/pull/34208. | https://api.github.com/repos/pandas-dev/pandas/pulls/34810 | 2020-06-15T21:03:27Z | 2020-06-30T20:58:44Z | 2020-06-30T20:58:43Z | 2020-07-06T13:14:06Z |
CLN: liboffsets annotate, de-duplicate | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index d22f2b9117326..bf2998bfcd9d1 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -491,18 +491,20 @@ cdef class BaseOffset:
# Name and Rendering Methods
def __repr__(self) -> str:
- c... | https://api.github.com/repos/pandas-dev/pandas/pulls/34808 | 2020-06-15T18:11:49Z | 2020-06-15T19:19:55Z | 2020-06-15T19:19:55Z | 2020-06-15T22:40:42Z | |
Backport PR #34804 on branch 1.0.x (TST: ensure read_parquet filter argument is correctly passed though (pyarrow engine)) | diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py
index 853b4e754bcd0..0b883e2bd142f 100644
--- a/pandas/tests/io/test_parquet.py
+++ b/pandas/tests/io/test_parquet.py
@@ -591,6 +591,17 @@ def test_additional_extension_types(self, pa):
)
check_round_trip(df, pa)
+ @td... | xref #34804 | https://api.github.com/repos/pandas-dev/pandas/pulls/34807 | 2020-06-15T17:04:51Z | 2020-06-15T17:49:05Z | 2020-06-15T17:49:05Z | 2020-06-15T17:49:57Z |
Regression in to_timedelta with errors="coerce" and unit | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index a5b502f3f4071..1c3e69e21aa18 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -237,7 +237,7 @@ def array_to_timedelta64(object[:] values, unit=None, errors='raise'):
if unit is no... | Introduced in https://github.com/pandas-dev/pandas/commit/d3f686bb50c14594087171aa0493cb07eb5a874c
In pandas 1.0.3
```python
In [2]: pd.to_timedelta([1, 2, 'error'], errors="coerce", unit="ns")
Out[2]: TimedeltaIndex(['00:00:00.000000', '00:00:00.000000', NaT], dtype='timedelta64[ns]', freq=None)
```
In mas... | https://api.github.com/repos/pandas-dev/pandas/pulls/34806 | 2020-06-15T16:33:03Z | 2020-06-15T17:27:29Z | 2020-06-15T17:27:29Z | 2020-06-15T20:16:28Z |
TST: ensure read_parquet filter argument is correctly passed though (pyarrow engine) | diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py
index 7ee551194bf76..efd34c58d7d19 100644
--- a/pandas/tests/io/test_parquet.py
+++ b/pandas/tests/io/test_parquet.py
@@ -671,6 +671,17 @@ def test_timestamp_nanoseconds(self, pa):
df = pd.DataFrame({"a": pd.date_range("2017-01-01",... | xref https://github.com/pandas-dev/pandas/issues/26551#issuecomment-643882543 | https://api.github.com/repos/pandas-dev/pandas/pulls/34804 | 2020-06-15T15:25:52Z | 2020-06-15T16:25:10Z | 2020-06-15T16:25:09Z | 2020-06-16T09:24:46Z |
Backport PR #34718 on branch 1.0.x (Removed __div__ impls) | diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx
index 1166768472449..08daedf5e5096 100644
--- a/pandas/_libs/interval.pyx
+++ b/pandas/_libs/interval.pyx
@@ -401,11 +401,6 @@ cdef class Interval(IntervalMixin):
return Interval(y.left * self, y.right * self, closed=y.closed)
retu... | https://github.com/pandas-dev/pandas/pull/34711#issuecomment-644148383
@WillAyd on 1.0.x. we have cython>=0.29.13 and on master cython>=0.29.16. is this an issue?
| https://api.github.com/repos/pandas-dev/pandas/pulls/34802 | 2020-06-15T14:47:33Z | 2020-06-15T16:10:49Z | 2020-06-15T16:10:49Z | 2020-06-15T17:54:07Z |
API: Make describe changes backwards compatible | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 088f1d1946fa9..cfac916157649 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -280,6 +280,7 @@ Other enhancements
- Added :meth:`DataFrame.value_counts` (:issue:`5377`)
- Added a :func:`pandas.api.ind... | Adds the new behavior as a feature flag / deprecation.
Closes https://github.com/pandas-dev/pandas/issues/33903
(Do we have a list of issues for deprecations introduced in 1.x?) | https://api.github.com/repos/pandas-dev/pandas/pulls/34798 | 2020-06-15T13:46:51Z | 2020-07-14T20:21:58Z | 2020-07-14T20:21:57Z | 2020-07-14T20:30:06Z |
Backport PR #34785 on branch 1.0.x (DOC: add release note about revert for 1.0.5) | diff --git a/doc/source/whatsnew/v1.0.5.rst b/doc/source/whatsnew/v1.0.5.rst
index 5dbc911407784..7dfac54279e6f 100644
--- a/doc/source/whatsnew/v1.0.5.rst
+++ b/doc/source/whatsnew/v1.0.5.rst
@@ -15,8 +15,14 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
--
+
+- Fix regression in :me... | Backport PR #34785: DOC: add release note about revert for 1.0.5 | https://api.github.com/repos/pandas-dev/pandas/pulls/34797 | 2020-06-15T13:36:51Z | 2020-06-15T14:20:07Z | 2020-06-15T14:20:07Z | 2020-06-15T14:20:08Z |
API: Removed PeriodDtype.dtype_code from public API | diff --git a/pandas/_libs/tslibs/dtypes.pxd b/pandas/_libs/tslibs/dtypes.pxd
index f43bc283d98c7..71b4eeabbaaf5 100644
--- a/pandas/_libs/tslibs/dtypes.pxd
+++ b/pandas/_libs/tslibs/dtypes.pxd
@@ -73,4 +73,4 @@ cdef enum PeriodDtypeCode:
cdef class PeriodDtypeBase:
cdef readonly:
- PeriodDtypeCode dtype_... | Closes #34735 | https://api.github.com/repos/pandas-dev/pandas/pulls/34796 | 2020-06-15T12:41:52Z | 2020-06-15T14:24:12Z | 2020-06-15T14:24:12Z | 2020-06-15T14:24:13Z |
Backport PR #34721 on branch 1.0.x (Debug CI Issue) | diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py
index 27f1c32058941..7691eea230730 100644
--- a/pandas/compat/numpy/__init__.py
+++ b/pandas/compat/numpy/__init__.py
@@ -13,6 +13,8 @@
_np_version_under1p16 = _nlv < LooseVersion("1.16")
_np_version_under1p17 = _nlv < LooseVersion("1.17")... | xref #34721 | https://api.github.com/repos/pandas-dev/pandas/pulls/34788 | 2020-06-15T09:24:33Z | 2020-06-15T09:57:55Z | 2020-06-15T09:57:55Z | 2020-06-15T09:58:01Z |
Backport Test Only from PR #34500 on branch 1.0.x (REG: Fix read_parquet from file-like objects) | diff --git a/pandas/tests/io/data/parquet/simple.parquet b/pandas/tests/io/data/parquet/simple.parquet
new file mode 100644
index 0000000000000..2862a91f508ea
Binary files /dev/null and b/pandas/tests/io/data/parquet/simple.parquet differ
diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py
in... | xref #34500 | https://api.github.com/repos/pandas-dev/pandas/pulls/34787 | 2020-06-15T09:02:42Z | 2020-06-15T11:19:39Z | 2020-06-15T11:19:39Z | 2020-06-15T11:25:47Z |
Backport PR #34667 on branch 1.0.x (BLD: pyproject.toml for Py38) | diff --git a/doc/source/whatsnew/v1.0.5.rst b/doc/source/whatsnew/v1.0.5.rst
index 1edc7e1cad72f..5dbc911407784 100644
--- a/doc/source/whatsnew/v1.0.5.rst
+++ b/doc/source/whatsnew/v1.0.5.rst
@@ -22,7 +22,8 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+
+- Fixed building from source with Python 3.8 fetching the wro... | xref #34667
@jorisvandenbossche another set of eyes needed as this was not a clean cherry-pick | https://api.github.com/repos/pandas-dev/pandas/pulls/34786 | 2020-06-15T08:35:45Z | 2020-06-15T11:17:51Z | 2020-06-15T11:17:51Z | 2020-06-15T11:23:53Z |
DOC: add release note about revert for 1.0.5 | diff --git a/doc/source/whatsnew/v1.0.5.rst b/doc/source/whatsnew/v1.0.5.rst
index 5dbc911407784..7dfac54279e6f 100644
--- a/doc/source/whatsnew/v1.0.5.rst
+++ b/doc/source/whatsnew/v1.0.5.rst
@@ -15,8 +15,14 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
--
+
+- Fix regression in :me... | Whatsnew for https://github.com/pandas-dev/pandas/pull/34632
cc @simonjayhawkins @alimcmaster1 | https://api.github.com/repos/pandas-dev/pandas/pulls/34785 | 2020-06-15T08:08:22Z | 2020-06-15T13:36:13Z | 2020-06-15T13:36:13Z | 2020-06-15T13:38:02Z |
REF: avoid DTA/PA methods in SemiMonthOffset.apply_index | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 1dae34e1ac49c..f7f50cbaf582c 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -2269,56 +2269,62 @@ cdef class SemiMonthOffset(SingleConstructorOffset):
raise NotImplementedError(self)
... | I think this gets the last implicit-external-dependencies in tslibs.
```
In [2]: dti = pd.date_range("2016-01-01", periods=10000, freq="S")
In [3]: off = pd.offsets.SemiMonthEnd(-2)
In [4]: %timeit dti + off ... | https://api.github.com/repos/pandas-dev/pandas/pulls/34783 | 2020-06-15T03:31:47Z | 2020-06-15T12:23:06Z | 2020-06-15T12:23:06Z | 2020-06-15T15:00:32Z |
REF: avoid using DTA/PA methods in Week.apply_index | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 1dae34e1ac49c..0c947ca519a7d 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -2507,6 +2507,8 @@ cdef class Week(SingleConstructorOffset):
else:
return self._end_apply_index(dt... | We avoid a couple of array allocations in the process.
```
In [2]: dti = pd.date_range("2016-01-01", periods=10000, freq="S")
In [3]: off = pd.offsets.Week(1, False, 3)
In [4]: %timeit dti + off
3.22 ms ± 3... | https://api.github.com/repos/pandas-dev/pandas/pulls/34782 | 2020-06-15T01:35:35Z | 2020-06-15T02:20:08Z | 2020-06-15T02:20:08Z | 2020-06-15T03:14:31Z |
REF: reuse roll_qtrday in liboffsets | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 1dae34e1ac49c..1e002f4a1af88 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -3786,7 +3786,7 @@ cdef inline void _shift_quarters(const int64_t[:] dtindex,
"""See shift_quarters.__doc__"""
... | Last one in this sequence. | https://api.github.com/repos/pandas-dev/pandas/pulls/34781 | 2020-06-15T01:18:58Z | 2020-06-15T02:19:54Z | 2020-06-15T02:19:54Z | 2020-06-15T03:13:37Z |
TST: remove super slow cases on upsample_nearest_limit | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 896765722bf32..b7fd797fb7230 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -3,7 +3,7 @@ repos:
rev: 19.10b0
hooks:
- id: black
- language_version: python3.7
+ language_version: python3
- repo: ... | make multi_thread csv parsing test slow | https://api.github.com/repos/pandas-dev/pandas/pulls/34780 | 2020-06-15T00:42:37Z | 2020-06-15T02:19:39Z | 2020-06-15T02:19:39Z | 2020-06-15T02:19:40Z |
REF: de-duplicate code in liboffsets | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 093d53db21dc1..37be1e7aeda40 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -3723,136 +3723,14 @@ cdef shift_quarters(
out : ndarray[int64_t]
"""
cdef:
- Py_ssize_t i
- ... | ```
In [2]: dti = pd.date_range("2016-01-01", periods=10000, freq="S")
In [3]: off = pd.offsets.BMonthEnd(2)
In [4]: %timeit dti + off
3.36 ms ± 14 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)... | https://api.github.com/repos/pandas-dev/pandas/pulls/34778 | 2020-06-14T21:58:07Z | 2020-06-15T00:17:51Z | 2020-06-15T00:17:51Z | 2020-06-15T00:59:10Z |
DOC: updated multi.py docstring for SS06 errors | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index fc2d4cf4621c4..fa35d683101c3 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -903,8 +903,7 @@ def _set_codes(
def set_codes(self, codes, level=None, inplace=False, verify_integrity=True):
"""
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/34775 | 2020-06-14T19:29:09Z | 2020-06-14T22:21:47Z | 2020-06-14T22:21:47Z | 2020-06-14T22:21:51Z | |
REF: inline get_day_of_month | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 6931360997420..9e6356b55dcec 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -3757,16 +3757,22 @@ cdef shift_quarters(
n = quarters
months_since = (dts.month - q... | Makes the logic in all cases of shift_months identical, same for shift_quarters. Next pass does de-duplication. | https://api.github.com/repos/pandas-dev/pandas/pulls/34772 | 2020-06-14T17:45:56Z | 2020-06-14T19:45:25Z | 2020-06-14T19:45:25Z | 2020-06-14T19:52:45Z |
CLN/TYPE: EWM | diff --git a/pandas/_libs/window/aggregations.pyx b/pandas/_libs/window/aggregations.pyx
index 9e088062d7280..646444d10e416 100644
--- a/pandas/_libs/window/aggregations.pyx
+++ b/pandas/_libs/window/aggregations.pyx
@@ -1759,7 +1759,7 @@ def roll_weighted_var(float64_t[:] values, float64_t[:] weights,
# Exponentially... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
1. Move `min_periods` validation to constructor
2. Stronger cython type defintions
3. Typing EWM methods | https://api.github.com/repos/pandas-dev/pandas/pulls/34770 | 2020-06-14T16:53:17Z | 2020-06-14T18:36:23Z | 2020-06-14T18:36:23Z | 2020-06-14T18:36:26Z |
BUG, TST: fix-_check_ticks_props | diff --git a/pandas/tests/plotting/common.py b/pandas/tests/plotting/common.py
index f2f7b37170ec9..896d3278cdde1 100644
--- a/pandas/tests/plotting/common.py
+++ b/pandas/tests/plotting/common.py
@@ -272,7 +272,7 @@ def _check_ticks_props(
axes = self._flatten_visible(axes)
for ax in axes:
- ... | Here's something I noticed while working on #34334 : `self._check_ticks_props(ax, ylabelsize=0)` always passes!
This is because of
```python
if ylabelsize
```
instead of
```python
if ylabelsize is not None
```
being used.
The test I've added fails on master:
```python-traceback
(pandas-dev) marco@marco-... | https://api.github.com/repos/pandas-dev/pandas/pulls/34768 | 2020-06-14T14:02:33Z | 2020-06-16T19:29:38Z | 2020-06-16T19:29:38Z | 2020-06-16T19:34:12Z |
BUG: Groupby with as_index=False raises error when type is Category | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 2243790a663df..e998c60d3ce85 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -670,6 +670,25 @@ Using :meth:`DataFrame.groupby` with ``as_index=False`` and the function ``idxma
df.groupby("a", as_... | - [x] closes #32599
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This regression was a symptom of `DataFrameGroupBy.size` ignoring `as_index=False`. Fixing this now makes the result either a frame or series, so wh... | https://api.github.com/repos/pandas-dev/pandas/pulls/34767 | 2020-06-14T12:58:48Z | 2020-06-15T12:29:20Z | 2020-06-15T12:29:19Z | 2020-07-11T16:02:03Z |
REF: make get_day_of_month nogil | diff --git a/pandas/_libs/tslibs/np_datetime.pxd b/pandas/_libs/tslibs/np_datetime.pxd
index 038632e1575c3..eebdcb3ace507 100644
--- a/pandas/_libs/tslibs/np_datetime.pxd
+++ b/pandas/_libs/tslibs/np_datetime.pxd
@@ -63,6 +63,7 @@ cdef void td64_to_tdstruct(int64_t td64, pandas_timedeltastruct* out) nogil
cdef int64... | https://api.github.com/repos/pandas-dev/pandas/pulls/34764 | 2020-06-14T03:08:24Z | 2020-06-14T16:39:03Z | 2020-06-14T16:39:03Z | 2020-06-14T16:53:00Z | |
REF: remove roll_check, use roll_convention | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index c9c2672c55be0..ef22a90c24775 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -3736,7 +3736,6 @@ cdef shift_quarters(
npy_datetimestruct dts
int count = len(dtindex)
int m... | Avoid bespoke logic for these two cases. This will make it feasible to collapse shift_months down to a single case (following #34762 and the one after that that makes get_day_of_month nogil) | https://api.github.com/repos/pandas-dev/pandas/pulls/34763 | 2020-06-14T01:49:07Z | 2020-06-14T16:52:40Z | 2020-06-14T16:52:40Z | 2020-06-14T17:01:22Z |
CLN: day->day_opt, remove unused case in liboffsets.get_day_of_month | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 4069d192d9e88..75049cabe81d5 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -3712,7 +3712,7 @@ cdef shift_quarters(
const int64_t[:] dtindex,
int quarters,
int q1start_month,
- o... | Removing this unused case turns out to be a blocker to making get_day_of_month nogil, which in turn will allow a bunch of de-duplication in this file. | https://api.github.com/repos/pandas-dev/pandas/pulls/34762 | 2020-06-14T01:46:21Z | 2020-06-14T14:21:54Z | 2020-06-14T14:21:54Z | 2020-06-14T15:20:08Z |
REF: implement shift_bday | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 6931360997420..15de4332d9992 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -18,7 +18,7 @@ from dateutil.easter import easter
import numpy as np
cimport numpy as cnp
-from numpy cimport int64_... | Avoids depending on DatetimeArray/PeriodArray methods, also avoids a couple of array allocations
```
In [2]: dti = pd.date_range("2016-01-01", periods=10**5, freq="S")
In [3]: off = pd.offsets.BDay() ... | https://api.github.com/repos/pandas-dev/pandas/pulls/34761 | 2020-06-14T01:33:30Z | 2020-06-14T22:55:41Z | 2020-06-14T22:55:40Z | 2020-06-14T23:06:50Z |
REF: De-duplicate roll_yearday/roll_qtrday | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 6931360997420..b1bd7c6a1461c 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -1879,7 +1879,7 @@ cdef class YearOffset(SingleConstructorOffset):
@apply_wraps
def apply(self, other):
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/34760 | 2020-06-14T00:55:42Z | 2020-06-14T20:47:19Z | 2020-06-14T20:47:19Z | 2020-06-14T21:23:21Z | |
typo: pivot_table -> pivot | diff --git a/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst b/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst
index a9652969ffc79..c16fec6aaba9f 100644
--- a/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst
+++ b/doc/source/getting_started/intro_tutor... | I'm new to pandas and reading the docs for the first time.
I believe that the reference in the *pivot* section should be to `pivot`, not `pivot_table`, to match the code in the example.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py"... | https://api.github.com/repos/pandas-dev/pandas/pulls/34758 | 2020-06-13T23:28:48Z | 2020-06-14T01:29:28Z | 2020-06-14T01:29:28Z | 2020-06-14T01:29:40Z |
typo: rows -> columns | diff --git a/doc/source/getting_started/intro_tutorials/01_table_oriented.rst b/doc/source/getting_started/intro_tutorials/01_table_oriented.rst
index 9ee3bfc3b8e79..dc9bec2284aab 100644
--- a/doc/source/getting_started/intro_tutorials/01_table_oriented.rst
+++ b/doc/source/getting_started/intro_tutorials/01_table_orie... | I'm new to pandas and reading the docs for the first time. By my reading of the first part of this paragraph, there's a dictionary of lists and the lists are `["Braund...", "Allen...", ...]`, `[22, 35, 58]`, and `["male", "male", "female"]`.
The original sentence says: "... and the values in each list as rows of th... | https://api.github.com/repos/pandas-dev/pandas/pulls/34757 | 2020-06-13T20:32:47Z | 2020-06-14T01:30:27Z | 2020-06-14T01:30:27Z | 2020-06-14T13:56:04Z |
BUG: DataFrameGroupBy.quantile raises for non-numeric dtypes rather than dropping columns | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index de3a05a2ccdfb..31d2d29c71386 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1122,6 +1122,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.groupby` lost index, when one of the ``agg`` keys ref... | - [x] closes #27892
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Unlike what is mentioned in #27892, this will raise if there are no columns to aggregate. Both mean and median raise with "No numeric types to aggre... | https://api.github.com/repos/pandas-dev/pandas/pulls/34756 | 2020-06-13T20:17:17Z | 2020-07-16T22:48:30Z | 2020-07-16T22:48:30Z | 2020-10-11T13:22:14Z |
TST: Period with Timestamp overflow | diff --git a/pandas/tests/scalar/period/test_period.py b/pandas/tests/scalar/period/test_period.py
index 795021a260028..5006e16b6a7e0 100644
--- a/pandas/tests/scalar/period/test_period.py
+++ b/pandas/tests/scalar/period/test_period.py
@@ -6,6 +6,7 @@
from pandas._libs.tslibs import iNaT, period as libperiod
from ... | - [x] closes #13346
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
The first part of the test checks that the period inside boundaries does not raise exception when calling `start_time` and `end_time` methods. The second part checks that... | https://api.github.com/repos/pandas-dev/pandas/pulls/34755 | 2020-06-13T19:04:44Z | 2020-10-05T20:52:52Z | 2020-10-05T20:52:52Z | 2021-01-02T08:31:59Z |
REF: refactor NDFrame.interpolate to avoid dispatching to fillna | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 6183638ab587e..823a0a6a35f9e 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6888,42 +6888,33 @@ def interpolate(
inplace = validate_bool_kwarg(inplace, "inplace")
axis = self._get_axis_number(axis)
- inde... | xref https://github.com/pandas-dev/pandas/pull/31048#issuecomment-643658604, #33959 | https://api.github.com/repos/pandas-dev/pandas/pulls/34752 | 2020-06-13T18:41:21Z | 2020-06-14T14:31:07Z | 2020-06-14T14:31:06Z | 2020-06-14T15:25:57Z |
Bump up minimum numpy version in windows37 job | diff --git a/ci/azure/windows.yml b/ci/azure/windows.yml
index 187a5db99802f..87f1bfd2adb79 100644
--- a/ci/azure/windows.yml
+++ b/ci/azure/windows.yml
@@ -13,7 +13,7 @@ jobs:
CONDA_PY: "36"
PATTERN: "not slow and not network"
- py37_np141:
+ py37_np18:
ENV_FILE: ci/deps/azure-wi... | - [x] closes #34724
- [ ] 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/34750 | 2020-06-13T17:14:27Z | 2020-06-14T14:29:35Z | 2020-06-14T14:29:35Z | 2020-06-14T16:04:55Z |
API: validate `limit_direction` parameter of NDFrame.interpolate | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index e680c2db55a43..a1be07f3fc386 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -406,6 +406,7 @@ Backwards incompatible API changes
(previously raised a ``NotImplementedError``), while passing in keywo... | broken off #31048
| https://api.github.com/repos/pandas-dev/pandas/pulls/34746 | 2020-06-13T13:14:10Z | 2020-06-14T18:06:41Z | 2020-06-14T18:06:41Z | 2020-06-14T18:43:12Z |
DOC: updated strings.py for SS06 errors | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index b27ad744dbdba..a1db7742916de 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -570,9 +570,9 @@ def str_endswith(arr, pat, na=np.nan):
def str_replace(arr, pat, repl, n=-1, case=None, flags=0, regex=True):
r"""
- Replace occ... | https://api.github.com/repos/pandas-dev/pandas/pulls/34745 | 2020-06-13T12:43:38Z | 2020-06-13T17:04:13Z | 2020-06-13T17:04:13Z | 2020-06-13T17:04:18Z | |
CLN: clean and deduplicate in core.missing.interpolate_1d | diff --git a/pandas/core/missing.py b/pandas/core/missing.py
index d8671616f944e..7802c5cbdbfb3 100644
--- a/pandas/core/missing.py
+++ b/pandas/core/missing.py
@@ -94,30 +94,37 @@ def clean_fill_method(method, allow_nearest=False):
return method
+# interpolation methods that dispatch to np.interp
+
+NP_METHOD... | broken-off #34728 | https://api.github.com/repos/pandas-dev/pandas/pulls/34744 | 2020-06-13T10:48:26Z | 2020-06-13T20:12:53Z | 2020-06-13T20:12:53Z | 2020-06-13T20:34:32Z |
CLN: make Info and DataFrameInfo subclasses | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index d12ebeafe8510..5134ddcf1cc67 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -140,7 +140,7 @@
from pandas.io.common import get_filepath_or_buffer
from pandas.io.formats import console, format as fmt
-from pandas.io.formats.info import in... | precursor to #31796
Makes Info class and DataFrameInfo subclass so there's no need for all the
```python
if isinstance(data, ABCDataFrame)
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/34743 | 2020-06-13T10:19:10Z | 2020-06-29T23:19:45Z | 2020-06-29T23:19:44Z | 2020-10-10T14:14:45Z |
CLN: remove the old 'nature_with_gtoc' sphinx doc theme | diff --git a/doc/source/themes/nature_with_gtoc/layout.html b/doc/source/themes/nature_with_gtoc/layout.html
deleted file mode 100644
index 6e7d8ece35133..0000000000000
--- a/doc/source/themes/nature_with_gtoc/layout.html
+++ /dev/null
@@ -1,108 +0,0 @@
-{#
-
-Subset of agogo theme
-agogo/layout.html
-
-Sphinx layout t... | Noticed we still have the old theme customizations in the doc sources. | https://api.github.com/repos/pandas-dev/pandas/pulls/34742 | 2020-06-13T10:11:10Z | 2020-06-13T17:06:51Z | 2020-06-13T17:06:51Z | 2020-06-13T18:31:48Z |
BLD: Suppressing errors while compling pandas/_libs/groupby | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 35a6963165194..e7ac3b8442c6d 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -869,7 +869,9 @@ def group_last(rank_t[:, :] out,
assert min_count == -1, "'min_count' only used in add and prod"
- if not len(values) =... | - [x] ref #32163
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This are the errors that this PR is getting rid of:
```
pandas/_libs/groupby.c: In function ‘__pyx_pf_6pandas_5_libs_7groupby_116group_last’:
pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/32794 | 2020-03-17T23:52:40Z | 2020-03-19T00:25:33Z | 2020-03-19T00:25:33Z | 2020-03-20T00:05:35Z |
CLN: remove align kwarg from Block.where, Block.putmask | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index f2f8b6067c415..c429a65ed3369 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -909,13 +909,7 @@ def setitem(self, indexer, value):
return block
def putmask(
- self,
- m... | https://api.github.com/repos/pandas-dev/pandas/pulls/32791 | 2020-03-17T22:04:40Z | 2020-03-22T00:14:25Z | 2020-03-22T00:14:25Z | 2020-03-22T00:49:39Z | |
ERR: Raise on invalid na_action in Series.map | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 720ce7af47a18..346b603344e9a 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -405,6 +405,7 @@ Other
- Fixed :func:`pandas.testing.assert_series_equal` to correctly raise if left object is a different ... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
`Series.map` treats any `na_action` other than `"ignore"` like `None`, but it should probably raise if someone provides an invalid option:
```python
In [1]: import p... | https://api.github.com/repos/pandas-dev/pandas/pulls/32790 | 2020-03-17T21:56:43Z | 2020-03-22T00:13:12Z | 2020-03-22T00:13:12Z | 2020-03-22T00:14:03Z |
TST: Define sections in pandas/conftest.py | diff --git a/pandas/conftest.py b/pandas/conftest.py
index e12acb5dd56d5..903e1a5dec132 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1,3 +1,23 @@
+"""
+This file is very long and growing, but it was decided to not split it yet, as
+it's still manageable (2020-03-17, ~1.1k LoC). See gh-31989
+
+Instead o... | part of #31989
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/32789 | 2020-03-17T21:41:09Z | 2020-03-20T07:48:07Z | 2020-03-20T07:48:07Z | 2020-03-20T07:48:21Z |
replaced one occurrence of `Appender` by `doc` decorator | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 6b0f7de11a3e7..83df09d6b2cf3 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1912,117 +1912,7 @@ def _repr_data_resource_(self):
%(klass)s in Markdown-friendly format.
"""
- _shared_docs[
- "to_excel"
- ... | - [X] xref #31942
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] replaces one use of `Appender` in pandas/core/generic.py with `doc`
| https://api.github.com/repos/pandas-dev/pandas/pulls/32787 | 2020-03-17T21:08:17Z | 2020-03-20T22:19:09Z | 2020-03-20T22:19:09Z | 2020-03-20T22:21:11Z |
CLN: remove unnecessary alias | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index 88cefd3ebfebf..da334561385d6 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -825,17 +825,15 @@ def as_array(self, transpose: bool = False) -> np.ndarray:
arr = np.empty(self.s... | - [ ] 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/32786 | 2020-03-17T20:54:56Z | 2020-03-17T22:03:25Z | 2020-03-17T22:03:25Z | 2020-03-17T22:13:44Z |
Backport PR #32783 on branch 1.0.x (DOC: 1.0.3 release date) | diff --git a/doc/source/whatsnew/v1.0.3.rst b/doc/source/whatsnew/v1.0.3.rst
index 0ca5f5f548885..26d06433bda0c 100644
--- a/doc/source/whatsnew/v1.0.3.rst
+++ b/doc/source/whatsnew/v1.0.3.rst
@@ -1,7 +1,7 @@
.. _whatsnew_103:
-What's new in 1.0.3 (March ??, 2020)
+What's new in 1.0.3 (March 17, 2020)
-----------... | Backport PR #32783: DOC: 1.0.3 release date | https://api.github.com/repos/pandas-dev/pandas/pulls/32784 | 2020-03-17T19:34:00Z | 2020-03-17T20:52:03Z | 2020-03-17T20:52:03Z | 2020-03-17T20:52:03Z |
DOC: 1.0.3 release date | diff --git a/doc/source/whatsnew/v1.0.3.rst b/doc/source/whatsnew/v1.0.3.rst
index 482222fbddbb8..14f982212f1e5 100644
--- a/doc/source/whatsnew/v1.0.3.rst
+++ b/doc/source/whatsnew/v1.0.3.rst
@@ -1,7 +1,7 @@
.. _whatsnew_103:
-What's new in 1.0.3 (March ??, 2020)
+What's new in 1.0.3 (March 17, 2020)
-----------... | https://api.github.com/repos/pandas-dev/pandas/pulls/32783 | 2020-03-17T19:33:00Z | 2020-03-17T19:33:22Z | 2020-03-17T19:33:22Z | 2020-03-17T19:34:11Z | |
BUG/API: prohibit dtype-changing IntervalArray.__setitem__ | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index cbfc6d63e8ea3..8e5b083b7b058 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -346,7 +346,7 @@ Strings
Interval
^^^^^^^^
--
+- Bug in :class:`IntervalArray` incorrectly allowing the underlying data ... | - [ ] <s>closes #27147</s> Not quite
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Still needs a dedicated test, but this is also a non-trivial API change, so I want to get the ball rolling on discussion. cc @jsch... | https://api.github.com/repos/pandas-dev/pandas/pulls/32782 | 2020-03-17T19:21:30Z | 2020-04-10T16:17:34Z | 2020-04-10T16:17:34Z | 2020-04-10T17:25:46Z |
CLN: .value -> ._values outside of core/ | diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py
index f011293273c5b..17cc897136aad 100644
--- a/pandas/io/formats/format.py
+++ b/pandas/io/formats/format.py
@@ -58,11 +58,8 @@
)
from pandas.core.dtypes.generic import (
ABCDatetimeIndex,
- ABCIndexClass,
ABCMultiIndex,
ABCPeri... | pandas.plotting I left alone | https://api.github.com/repos/pandas-dev/pandas/pulls/32781 | 2020-03-17T18:56:15Z | 2020-03-21T21:06:49Z | 2020-03-21T21:06:49Z | 2020-03-21T21:10:05Z |
CLN: Split up Boolean array tests | diff --git a/pandas/tests/arrays/boolean/__init__.py b/pandas/tests/arrays/boolean/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/arrays/boolean/test_arithmetic.py b/pandas/tests/arrays/boolean/test_arithmetic.py
new file mode 100644
index 0000000000000..df4c218cbf9bf
--- ... | Apologies for the size of this PR, but it looks like the ExtensionArray tests sometimes have their own directories by type, and other times all tests for the type are in a single file (e.g., https://github.com/pandas-dev/pandas/tree/master/pandas/tests/arrays/categorical vs. https://github.com/pandas-dev/pandas/blob/ma... | https://api.github.com/repos/pandas-dev/pandas/pulls/32780 | 2020-03-17T17:57:07Z | 2020-03-21T21:09:27Z | 2020-03-21T21:09:27Z | 2020-03-21T21:14:27Z |
PERF: block-wise arithmetic for frame-with-frame | diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py
index 8aa29468559b2..08a11ba2607a5 100644
--- a/asv_bench/benchmarks/arithmetic.py
+++ b/asv_bench/benchmarks/arithmetic.py
@@ -101,6 +101,59 @@ def time_frame_op_with_series_axis1(self, opname):
getattr(operator, opname)(self... | - [ ] closes #xxxx
- [ ] 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/32779 | 2020-03-17T17:01:08Z | 2020-05-19T13:16:14Z | 2020-05-19T13:16:14Z | 2020-05-19T15:48:31Z |
CLN: .values -> ._values | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index 52423c4008399..2cae09ed08f36 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -243,8 +243,11 @@ def _simple_new(cls, values: Categorical, name: Label = None):
@Appender(Index._shallow_copy.__... | https://api.github.com/repos/pandas-dev/pandas/pulls/32778 | 2020-03-17T16:29:33Z | 2020-03-26T00:54:18Z | 2020-03-26T00:54:18Z | 2020-03-26T01:04:31Z | |
Backport PR #32734 on branch 1.0.x | diff --git a/doc/source/whatsnew/v1.0.3.rst b/doc/source/whatsnew/v1.0.3.rst
index 482222fbddbb8..0ca5f5f548885 100644
--- a/doc/source/whatsnew/v1.0.3.rst
+++ b/doc/source/whatsnew/v1.0.3.rst
@@ -16,6 +16,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in ``resample.a... | https://api.github.com/repos/pandas-dev/pandas/pulls/32777 | 2020-03-17T16:08:20Z | 2020-03-17T19:14:17Z | 2020-03-17T19:14:17Z | 2020-04-04T20:41:41Z | |
TYP: PandasObject._cache | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 40ff0640a5bc4..0685ce5c92815 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -4,7 +4,7 @@
import builtins
import textwrap
-from typing import Dict, FrozenSet, List, Optional, Union
+from typing import Any, Dict, FrozenSet, List, Optional, Un... | Move ``_cache: Dict[str, Any]`` fragment to PandasObject, where it belongs + related changes. | https://api.github.com/repos/pandas-dev/pandas/pulls/32775 | 2020-03-17T14:19:12Z | 2020-03-19T00:52:10Z | 2020-03-19T00:52:10Z | 2020-03-21T11:45:31Z |
CLN: simplify MultiIndex._shallow_copy | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 5bffc4ec552af..cf5127757b356 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -990,15 +990,11 @@ def _constructor(self):
def _shallow_copy(self, values=None, **kwargs):
if values is not None:
... | Minor simplification of ``MultiIndex._shallow_copy``. | https://api.github.com/repos/pandas-dev/pandas/pulls/32772 | 2020-03-17T08:12:32Z | 2020-03-19T21:30:21Z | 2020-03-19T21:30:21Z | 2020-03-21T11:45:21Z |
Backport PR #32708 on branch 1.0.x (skip 32 bit linux) | diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml
index c9a2e4eefd19d..437cc9b161e8a 100644
--- a/ci/azure/posix.yml
+++ b/ci/azure/posix.yml
@@ -38,11 +38,11 @@ jobs:
LC_ALL: "it_IT.utf8"
EXTRA_APT: "language-pack-it xsel"
- py36_32bit:
- ENV_FILE: ci/deps/azure-36-32bit.yaml... | Backport PR #32708: skip 32 bit linux | https://api.github.com/repos/pandas-dev/pandas/pulls/32771 | 2020-03-17T07:57:50Z | 2020-03-17T12:45:46Z | 2020-03-17T12:45:46Z | 2020-03-17T12:46:24Z |
CLN: Consolidate numba facilities | diff --git a/pandas/core/util/numba_.py b/pandas/core/util/numba_.py
new file mode 100644
index 0000000000000..e4debab2c22ee
--- /dev/null
+++ b/pandas/core/util/numba_.py
@@ -0,0 +1,58 @@
+"""Common utilities for Numba operations"""
+import types
+from typing import Callable, Dict, Optional
+
+import numpy as np
+
+fr... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Precursor to https://github.com/pandas-dev/pandas/issues/31845 and other numba engine additions, creates `pandas/core/numba_.py` (open to move elsewhere) as a shared place for common numba op... | https://api.github.com/repos/pandas-dev/pandas/pulls/32770 | 2020-03-17T07:35:10Z | 2020-03-19T00:23:26Z | 2020-03-19T00:23:26Z | 2020-03-19T03:49:06Z |
TYP: annotate Block/BlockManager putmask | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 63f5bd547074a..8c6a5c9d020b4 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -8652,12 +8652,7 @@ def _where(
self._check_inplace_setting(other)
new_data = self._data.putmask(
- mask=cond,
- ... | medium-term goal is to avoid passing Series/DataFrame objects to Block methods via BlockManager.apply | https://api.github.com/repos/pandas-dev/pandas/pulls/32769 | 2020-03-17T02:54:58Z | 2020-03-22T20:38:48Z | 2020-03-22T20:38:48Z | 2020-03-22T21:01:45Z |
CLN: remove _ndarray_values | diff --git a/doc/source/development/internals.rst b/doc/source/development/internals.rst
index 4ad045a91b5fe..8f1c3d5d818c2 100644
--- a/doc/source/development/internals.rst
+++ b/doc/source/development/internals.rst
@@ -89,16 +89,10 @@ pandas extends NumPy's type system with custom types, like ``Categorical`` or
date... | - [x] closes #23565
- [ ] 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/32768 | 2020-03-17T02:47:51Z | 2020-03-19T00:24:24Z | 2020-03-19T00:24:24Z | 2020-03-19T01:30:09Z |
REF: Implement core._algos | diff --git a/pandas/core/array_algos/__init__.py b/pandas/core/array_algos/__init__.py
new file mode 100644
index 0000000000000..a7655a013c6cf
--- /dev/null
+++ b/pandas/core/array_algos/__init__.py
@@ -0,0 +1,9 @@
+"""
+core.array_algos is for algorithms that operate on ndarray and ExtensionArray.
+These should:
+
+- ... | ATM core.algorithms and core.nanops are a mish-mash in terms of what inputs they expect. This implements core._algos directory intended for guaranteed-ndarray/EA-only implementations.
For the first function to move I de-duplicated a `shift` method. Need suggestions for what to call this module. | https://api.github.com/repos/pandas-dev/pandas/pulls/32767 | 2020-03-17T02:06:48Z | 2020-03-19T00:19:52Z | 2020-03-19T00:19:52Z | 2020-04-08T17:54:07Z |
Backport PR #32758 on branch 1.0.x (BUG: resample.agg with read-only data) | diff --git a/doc/source/whatsnew/v1.0.3.rst b/doc/source/whatsnew/v1.0.3.rst
index 17f1bdc365518..482222fbddbb8 100644
--- a/doc/source/whatsnew/v1.0.3.rst
+++ b/doc/source/whatsnew/v1.0.3.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed regression in ``resample... | Backport PR #32758: BUG: resample.agg with read-only data | https://api.github.com/repos/pandas-dev/pandas/pulls/32765 | 2020-03-17T01:34:52Z | 2020-03-17T07:57:54Z | 2020-03-17T07:57:54Z | 2020-03-17T07:57:54Z |
BUG: Allow list-like in DatetimeIndex.searchsorted | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index dcbfe6aeb9a12..d0d67e14f2cbc 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -255,6 +255,7 @@ Datetimelike
- Bug in :meth:`Period.to_timestamp`, :meth:`Period.start_time` with microsecond frequency re... | - [x] closes #32762
- [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/32764 | 2020-03-16T23:34:20Z | 2020-03-26T01:22:58Z | 2020-03-26T01:22:58Z | 2020-03-26T01:25:32Z |
BUG: resample.agg with read-only data | diff --git a/doc/source/whatsnew/v1.0.3.rst b/doc/source/whatsnew/v1.0.3.rst
index 17f1bdc365518..482222fbddbb8 100644
--- a/doc/source/whatsnew/v1.0.3.rst
+++ b/doc/source/whatsnew/v1.0.3.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed regression in ``resample... | - [x] closes #31710
- [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/32758 | 2020-03-16T18:58:31Z | 2020-03-17T01:34:16Z | 2020-03-17T01:34:15Z | 2020-03-17T16:01:08Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.