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 |
|---|---|---|---|---|---|---|---|
DOC: small clean ups | diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst
index cd61f17220f22..df481e8c986f7 100644
--- a/doc/source/getting_started/install.rst
+++ b/doc/source/getting_started/install.rst
@@ -28,20 +28,20 @@ Installing pandas
Installing with Anaconda
~~~~~~~~~~~~~~~~~~~~~~~~
-In... | small clean ups
- [ ] 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/37412 | 2020-10-26T04:02:40Z | 2020-10-26T13:47:37Z | 2020-10-26T13:47:37Z | 2022-07-15T23:39:28Z |
TST/CLN: misplaced factorize tests | diff --git a/pandas/tests/base/test_factorize.py b/pandas/tests/base/test_factorize.py
deleted file mode 100644
index f8cbadb987d29..0000000000000
--- a/pandas/tests/base/test_factorize.py
+++ /dev/null
@@ -1,41 +0,0 @@
-import numpy as np
-import pytest
-
-import pandas as pd
-import pandas._testing as tm
-
-
-@pytest... | https://api.github.com/repos/pandas-dev/pandas/pulls/37411 | 2020-10-26T02:15:20Z | 2020-10-26T12:04:12Z | 2020-10-26T12:04:12Z | 2020-10-26T15:03:30Z | |
TST/REF: misplaced tests in tests.base | diff --git a/pandas/tests/base/test_drop_duplicates.py b/pandas/tests/base/test_drop_duplicates.py
index 4032890b4db18..8cde7aae5df05 100644
--- a/pandas/tests/base/test_drop_duplicates.py
+++ b/pandas/tests/base/test_drop_duplicates.py
@@ -1,12 +1,14 @@
from datetime import datetime
import numpy as np
+import pyte... | https://api.github.com/repos/pandas-dev/pandas/pulls/37410 | 2020-10-26T01:56:41Z | 2020-10-26T12:12:24Z | 2020-10-26T12:12:24Z | 2020-10-26T15:17:33Z | |
TST: Set timeoffset as the window parameter | diff --git a/pandas/tests/window/test_rolling.py b/pandas/tests/window/test_rolling.py
index e919812be9fce..02365906c55bb 100644
--- a/pandas/tests/window/test_rolling.py
+++ b/pandas/tests/window/test_rolling.py
@@ -919,6 +919,67 @@ def test_rolling_var_numerical_issues(func, third_value, values):
tm.assert_serie... | - [X] closes #28266
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Hi guys, just added tests for issue #28266. I'm participating in the Hacktoberfest event and would much appreciate it if someone put the label ‘hacktoberfest-accepted’ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/37407 | 2020-10-25T22:51:15Z | 2020-10-26T03:18:19Z | 2020-10-26T03:18:18Z | 2020-10-27T15:45:14Z |
BUG: Fix inconsistent ordering between left and right in merge | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index cea42cbffa906..68b13c2fe28f5 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -712,6 +712,7 @@ Reshaping
- Fixed regression in :func:`merge` on merging DatetimeIndex with empty DataFrame (:issue:`36895... | - [x] closes #35382
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Passed sort through for right join too. Did not see a reason why not.
On a related note: I think outer joins return a inconsistent order too.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/37406 | 2020-10-25T22:18:48Z | 2020-11-21T22:23:28Z | 2020-11-21T22:23:27Z | 2020-11-21T23:50:46Z |
CLN: Fix unwanted pattern in unittest | diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py
index e224c20ca84d3..c85f65cd62563 100644
--- a/pandas/tests/series/test_constructors.py
+++ b/pandas/tests/series/test_constructors.py
@@ -694,7 +694,7 @@ def test_constructor_invalid_coerce_ints_with_float_nan(self, any_i... | - [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Introduced with #37090
| https://api.github.com/repos/pandas-dev/pandas/pulls/37404 | 2020-10-25T19:38:48Z | 2020-10-25T19:45:50Z | 2020-10-25T19:45:49Z | 2020-10-25T19:54:02Z |
TST/REF: collect tests by method | diff --git a/pandas/tests/arrays/categorical/test_indexing.py b/pandas/tests/arrays/categorical/test_indexing.py
index 91992da594288..c589b72fa2895 100644
--- a/pandas/tests/arrays/categorical/test_indexing.py
+++ b/pandas/tests/arrays/categorical/test_indexing.py
@@ -91,6 +91,22 @@ def test_setitem_tuple(self):
... | https://api.github.com/repos/pandas-dev/pandas/pulls/37403 | 2020-10-25T18:11:28Z | 2020-10-26T12:10:55Z | 2020-10-26T12:10:55Z | 2020-10-26T15:08:26Z | |
TST: check_comprehensiveness compat for --lf and -k | diff --git a/pandas/tests/indexing/test_coercion.py b/pandas/tests/indexing/test_coercion.py
index d37b5986b57c1..436b2aa838b08 100644
--- a/pandas/tests/indexing/test_coercion.py
+++ b/pandas/tests/indexing/test_coercion.py
@@ -29,11 +29,21 @@ def has_test(combo):
klass in x.name and dtype in x.name and m... | - [x] closes #23930
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/37402 | 2020-10-25T16:02:28Z | 2020-10-29T00:58:49Z | 2020-10-29T00:58:48Z | 2020-10-29T02:01:57Z |
CI/CLN: Lint more class references in tests | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index a9cce9357b531..7c48905135f89 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -38,8 +38,8 @@ function invgrep {
}
function check_namespace {
- local -r CLASS="${1}"
- grep -R -l --include "*.py" " ${CLASS}(" pandas/tests | xargs grep -n "pd\.${... | https://api.github.com/repos/pandas-dev/pandas/pulls/37401 | 2020-10-25T14:43:14Z | 2020-10-30T23:15:23Z | 2020-10-30T23:15:23Z | 2020-10-31T00:42:12Z | |
REGR/PERF: Index.is_ performance regression | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 006469f79780d..24caf6ee49b4a 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -545,7 +545,7 @@ def is_(self, other) -> bool:
return True
elif not hasattr(other, "_id"):
return Fal... | Fixes https://github.com/pandas-dev/pandas/pull/37321#issuecomment-715878012
The offender is actually #37321. Apparantly is's a bit slow to do the check using a generator like `com.any_none`.
```python
In [1]: from pandas import *
In [2]: idx_large_fast = RangeIndex(100000)
...: idx_small_slow = date_range(... | https://api.github.com/repos/pandas-dev/pandas/pulls/37400 | 2020-10-25T11:30:35Z | 2020-10-26T03:06:07Z | 2020-10-26T03:06:07Z | 2020-10-26T08:03:30Z |
CLN: nanops | diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py
index b101da196fdd8..c7b6e132f9a74 100644
--- a/pandas/core/nanops.py
+++ b/pandas/core/nanops.py
@@ -381,18 +381,16 @@ def _na_for_min_count(
if is_numeric_dtype(values):
values = values.astype("float64")
fill_value = na_value_for_dtype(valu... | This sits on top of #37394. The cleanup in _maybe_get_mask means that we end up getting a correctly-dtyped result instead of object-dtype, which becomes important in the upcoming nanmean PR. | https://api.github.com/repos/pandas-dev/pandas/pulls/37396 | 2020-10-25T03:19:21Z | 2020-10-26T12:13:15Z | 2020-10-26T12:13:15Z | 2020-10-26T15:11:01Z |
TST/REF: collect tests by method | diff --git a/pandas/tests/frame/indexing/test_setitem.py b/pandas/tests/frame/indexing/test_setitem.py
index 87c6ae09aac11..c317e90181a8f 100644
--- a/pandas/tests/frame/indexing/test_setitem.py
+++ b/pandas/tests/frame/indexing/test_setitem.py
@@ -10,10 +10,12 @@
Interval,
NaT,
Period,
+ PeriodIndex,... | https://api.github.com/repos/pandas-dev/pandas/pulls/37395 | 2020-10-25T02:37:34Z | 2020-10-26T03:07:17Z | 2020-10-26T03:07:17Z | 2020-10-26T03:33:00Z | |
BUG: Series[td64].sum() wrong on empty series, closes #37151 | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index a9b4ad2e5374a..1e2747d3bc463 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -374,6 +374,7 @@ Datetimelike
- Bug in :class:`DatetimeIndex.shift` incorrectly raising when shifting empty indexes (:issue... | - [x] closes #37151
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Will handle min_count on the next pass. | https://api.github.com/repos/pandas-dev/pandas/pulls/37394 | 2020-10-25T02:32:00Z | 2020-10-26T12:06:46Z | 2020-10-26T12:06:46Z | 2020-10-26T15:19:15Z |
BUG: DataFrame.std(skipna=False) with td64 dtype | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index a9b4ad2e5374a..f54fa9d98a592 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -402,6 +402,7 @@ Numeric
- Bug in :class:`DataFrame` arithmetic ops incorrectly accepting keyword arguments (:issue:`36843`... | - [ ] 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/37392 | 2020-10-25T00:36:44Z | 2020-10-26T03:14:07Z | 2020-10-26T03:14:07Z | 2020-10-26T03:33:43Z |
CLN: Deprecate dayofweek/hello day_of_week (#9606) | diff --git a/doc/redirects.csv b/doc/redirects.csv
index bceb4b5961324..de69d0168835d 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -542,7 +542,9 @@ generated/pandas.DatetimeIndex.date,../reference/api/pandas.DatetimeIndex.date
generated/pandas.DatetimeIndex.day,../reference/api/pandas.DatetimeIndex.day
g... | Rename dayofweek properties in Period, Datetime, and PeriodArray classes.
Add day_of_week property to respective tests for each class.
- [x] closes #9606
- [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/37390 | 2020-10-24T22:39:20Z | 2020-10-29T01:18:57Z | 2020-10-29T01:18:57Z | 2020-10-29T01:19:03Z |
PERF: release gil for ewma_time | diff --git a/pandas/_libs/window/aggregations.pyx b/pandas/_libs/window/aggregations.pyx
index b2dbf7802e6f0..3556085bb300b 100644
--- a/pandas/_libs/window/aggregations.pyx
+++ b/pandas/_libs/window/aggregations.pyx
@@ -1,14 +1,13 @@
# cython: boundscheck=False, wraparound=False, cdivision=True
import cython
-from... | The performance changes for `rolling.EWMMethods` are not stable. I've seen those and no changes in separate runs.
```
+ 1.35±0.02ms 2.17±0.5ms 1.61 rolling.EWMMethods.time_ewm('Series', 1000, 'float', 'std')
```
```
- 2.58±0.2ms 1.36±0.01ms 0.53 rolling.EWMMethods.time_ewm('Series', 1... | https://api.github.com/repos/pandas-dev/pandas/pulls/37389 | 2020-10-24T18:50:04Z | 2020-11-04T02:57:03Z | 2020-11-04T02:57:03Z | 2022-11-18T02:21:02Z |
TST: split up test_concat.py #37243 - more follows up | diff --git a/pandas/tests/reshape/concat/__init__.py b/pandas/tests/reshape/concat/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/reshape/concat/conftest.py b/pandas/tests/reshape/concat/conftest.py
new file mode 100644
index 0000000000000..62b8c59ba8855
--- /dev/null
+++ ... | * created test_categorical.py
- [x] closes #37243
- [ ] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/37387 | 2020-10-24T18:27:03Z | 2020-10-28T12:04:17Z | 2020-10-28T12:04:16Z | 2020-10-28T12:31:53Z |
DOC: Improve clarity and fix grammar | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 41c12fe63d047..1c271e74aafba 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -5686,7 +5686,7 @@ ignored.
dtypes: float64(1), int64(1)
memory usage: 15.3 MB
-Given the next test set:
+The following te... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This PR improves the "Performance considerations" section of the IO tools user guide:
https://pandas.pydata.org/pandas-docs/stable/user_guide/io.htm... | https://api.github.com/repos/pandas-dev/pandas/pulls/37386 | 2020-10-24T17:38:39Z | 2020-10-25T18:38:23Z | 2020-10-25T18:38:23Z | 2020-10-26T14:38:14Z |
replace Appender decorator with doc | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 049d2c4888a69..e9634bc3aabd6 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6032,7 +6032,8 @@ def __rdivmod__(self, other) -> Tuple[DataFrame, DataFrame]:
# ----------------------------------------------------------------------
#... | - [x] ref #31942
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] replaces Appender with doc for NDFrame.compare()
| https://api.github.com/repos/pandas-dev/pandas/pulls/37384 | 2020-10-24T17:15:24Z | 2020-11-11T01:26:37Z | 2020-11-11T01:26:37Z | 2020-11-11T01:26:46Z |
CI fix failing codecheck | diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py
index 25e6142476d65..ddca67306d804 100644
--- a/pandas/tests/frame/test_analytics.py
+++ b/pandas/tests/frame/test_analytics.py
@@ -1233,17 +1233,17 @@ def test_sum_timedelta64_skipna_false():
arr = np.arange(8).astype(np.int6... | https://api.github.com/repos/pandas-dev/pandas/pulls/37383 | 2020-10-24T16:05:58Z | 2020-10-24T17:21:59Z | 2020-10-24T17:21:59Z | 2020-10-24T17:23:12Z | |
TST: Different tests were collected between gw0 and gw1 | diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index 4c670e56613ed..3869bf8f7ddcd 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -117,7 +117,7 @@ def _is_py3_complex_incompat(result, expected):
return isinstance(expected... | not sure if anyone else if having issue running tests locally. have created a clean pandas-dev env on a different machine so maybe a transient thing.
https://github.com/pytest-dev/pytest-xdist/issues/432
<details>
```
INSTALLED VERSIONS
------------------
commit : dce547ea2fe7f8c5c51c04d0a87704a2b... | https://api.github.com/repos/pandas-dev/pandas/pulls/37382 | 2020-10-24T15:58:59Z | 2020-10-25T21:56:55Z | 2020-10-25T21:56:55Z | 2020-10-26T09:40:48Z |
Fixed Metadata Propogation in DataFrame | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 7111d54d65815..669265dddd4ff 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -558,7 +558,7 @@ Other
- Bug in :meth:`DataFrame.replace` and :meth:`Series.replace` incorrectly raising ``AssertionError``... | In reference to #28283
Added finalize reference to append, merge, eval, diff, applymap, and update. Removed the ignore marks from the associated tests.
| https://api.github.com/repos/pandas-dev/pandas/pulls/37381 | 2020-10-24T15:25:35Z | 2020-11-04T16:52:45Z | 2020-11-04T16:52:45Z | 2021-06-06T19:22:15Z |
TST: Update unreliable num precision component of test_binary_arith_ops (GH37328) | diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index a4f1b1828bbc6..728ffc6f85ba4 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -316,10 +316,13 @@ def check_alignment(self, result, nlhs, ghs, op):
# TypeError, A... | - [x] closes #37328
- [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/37380 | 2020-10-24T14:11:12Z | 2020-10-28T12:04:57Z | 2020-10-28T12:04:56Z | 2020-10-28T12:05:00Z |
CI move validate unwanted patterns over to pre-commit | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e7738fb9a2979..7e9a1ec890fba 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -99,6 +99,28 @@ repos:
language: pygrep
entry: (\.\. code-block ::|\.\. ipython ::)
files: \.(py|pyx|rst)$
+ - id: unwan... | This becomes much simpler with pre-commit :smile: As with other PRs of this kind, the motivation for moving checks like these over to pre-commit is that they become cross-platform and that they provide faster feedback to devs
----
example: if I apply
```diff
diff --git a/pandas/io/formats/info.py b/pandas/io/fo... | https://api.github.com/repos/pandas-dev/pandas/pulls/37379 | 2020-10-24T11:29:40Z | 2020-10-26T12:07:18Z | 2020-10-26T12:07:18Z | 2020-10-26T12:51:10Z |
TST: on_offset_implementations closes #34751 | diff --git a/pandas/tests/tseries/offsets/test_offsets_properties.py b/pandas/tests/tseries/offsets/test_offsets_properties.py
index 0fa9081d606b0..8d9b54cf3f0df 100644
--- a/pandas/tests/tseries/offsets/test_offsets_properties.py
+++ b/pandas/tests/tseries/offsets/test_offsets_properties.py
@@ -13,6 +13,7 @@
from hyp... | - [x] closes #34751
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/37376 | 2020-10-24T01:11:58Z | 2020-10-24T02:55:20Z | 2020-10-24T02:55:20Z | 2020-10-24T02:59:55Z |
DEPR: Index.__and__, __or__, __xor__ behaving as set ops | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index 2bc7e13e39ec4..4493ddd0b2822 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -1594,19 +1594,16 @@ See :ref:`Advanced Indexing <advanced>` for usage of MultiIndexes.
Set operations on I... | - [x] closes #36758
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
xref #30228 | https://api.github.com/repos/pandas-dev/pandas/pulls/37374 | 2020-10-23T23:25:38Z | 2020-11-02T01:02:40Z | 2020-11-02T01:02:40Z | 2020-11-02T15:00:08Z |
CLN: de-duplicate _isnan | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index ff014ac249fc3..ebe1ddb07cad0 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -377,11 +377,6 @@ def astype(self, dtype, copy=True):
return Index.astype(self, dtype=dtype, copy=copy)
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/37373 | 2020-10-23T23:03:30Z | 2020-10-24T02:50:42Z | 2020-10-24T02:50:42Z | 2020-10-24T03:00:20Z | |
TST/REF: collect tests by method | diff --git a/pandas/tests/frame/indexing/test_getitem.py b/pandas/tests/frame/indexing/test_getitem.py
new file mode 100644
index 0000000000000..47d53ef6f3619
--- /dev/null
+++ b/pandas/tests/frame/indexing/test_getitem.py
@@ -0,0 +1,16 @@
+import pytest
+
+from pandas import DataFrame, MultiIndex
+
+
+class TestGetite... | https://api.github.com/repos/pandas-dev/pandas/pulls/37372 | 2020-10-23T22:34:40Z | 2020-10-24T17:53:39Z | 2020-10-24T17:53:39Z | 2020-10-24T18:00:19Z | |
PERF: ensure_string_array with non-numpy input array | diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py
index d8b35abb94b9d..7c75ad031e7cd 100644
--- a/asv_bench/benchmarks/strings.py
+++ b/asv_bench/benchmarks/strings.py
@@ -2,7 +2,7 @@
import numpy as np
-from pandas import DataFrame, Series
+from pandas import Categorical, DataFrame, S... | Currently, if the input array to `ensure_string_array` is a python object (e.g. an `ExtensionArray`), the function will constantly switch between python and cython level code, which is slow.
This PR fixes that by ensuring we always have a numpy array, avoiding the trips to python level code.
``` python
>>> n = 5... | https://api.github.com/repos/pandas-dev/pandas/pulls/37371 | 2020-10-23T21:11:34Z | 2020-10-26T17:37:54Z | 2020-10-26T17:37:54Z | 2020-10-26T22:45:48Z |
DOC: add searchsorted examples #36411 | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 10b83116dee58..67d5d4a24ae49 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -1182,6 +1182,16 @@ def factorize(self, sort: bool = False, na_sentinel: Optional[int] = -1):
>>> ser.searchsorted([1, 3], side='right')
array([1, 3])... | DOC: add searchsorted examples #36411 | https://api.github.com/repos/pandas-dev/pandas/pulls/37370 | 2020-10-23T20:59:52Z | 2020-10-25T18:43:01Z | 2020-10-25T18:43:01Z | 2020-11-05T20:55:07Z |
BUG: Call finalize in DataFrame.unstack | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index f17be825e1295..3e2267a69ed0d 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -529,7 +529,7 @@ Other
- Bug in :meth:`DataFrame.replace` and :meth:`Series.replace` incorrectly raising ``AssertionError``... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This commit adds a step to call `__finalize__` in `DataFrame.unstack`, as motivated by #28283. Adding this step also prevents needing a step to call... | https://api.github.com/repos/pandas-dev/pandas/pulls/37369 | 2020-10-23T20:44:05Z | 2020-10-24T03:09:22Z | 2020-10-24T03:09:22Z | 2020-10-24T03:54:08Z |
TST: split up test_concat.py #37243 - follows up | diff --git a/pandas/tests/reshape/concat/test_concat.py b/pandas/tests/reshape/concat/test_concat.py
index 6fa4419f90138..c3e1f3177b3d3 100644
--- a/pandas/tests/reshape/concat/test_concat.py
+++ b/pandas/tests/reshape/concat/test_concat.py
@@ -1,11 +1,8 @@
from collections import abc, deque
-import datetime as dt
-fr... | * created test_datetime.py and
split datetime/timezone/period related tests
- [ ] 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/37368 | 2020-10-23T19:31:48Z | 2020-10-23T20:41:13Z | 2020-10-23T20:41:13Z | 2020-10-23T20:42:21Z |
BUG/TST: Fix infer_dtype for Period array-likes and general ExtensionArrays | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 2824a10de1d47..99ae60859b68c 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -448,6 +448,8 @@ ExtensionArray
Other
^^^^^
- Bug in :class:`Index` constructor sometimes silently ignorning a specified ... | Closes #23553
In addition, I also changed to let infer_dtype fall back to inferring from the scalar elements if the array-like is not recognized directly (now it raises an error, which doesn't seem very useful?) | https://api.github.com/repos/pandas-dev/pandas/pulls/37367 | 2020-10-23T19:07:37Z | 2021-02-12T17:45:26Z | 2021-02-12T17:45:26Z | 2021-02-12T17:47:22Z |
TYP: DatetimeIndex, TimedeltaIndex | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 863880e222b5d..2c422b4c551b6 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -1,13 +1,13 @@
"""
Base and utility classes for tseries type pandas objects.
"""
-from datetime impor... | Better alternative to parts of #37224 | https://api.github.com/repos/pandas-dev/pandas/pulls/37365 | 2020-10-23T16:08:47Z | 2020-10-29T00:57:47Z | 2020-10-29T00:57:47Z | 2020-10-29T02:00:11Z |
Backport PR #37302 on branch 1.1.x (BUG: Allow empty chunksize in stata reader when using iterator) | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index f641e7ba4c6f7..18ba5fd46696a 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -22,6 +22,7 @@ Fixed regressions
- Fixed regression in :class:`RollingGroupby` causing a segmentation fault with Index of d... | Backport PR #37302: BUG: Allow empty chunksize in stata reader when using iterator | https://api.github.com/repos/pandas-dev/pandas/pulls/37364 | 2020-10-23T12:36:24Z | 2020-10-24T16:11:09Z | 2020-10-24T16:11:09Z | 2020-10-24T16:11:09Z |
REGR: Notebook (html) repr of DataFrame no longer follows min_rows/max_rows settings | diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py
index e4bd1eddbc5f8..2fae18bd76657 100644
--- a/pandas/io/formats/format.py
+++ b/pandas/io/formats/format.py
@@ -639,20 +639,31 @@ def _calc_max_cols_fitted(self) -> Optional[int]:
def _calc_max_rows_fitted(self) -> Optional[int]:
"... | - [ ] closes #37359
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Fix display logic in number of rows,
explained here https://pandas.pydata.org/docs/dev/user_guide/options.html#frequently-used-options | https://api.github.com/repos/pandas-dev/pandas/pulls/37363 | 2020-10-23T11:16:39Z | 2020-11-13T05:45:48Z | 2020-11-13T05:45:48Z | 2020-11-13T05:53:19Z |
CI autoupdate pre-commit versions | diff --git a/.github/workflows/autoupdate-pre-commit-config.yml b/.github/workflows/autoupdate-pre-commit-config.yml
new file mode 100644
index 0000000000000..42d6ae6606442
--- /dev/null
+++ b/.github/workflows/autoupdate-pre-commit-config.yml
@@ -0,0 +1,33 @@
+name: "Update pre-commit config"
+
+on:
+ schedule:
+ ... | Rather than manually updating versions of hooks when new ones come out, we can make a GitHub action to open a PR to do this automatically every Monday.
For this to work, we will need whoever owns the repo to [create an access token](https://github.com/technote-space/create-pr-action#github_token) and add it as secre... | https://api.github.com/repos/pandas-dev/pandas/pulls/37362 | 2020-10-23T10:57:19Z | 2020-10-31T23:06:13Z | 2020-10-31T23:06:12Z | 2020-11-01T10:32:02Z |
TST: moved file test_concat.py to folder ./concat/ (#37243) | diff --git a/pandas/tests/reshape/concat/test_append.py b/pandas/tests/reshape/concat/test_append.py
new file mode 100644
index 0000000000000..2f9228bc84394
--- /dev/null
+++ b/pandas/tests/reshape/concat/test_append.py
@@ -0,0 +1,383 @@
+import datetime as dt
+from datetime import datetime
+from itertools import combi... | - [ ] 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/37360 | 2020-10-23T10:05:18Z | 2020-10-23T15:27:14Z | 2020-10-23T15:27:14Z | 2020-10-23T15:27:44Z |
DOC: update development documentation for link to built docs #37248 | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 7fbd2e1188901..b281c7cfc7d39 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -598,7 +598,7 @@ Building master branch documentation
When pull requests are merged i... | - [x] closes #37248
cc: @jreback
| https://api.github.com/repos/pandas-dev/pandas/pulls/37357 | 2020-10-23T07:10:36Z | 2020-10-24T07:27:52Z | 2020-10-24T07:27:51Z | 2020-10-24T07:28:07Z |
API: require timezone match in DatetimeArray.take | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 99d2a1ee27265..37ea35d044dca 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -370,6 +370,7 @@ Datetimelike
- Bug in :meth:`DatetimeIndex.slice_locs` where ``datetime.date`` objects were not accepted (... | Consistent with #37299 | https://api.github.com/repos/pandas-dev/pandas/pulls/37356 | 2020-10-23T04:23:07Z | 2020-10-23T17:19:47Z | 2020-10-23T17:19:47Z | 2020-10-23T18:07:47Z |
PERF/ENH: add fast astyping for Categorical | diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py
index a0b24342091ec..f3b005b704014 100644
--- a/asv_bench/benchmarks/categoricals.py
+++ b/asv_bench/benchmarks/categoricals.py
@@ -1,3 +1,5 @@
+import string
+import sys
import warnings
import numpy as np
@@ -67,6 +69,47 @@ de... | - [x] closes #8628
- [ ] tests added / passed
- [x] benchmarks added
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
To illustrate the speed-up, the set-up is (from OP):
```python
import numpy as np
import pandas as pd
rng = np.random.d... | https://api.github.com/repos/pandas-dev/pandas/pulls/37355 | 2020-10-23T04:14:28Z | 2020-11-18T18:21:51Z | 2020-11-18T18:21:51Z | 2020-11-18T20:36:45Z |
TST/REF: collect tests by method, some misplaced | diff --git a/pandas/tests/arithmetic/test_categorical.py b/pandas/tests/arithmetic/test_categorical.py
new file mode 100644
index 0000000000000..a978f763fbaaa
--- /dev/null
+++ b/pandas/tests/arithmetic/test_categorical.py
@@ -0,0 +1,12 @@
+import numpy as np
+
+from pandas import Categorical, Series
+import pandas._te... | Looking to get rid of some more of the not-obviously-scoped test files | https://api.github.com/repos/pandas-dev/pandas/pulls/37354 | 2020-10-23T02:26:45Z | 2020-10-23T17:18:33Z | 2020-10-23T17:18:33Z | 2020-10-23T18:06:47Z |
TST: collect indexing tests by method | diff --git a/pandas/tests/reshape/merge/test_join.py b/pandas/tests/reshape/merge/test_join.py
index d462917277f99..38f6b6d38008c 100644
--- a/pandas/tests/reshape/merge/test_join.py
+++ b/pandas/tests/reshape/merge/test_join.py
@@ -791,15 +791,15 @@ def _join_by_hand(a, b, how="left"):
def test_join_inner_multiinde... | https://api.github.com/repos/pandas-dev/pandas/pulls/37353 | 2020-10-23T01:50:05Z | 2020-10-23T03:29:04Z | 2020-10-23T03:29:04Z | 2020-10-23T04:04:28Z | |
CI/CLN: Add more test file linting | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 926e90f3dfa0c..877e136492518 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -178,10 +178,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
RET=$(($RET + $?)) ; echo $MSG "DONE"
MSG='Check for inconsistent use of pandas namespace in... | Fixing use of pd.Index when Index is imported directly | https://api.github.com/repos/pandas-dev/pandas/pulls/37351 | 2020-10-23T01:00:41Z | 2020-10-23T03:16:50Z | 2020-10-23T03:16:49Z | 2020-10-23T17:05:23Z |
TST: fixturize/parametrize test_eval to the bone | diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index 5796ea52899d2..4c670e56613ed 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -2,7 +2,7 @@
from functools import reduce
from itertools import product
import operator
-from... | Might help us track down the failing test there. | https://api.github.com/repos/pandas-dev/pandas/pulls/37349 | 2020-10-22T21:19:39Z | 2020-10-22T23:30:07Z | 2020-10-22T23:30:07Z | 2020-10-22T23:50:18Z |
TST/REF: collect tests by method | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 5a4bc397ab792..515d20e8c5781 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -34,7 +34,7 @@
import pandas.util._test_decorators as td
import pandas as pd
-from pandas import DataFrame
+from pandas import DataFrame, Series
import pandas._testing... | https://api.github.com/repos/pandas-dev/pandas/pulls/37342 | 2020-10-22T16:32:45Z | 2020-10-22T22:11:21Z | 2020-10-22T22:11:21Z | 2020-10-22T22:18:51Z | |
TYP: is_dtype_compat | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index a5e8edca80873..ff014ac249fc3 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -235,20 +235,23 @@ def _shallow_copy(self, values=None, name: Label = no_default):
return super()._shallow_co... | Broken off from #37224 | https://api.github.com/repos/pandas-dev/pandas/pulls/37340 | 2020-10-22T15:32:20Z | 2020-10-23T15:37:15Z | 2020-10-23T15:37:15Z | 2020-10-23T15:37:31Z |
TST: parametrize slow test | diff --git a/pandas/tests/indexing/multiindex/test_indexing_slow.py b/pandas/tests/indexing/multiindex/test_indexing_slow.py
index d8e56661b7d61..efe1e0f0d75b5 100644
--- a/pandas/tests/indexing/multiindex/test_indexing_slow.py
+++ b/pandas/tests/indexing/multiindex/test_indexing_slow.py
@@ -7,17 +7,46 @@
from pandas ... | https://api.github.com/repos/pandas-dev/pandas/pulls/37339 | 2020-10-22T15:21:28Z | 2020-10-22T23:47:08Z | 2020-10-22T23:47:07Z | 2020-10-22T23:48:29Z | |
REF: extract dialect validation | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index 538c15b707761..20c0297448494 100644
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -794,10 +794,8 @@ def __init__(self, f, engine=None, **kwds):
_validate_skipfooter(kwds)
- if kwds.get("dialect") is not None:
- dial... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Following https://github.com/pandas-dev/pandas/pull/36852, I extracted validation of dialect into a separate function. | https://api.github.com/repos/pandas-dev/pandas/pulls/37332 | 2020-10-22T07:36:10Z | 2020-10-23T00:08:28Z | 2020-10-23T00:08:28Z | 2020-11-06T15:38:43Z |
DOC: Remove confusing description from `core.DataFrame.iterrows` | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 5729d632a64ec..8d5d900cc343f 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -971,9 +971,6 @@ def iterrows(self) -> Iterable[Tuple[Label, Series]]:
data : Series
The data of the row as a Series.
- it : generato... | Current [`core.DataFrame.iterrows`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.iterrows.html) is as follows

However, `core.DataFrame.iterrows` actually returns an iterator w... | https://api.github.com/repos/pandas-dev/pandas/pulls/37331 | 2020-10-22T06:36:01Z | 2020-10-24T07:31:01Z | 2020-10-24T07:31:01Z | 2020-10-24T07:31:13Z |
BUG: IntervalIndex.take without fill_value | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index d10cb28a3f588..f0e8327e5bce4 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -432,7 +432,7 @@ Strings
Interval
^^^^^^^^
-
+- Bug in :meth:`IntervalIndex.take` with negative indices and ``fill_value... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
`IntervalIndex.take([0, 1, -1])` without explicitly passing fill_value should not fill the -1 as NA.
Fixing this allows us to use the base class `... | https://api.github.com/repos/pandas-dev/pandas/pulls/37330 | 2020-10-22T02:56:01Z | 2020-10-31T18:56:21Z | 2020-10-31T18:56:21Z | 2021-01-04T06:19:44Z |
#31793 Add support for subtracting datetime from Timestamp | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 241c005c400cd..1c1415255bf89 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -715,6 +715,7 @@ Timezones
^^^^^^^^^
- Bug in :func:`to_datetime` with ``infer_datetime_format=True`` failing to parse zer... | - [x] closes #31793
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Based on the discussion in the attached issue, i've made the following changes:
1. add support for subtracting when the two items have different ... | https://api.github.com/repos/pandas-dev/pandas/pulls/37329 | 2020-10-22T02:48:06Z | 2021-12-28T18:00:56Z | 2021-12-28T18:00:55Z | 2021-12-28T20:22:36Z |
Backport PR #37288 on branch 1.1.x (Regression in offsets caused offsets to be no longer hashable) | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 8a9281ba7de99..f641e7ba4c6f7 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -21,6 +21,7 @@ Fixed regressions
- Fixed regression in :meth:`Series.astype` converting ``None`` to ``"nan"`` when casting ... | Backport PR #37288: Regression in offsets caused offsets to be no longer hashable | https://api.github.com/repos/pandas-dev/pandas/pulls/37326 | 2020-10-22T00:08:47Z | 2020-10-22T07:37:37Z | 2020-10-22T07:37:37Z | 2020-10-22T07:37:38Z |
TST/REF: method-specific files for lookup, get_value, set_value | diff --git a/pandas/tests/frame/indexing/test_get_value.py b/pandas/tests/frame/indexing/test_get_value.py
new file mode 100644
index 0000000000000..9a2ec975f1e31
--- /dev/null
+++ b/pandas/tests/frame/indexing/test_get_value.py
@@ -0,0 +1,19 @@
+import pytest
+
+from pandas import DataFrame, MultiIndex
+
+
+class Test... | - [ ] 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/37325 | 2020-10-21T23:07:54Z | 2020-10-22T00:12:19Z | 2020-10-22T00:12:19Z | 2020-10-22T01:12:04Z |
TST/REF: collect _libs tests | diff --git a/pandas/tests/groupby/test_bin_groupby.py b/pandas/tests/groupby/test_bin_groupby.py
index f20eed4575e91..aff9911961b25 100644
--- a/pandas/tests/groupby/test_bin_groupby.py
+++ b/pandas/tests/groupby/test_bin_groupby.py
@@ -1,12 +1,10 @@
import numpy as np
import pytest
-from pandas._libs import groupb... | https://api.github.com/repos/pandas-dev/pandas/pulls/37324 | 2020-10-21T23:03:25Z | 2020-10-22T22:13:36Z | 2020-10-22T22:13:36Z | 2020-10-22T22:16:39Z | |
DOC: Add protocol value '5' to pickle #37316 | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index d658d799f1fb8..eeaf23fdc06f5 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2780,7 +2780,7 @@ def to_pickle(
protocol : int
Int which indicates which protocol should be used by the pickler,
defaul... | - [X] closes #37316
| https://api.github.com/repos/pandas-dev/pandas/pulls/37322 | 2020-10-21T22:18:57Z | 2020-10-22T00:11:03Z | 2020-10-22T00:11:03Z | 2020-10-22T16:04:19Z |
BUG: Index._id | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 6b71e455782e3..3b28361399fba 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -220,7 +220,7 @@ def _outer_indexer(self, left, right):
_typ = "index"
_data: Union[ExtensionArray, np.ndarray]
- _id: _I... | Fixes #37213.
| https://api.github.com/repos/pandas-dev/pandas/pulls/37321 | 2020-10-21T20:16:12Z | 2020-10-22T23:31:02Z | 2020-10-22T23:31:02Z | 2020-10-24T08:05:43Z |
ENH: enable Series.info() | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 71903d10a6983..5becbf0a87472 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -217,6 +217,7 @@ Other enhancements
- Added "Juneteenth National Independence Day" to
``USFederalHolidayCalendar``. See... | - [ ] closes #5167
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I took over https://github.com/pandas-dev/pandas/pull/31796 from @MarcoGorelli.
In this PR I took the tests and the docstring from https://github.co... | https://api.github.com/repos/pandas-dev/pandas/pulls/37320 | 2020-10-21T19:26:28Z | 2021-12-01T01:30:44Z | 2021-12-01T01:30:44Z | 2021-12-01T01:30:53Z |
TST/REF: collect tests by method | diff --git a/pandas/tests/frame/indexing/test_setitem.py b/pandas/tests/frame/indexing/test_setitem.py
index 55465dffd2027..e1ce10970f07b 100644
--- a/pandas/tests/frame/indexing/test_setitem.py
+++ b/pandas/tests/frame/indexing/test_setitem.py
@@ -185,6 +185,53 @@ def test_setitem_extension_types(self, obj, dtype):
... | https://api.github.com/repos/pandas-dev/pandas/pulls/37589 | 2020-11-02T15:23:23Z | 2020-11-02T22:24:37Z | 2020-11-02T22:24:37Z | 2020-11-02T22:40:14Z | |
REF: prelims for single-path setitem_with_indexer | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index c2dad928845a7..c5e331a104726 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1592,7 +1592,11 @@ def _setitem_with_indexer(self, indexer, value):
return
# add a new item wit... | Removes a pytest.skip that was supposed to have been removed along with an xfail in a previous step. | https://api.github.com/repos/pandas-dev/pandas/pulls/37588 | 2020-11-02T15:03:04Z | 2020-11-02T21:25:45Z | 2020-11-02T21:25:45Z | 2020-11-02T21:46:43Z |
TST: catch FutureWarnings from Index.__and__ deprecation | diff --git a/pandas/tests/series/test_arithmetic.py b/pandas/tests/series/test_arithmetic.py
index 4920796f661fb..4bb4d3eeda112 100644
--- a/pandas/tests/series/test_arithmetic.py
+++ b/pandas/tests/series/test_arithmetic.py
@@ -731,17 +731,23 @@ def test_series_ops_name_retention(flex, box, names, all_binary_operators... | https://api.github.com/repos/pandas-dev/pandas/pulls/37587 | 2020-11-02T14:59:50Z | 2020-11-02T17:29:54Z | 2020-11-02T17:29:54Z | 2020-11-02T17:30:19Z | |
CLN refactor rest of core | diff --git a/pandas/core/aggregation.py b/pandas/core/aggregation.py
index 2145551833e90..55863e649078d 100644
--- a/pandas/core/aggregation.py
+++ b/pandas/core/aggregation.py
@@ -388,7 +388,6 @@ def validate_func_kwargs(
>>> validate_func_kwargs({'one': 'min', 'two': 'max'})
(['one', 'two'], ['min', 'max'])... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37586 | 2020-11-02T14:17:39Z | 2021-01-20T01:40:49Z | 2021-01-20T01:40:49Z | 2021-01-20T17:36:20Z |
CLN refactor core/computation | diff --git a/pandas/core/computation/align.py b/pandas/core/computation/align.py
index 82867cf9dcd29..8a8b0d564ea49 100644
--- a/pandas/core/computation/align.py
+++ b/pandas/core/computation/align.py
@@ -38,8 +38,7 @@ def _align_core_single_unary_op(
def _zip_axes_from_type(
typ: Type[FrameOrSeries], new_axes: S... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37585 | 2020-11-02T14:14:55Z | 2020-11-02T23:13:18Z | 2020-11-02T23:13:18Z | 2020-11-03T08:12:52Z |
CLN refactor core dtypes | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 1cfa9957874ac..87f6e73e09d66 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1,6 +1,9 @@
"""
Routines for casting.
"""
+
+from __future__ import annotations
+
from contextlib import suppress
from datetime import... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37584 | 2020-11-02T11:42:28Z | 2021-01-03T17:30:25Z | 2021-01-03T17:30:25Z | 2021-01-03T18:06:10Z |
CLN refactor core/groupby | diff --git a/pandas/core/groupby/base.py b/pandas/core/groupby/base.py
index 2387427d15670..8e278dc81a8cc 100644
--- a/pandas/core/groupby/base.py
+++ b/pandas/core/groupby/base.py
@@ -63,9 +63,8 @@ def _gotitem(self, key, ndim, subset=None):
self = type(self)(subset, groupby=groupby, parent=self, **kwargs)
... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37583 | 2020-11-02T11:40:44Z | 2020-11-04T22:57:59Z | 2020-11-04T22:57:59Z | 2020-11-05T07:12:21Z |
CLN refactor core indexes | diff --git a/pandas/core/indexes/api.py b/pandas/core/indexes/api.py
index 18981a2190552..d4f22e482af84 100644
--- a/pandas/core/indexes/api.py
+++ b/pandas/core/indexes/api.py
@@ -282,7 +282,4 @@ def all_indexes_same(indexes):
"""
itr = iter(indexes)
first = next(itr)
- for index in itr:
- if ... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37582 | 2020-11-02T11:38:39Z | 2020-12-22T21:06:18Z | 2020-12-22T21:06:18Z | 2020-12-23T08:06:32Z |
CLN refactor core/arrays | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index 57f8f11d4d04c..82d79cc47a4ae 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -460,7 +460,7 @@ def astype(self, dtype, copy=True):
if is_dtype_equal(dtype, self.dtype):
if not copy:
... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37581 | 2020-11-02T11:36:17Z | 2020-11-04T13:47:37Z | 2020-11-04T13:47:37Z | 2020-11-04T14:23:02Z |
CLN refactor non-core | diff --git a/pandas/_config/config.py b/pandas/_config/config.py
index 0b802f2cc9e69..512b638fc4877 100644
--- a/pandas/_config/config.py
+++ b/pandas/_config/config.py
@@ -392,7 +392,7 @@ class option_context(ContextDecorator):
"""
def __init__(self, *args):
- if not (len(args) % 2 == 0 and len(args... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37580 | 2020-11-02T11:33:59Z | 2020-11-02T22:42:17Z | 2020-11-02T22:42:17Z | 2020-11-03T08:14:17Z |
DOC: Add windows.rst | diff --git a/doc/source/reference/window.rst b/doc/source/reference/window.rst
index 77697b966df18..a255b3ae8081e 100644
--- a/doc/source/reference/window.rst
+++ b/doc/source/reference/window.rst
@@ -10,8 +10,10 @@ Rolling objects are returned by ``.rolling`` calls: :func:`pandas.DataFrame.roll
Expanding objects are ... | Adding a dedicated `user_guide/windows.rst` for `rolling/expanding/ewm` operations.
Mainly ported over from `computation.rst`.
| https://api.github.com/repos/pandas-dev/pandas/pulls/37575 | 2020-11-02T04:30:53Z | 2020-11-14T16:56:36Z | 2020-11-14T16:56:36Z | 2020-11-14T21:16:14Z |
TST/REF: collect tests by method | diff --git a/pandas/tests/frame/methods/test_swapaxes.py b/pandas/tests/frame/methods/test_swapaxes.py
new file mode 100644
index 0000000000000..306f7b2b21cda
--- /dev/null
+++ b/pandas/tests/frame/methods/test_swapaxes.py
@@ -0,0 +1,22 @@
+import numpy as np
+import pytest
+
+from pandas import DataFrame
+import panda... | This is something of an outlier in that it collects iter/iteritems/iterrows/itertuples into a test_iteration file. I think this is a sufficiently clear grouping, akin to test_arithmetic/test_reductions/test_unary, LMK if you disagree. | https://api.github.com/repos/pandas-dev/pandas/pulls/37573 | 2020-11-02T00:07:52Z | 2020-11-02T13:39:08Z | 2020-11-02T13:39:08Z | 2020-11-02T14:29:53Z |
BUG: to_dict should return a native datetime object for NumPy backed dataframes | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 9ac3585aa9002..6733a118165ff 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -435,7 +435,7 @@ Numeric
Conversion
^^^^^^^^^^
--
+- Bug in :meth:`DataFrame.to_dict` with ``orient='records'`` now retu... | - [x] closes #21256
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Added a fix for datetime. Added tests for datetime and for bool | https://api.github.com/repos/pandas-dev/pandas/pulls/37571 | 2020-11-01T23:27:18Z | 2020-11-04T23:50:34Z | 2020-11-04T23:50:34Z | 2020-11-04T23:50:47Z |
TST: avoid/suppress DeprecationWarnings | diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py
index 028a0c4684aef..73aa97c832848 100644
--- a/pandas/core/arrays/boolean.py
+++ b/pandas/core/arrays/boolean.py
@@ -664,6 +664,11 @@ def _arith_method(self, other, op):
dtype = "bool"
result = np.zeros(len(self._d... | After this, all thats left for me locally is plotting warnings about multiple subplots | https://api.github.com/repos/pandas-dev/pandas/pulls/37570 | 2020-11-01T22:43:18Z | 2020-11-02T00:28:19Z | 2020-11-02T00:28:18Z | 2020-11-02T01:09:51Z |
PERF: faster numeric indexes comparisons when self is identical to other | diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py
index 546b90249b5ca..d6f571360b457 100644
--- a/pandas/core/indexes/numeric.py
+++ b/pandas/core/indexes/numeric.py
@@ -1,3 +1,4 @@
+import operator
from typing import Any
import numpy as np
@@ -185,6 +186,18 @@ def _union(self, other, sor... | Further performance improvement over #37130, this time improving all numeric indexes. The improvement is larger for `Int64Index`, because that doesn't need to check for `na` values.
Examples:
```python
>>> n = 100_000
>>> idx1 = pd.Int64Index(range(n))
>>> idx2 = idx1.view()
>>> %timeit idx1 == idx2
145 µs ±... | https://api.github.com/repos/pandas-dev/pandas/pulls/37569 | 2020-11-01T22:11:40Z | 2020-11-02T00:32:18Z | 2020-11-02T00:32:18Z | 2021-01-01T22:13:54Z |
BUG: Fix bug in combine_first with string dtype and only NA | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 84f594acf5e4c..980103ad3ad8e 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -531,7 +531,7 @@ Reshaping
- Bug in :meth:`Series.transform` would give incorrect results or raise when the argument ``func... | - [x] closes #37519
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This caused bugs in ``Index.union()`` and ``Index.join()`` with ``how=outer`` too, but they are called from combine_first. Could add test, if this ... | https://api.github.com/repos/pandas-dev/pandas/pulls/37568 | 2020-11-01T22:11:31Z | 2020-11-02T00:42:22Z | 2020-11-02T00:42:21Z | 2020-12-13T19:29:30Z |
CLN: de-duplicate asof_locs | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 1938722225b98..b9dc8b3014a20 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4490,7 +4490,7 @@ def asof(self, label):
loc = loc.indices(len(self))[-1]
return self[loc]
- def aso... | We might want to deprecate allowing DatetimeIndex `where` in `PeriodIndex.asof_locs`. We only have one test for it, and allowing it is inconsistent with how we treat other comparisons (unless we want to start allowing dt64 in PeriodArray.searchsorted...) | https://api.github.com/repos/pandas-dev/pandas/pulls/37567 | 2020-11-01T21:48:15Z | 2020-11-02T13:38:13Z | 2020-11-02T13:38:13Z | 2020-11-02T14:30:26Z |
REGR: pd.to_hdf(..., dropna=True) not dropping missing rows | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 7111d54d65815..5fedd57cd2bc8 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -492,6 +492,7 @@ I/O
- Bug in output rendering of complex numbers showing too many trailing zeros (:issue:`36799`)
- Bug i... | - [x] closes #35719
- [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/37564 | 2020-11-01T19:19:55Z | 2020-11-04T01:59:22Z | 2020-11-04T01:59:22Z | 2020-11-04T08:07:23Z |
CLN: remove redundant variable in setitem_with_indexer | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 3cb9cba01da48..096ce9a791285 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1645,11 +1645,6 @@ def _setitem_with_indexer_split_path(self, indexer, value):
if isinstance(value, ABCSeries):
value = self._ali... | https://api.github.com/repos/pandas-dev/pandas/pulls/37563 | 2020-11-01T18:04:59Z | 2020-11-02T00:22:44Z | 2020-11-02T00:22:44Z | 2020-11-02T00:26:12Z | |
TST: fix xfailing indexing test | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 3cb9cba01da48..d831e2e6a6dc5 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1710,6 +1710,9 @@ def _setitem_with_indexer_split_path(self, indexer, value):
self._setitem_single_column(loc, v, plane_indexer)
... | When moving to the always-go-split_path, a bunch of tests fail without this fix. | https://api.github.com/repos/pandas-dev/pandas/pulls/37562 | 2020-11-01T17:54:23Z | 2020-11-02T00:22:09Z | 2020-11-02T00:22:09Z | 2020-11-02T00:27:21Z |
REF: move IntervalIndex.equals up to ExtensionIndex.equals | diff --git a/pandas/core/indexes/extension.py b/pandas/core/indexes/extension.py
index 1f26ceaf2d1b7..90b73da8a53ba 100644
--- a/pandas/core/indexes/extension.py
+++ b/pandas/core/indexes/extension.py
@@ -283,6 +283,17 @@ def astype(self, dtype, copy=True):
def _isnan(self) -> np.ndarray:
return self._dat... | https://api.github.com/repos/pandas-dev/pandas/pulls/37561 | 2020-11-01T17:50:25Z | 2020-11-02T00:33:49Z | 2020-11-02T00:33:49Z | 2020-11-02T17:45:30Z | |
REF: move _wrap_joined_index up to NDarrayBackedExtensionIndex | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index c137509a2cd2d..2f2836519d847 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -29,7 +29,6 @@
from pandas.core.indexes.base import Index, _index_shared_docs, maybe_extract_name
from pandas.core.ind... | Small steps towards
a) supporting arbitrary ExtensionIndex
b) using `@final` more in index code | https://api.github.com/repos/pandas-dev/pandas/pulls/37560 | 2020-11-01T17:17:32Z | 2020-11-02T00:35:06Z | 2020-11-02T00:35:05Z | 2020-11-02T15:12:42Z |
Add ss02 | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index b5d63e259456b..1ec3d25137a71 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -238,8 +238,8 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
- MSG='Validate docstrings (GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS04,... | - [x] closes #25113, closes https://github.com/pandas-dev/pandas/issues/36745
- [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/37559 | 2020-11-01T16:10:09Z | 2020-11-10T03:38:05Z | 2020-11-10T03:38:04Z | 2020-12-30T08:10:29Z |
ENH: Improve numerical stability for window functions skew and kurt | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index d4d28dde52d58..fab4a8dce8ea8 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -232,6 +232,7 @@ Other enhancements
- :meth:`testing.assert_index_equal` now has a ``check_order`` parameter that allows in... | - [x] closes #6929
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Used the same procedure as in ``DataFrame.skew()`` | https://api.github.com/repos/pandas-dev/pandas/pulls/37557 | 2020-11-01T13:51:37Z | 2020-11-09T21:20:06Z | 2020-11-09T21:20:05Z | 2020-11-09T21:44:11Z |
TYP: Check untyped defs (except vendored) | diff --git a/pandas/_testing.py b/pandas/_testing.py
index ded2ed3141b47..5dcd1247e52ba 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -117,14 +117,24 @@ def set_testing_mode():
# set the testing mode filters
testing_mode = os.environ.get("PANDAS_TESTING_MODE", "None")
if "deprecate" in test... | @jbrockmendel has recently addressed many of the modules that were not previously checked. There are now many less modules outstanding.
There has been a concern in the past that if we add ignores, the issues may not be addressed and sit in the codebase. (from previous experience with other linting tools)
There ar... | https://api.github.com/repos/pandas-dev/pandas/pulls/37556 | 2020-11-01T11:27:00Z | 2020-11-09T12:51:09Z | 2020-11-09T12:51:09Z | 2020-11-09T13:21:17Z |
Fixed the documentation for pandas.DataFrame.set_index inplace parameter | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ba2f11c87369f..a1c17c2ecfc32 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4525,7 +4525,7 @@ def set_index(
append : bool, default False
Whether to append columns to existing index.
inplace : bool, default F... | Fixed the documentation for `pandas.DataFrame.set_index` 's `inplace` parameter.
Added proper explanation for True case.
| https://api.github.com/repos/pandas-dev/pandas/pulls/37555 | 2020-11-01T06:33:52Z | 2020-11-17T17:27:37Z | 2020-11-17T17:27:37Z | 2020-11-17T17:27:47Z |
REF: simplify Index.take, MultiIndex.take | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 48dcdfb3ecfff..3d23d454c6a58 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -733,44 +733,36 @@ def take(self, indices, axis=0, allow_fill=True, fill_value=None, **kwargs):
if kwargs:
nv.vali... | https://api.github.com/repos/pandas-dev/pandas/pulls/37551 | 2020-11-01T01:29:42Z | 2020-11-02T00:27:06Z | 2020-11-02T00:27:06Z | 2020-11-02T00:28:09Z | |
TST/REF: collect base tests by method | diff --git a/pandas/tests/base/test_drop_duplicates.py b/pandas/tests/base/test_drop_duplicates.py
deleted file mode 100644
index 8cde7aae5df05..0000000000000
--- a/pandas/tests/base/test_drop_duplicates.py
+++ /dev/null
@@ -1,31 +0,0 @@
-from datetime import datetime
-
-import numpy as np
-import pytest
-
-import pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/37549 | 2020-10-31T22:35:44Z | 2020-11-02T00:23:35Z | 2020-11-02T00:23:35Z | 2020-11-02T00:27:05Z | |
CLN: de-duplicate recode_for_categories | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 499bb364c48a1..79d933c4c1619 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -83,7 +83,9 @@ def func(self, other):
if not self.ordered and not self.categories.equals(other.ca... | Step towards figuring out the small differences between Categorical's _validate_foo methods | https://api.github.com/repos/pandas-dev/pandas/pulls/37548 | 2020-10-31T22:32:38Z | 2020-11-02T00:24:18Z | 2020-11-02T00:24:18Z | 2020-11-02T00:26:48Z |
ENH: Improve error reporting for wrong merge cols | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 690e6b8f725ad..bb8c059d70b60 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -231,6 +231,7 @@ Other enhancements
- :class:`Window` now supports all Scipy window types in ``win_type`` with flexible key... | - [x] closes #16228
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Fixed error reporting when double conditions are given. Additionally I found, that something like
```
left = DataFrame({"a": [1, 2], "b": [3, 4]}... | https://api.github.com/repos/pandas-dev/pandas/pulls/37547 | 2020-10-31T22:05:53Z | 2020-11-08T03:08:00Z | 2020-11-08T03:08:00Z | 2020-11-08T12:06:18Z |
ENH: Add dtype argument to read_sql_query (GH10285) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 65bfd8289fe3d..5ddf68cad8baf 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -43,6 +43,7 @@ Other enhancements
- Added ``end`` and ``end_day`` options for ``origin`` in :meth:`DataFrame.resample` (:is... | - [x] closes #10285
- [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/37546 | 2020-10-31T21:44:46Z | 2020-12-23T23:28:23Z | 2020-12-23T23:28:23Z | 2020-12-23T23:50:52Z |
REF: Categorical.is_dtype_equal -> categories_match_up_to_permutation | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 6f137302d4994..8a092cb6e36db 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -340,6 +340,7 @@ Deprecations
- :meth:`Index.ravel` returning a ``np.ndarray`` is deprecated, in the future this will retur... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
There are too many notions of CategoricalDtype equality. This gives a clearer name to one of them. | https://api.github.com/repos/pandas-dev/pandas/pulls/37545 | 2020-10-31T21:21:37Z | 2020-11-02T22:39:27Z | 2020-11-02T22:39:27Z | 2020-11-02T22:48:23Z |
DOC Add note about virtualenv and conda | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index b281c7cfc7d39..08d8451127732 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -837,8 +837,14 @@ to run its checks by running::
without having to have done ``pre-co... | xref https://github.com/pandas-dev/pandas/pull/37023#issuecomment-716591356 | https://api.github.com/repos/pandas-dev/pandas/pulls/37542 | 2020-10-31T19:33:36Z | 2020-10-31T20:39:04Z | 2020-10-31T20:39:04Z | 2020-10-31T20:39:14Z |
REF: make EA reductions, nanops funcs keyword-only | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 7c850ffedfcab..690bd9bc9704b 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -545,6 +545,7 @@ ExtensionArray
- Fixed bug where ``astype()`` with equal dtype and ``copy=False`` would return a new objec... | https://api.github.com/repos/pandas-dev/pandas/pulls/37541 | 2020-10-31T19:30:48Z | 2020-11-01T00:02:14Z | 2020-11-01T00:02:14Z | 2020-11-01T00:03:02Z | |
CI Move unwanted typing checks to pre-commit | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b0f35087dc922..0c1e4e330c903 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -119,6 +119,36 @@ repos:
entry: python scripts/validate_unwanted_patterns.py --validation-type="private_function_across_module"
types:... | There's still some grep-based checks left, but running doctests / running mypy can stay in code_checks | https://api.github.com/repos/pandas-dev/pandas/pulls/37539 | 2020-10-31T18:03:26Z | 2020-11-04T11:01:26Z | 2020-11-04T11:01:26Z | 2020-11-04T11:03:01Z |
Backport PR #37520 on branch 1.1.x (DOC: Start v1.1.5 release notes) | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index b8abc71ca64a2..ae9228b04f44b 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.5
v1.1.4
v1.1.3
v1.1.2
diff --git a/doc/source/... | Backport PR #37520: DOC: Start v1.1.5 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/37537 | 2020-10-31T15:13:59Z | 2020-10-31T18:25:26Z | 2020-10-31T18:25:26Z | 2020-10-31T18:25:26Z |
BUG: error raise when column contains percentage | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index bbdcd183f65e1..d34175b9c4feb 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -748,6 +748,7 @@ I/O
- Bumped minimum xarray version to 0.12.3 to avoid reference to the removed ``Panel`` class (:issue:`2... | - [x] closes #37157
- [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/37534 | 2020-10-31T13:44:42Z | 2020-12-22T13:57:18Z | 2020-12-22T13:57:17Z | 2020-12-22T16:50:06Z |
TYP: obj in aggregation.py | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 2244be1b61fc6..a0578b49d5ecc 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -35,8 +35,11 @@
from pandas.core.arrays.base import ExtensionArray # noqa: F401
from pandas.core.frame import DataFrame
from pandas.core.generic import NDFrame ... | - [ ] 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/37532 | 2020-10-31T02:25:13Z | 2020-10-31T23:21:04Z | 2020-10-31T23:21:04Z | 2020-12-06T14:04:51Z |
CLN/TYP: Alias for aggregation dictionary argument | diff --git a/pandas/_typing.py b/pandas/_typing.py
index a9177106535fc..2244be1b61fc6 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -109,12 +109,14 @@
# types of `func` kwarg for DataFrame.aggregate and Series.aggregate
AggFuncTypeBase = Union[Callable, str]
+AggFuncTypeDict = Dict[Label, Union[AggFuncT... | - [ ] 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/37531 | 2020-10-31T02:11:29Z | 2020-10-31T15:36:33Z | 2020-10-31T15:36:33Z | 2020-12-06T14:04:50Z |
REF: share delete, putmask, insert between ndarray-backed EA indexes | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index 726ca0ce4d776..3eb4615f1fe3e 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -44,6 +44,10 @@ def _box_func(self, x):
"""
return x
+ def _validate_insert_value(self, value):
+ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/37529 | 2020-10-31T01:27:09Z | 2020-10-31T17:14:09Z | 2020-10-31T17:14:09Z | 2020-10-31T18:09:02Z | |
BUG: isin incorrectly casting ints to datetimes | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index 3b65bccd48aee..2db46abca119c 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -2,7 +2,7 @@
import numpy as np
-from pandas import NaT, Series, date_range
+from panda... | - [x] closes #36621
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
De-duplication in follow-up. | https://api.github.com/repos/pandas-dev/pandas/pulls/37528 | 2020-10-30T23:26:50Z | 2020-11-22T02:12:25Z | 2020-11-22T02:12:25Z | 2020-11-22T02:43:22Z |
TYP: use typing.final in indexes.base | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 2244be1b61fc6..cebebc7c2a626 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -27,6 +27,8 @@
# and use a string literal forward reference to it in subsequent types
# https://mypy.readthedocs.io/en/latest/common_issues.html#import-cycles
if TYPE_CHECKI... | cc @simonjayhawkins this imports final conditionally following how you did it with Literal | https://api.github.com/repos/pandas-dev/pandas/pulls/37527 | 2020-10-30T22:42:01Z | 2020-11-01T13:56:23Z | 2020-11-01T13:56:23Z | 2020-11-01T14:47:59Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.