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 |
|---|---|---|---|---|---|---|---|
TST/REF: collect tests from test_api into method-specific files | diff --git a/pandas/tests/frame/methods/test_copy.py b/pandas/tests/frame/methods/test_copy.py
new file mode 100644
index 0000000000000..be52cf55fccb2
--- /dev/null
+++ b/pandas/tests/frame/methods/test_copy.py
@@ -0,0 +1,43 @@
+import pytest
+
+from pandas import DataFrame
+import pandas._testing as tm
+
+
+class Test... | I was surprised we didnt already have a test_copy
Also an easter egg:
```
def test_keys(self, datetime_series):
# HACK: By doing this in two stages, we avoid 2to3 wrapping the call
# to .keys() in a list()
getkeys = datetime_series.keys
assert getkeys() is datetime_... | https://api.github.com/repos/pandas-dev/pandas/pulls/37525 | 2020-10-30T20:31:52Z | 2020-10-31T15:28:18Z | 2020-10-31T15:28:18Z | 2020-10-31T16:03:15Z |
BUG: slice_canonize incorrectly raising | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index 4f27fde52414a..006fd34632d5a 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -207,7 +207,7 @@ cdef slice slice_canonize(slice s):
Convert slice to canonical bounded form.
"""
cdef:
- Py_ssize_t s... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Doesn't appear to affect anything in master, but stumbled on it when implementing the PR do always return views when indexing on columns. | https://api.github.com/repos/pandas-dev/pandas/pulls/37524 | 2020-10-30T20:21:29Z | 2020-10-31T19:31:24Z | 2020-10-31T19:31:24Z | 2020-10-31T19:32:58Z |
TST/REF: collect Series accessor tests | diff --git a/pandas/tests/series/accessors/__init__.py b/pandas/tests/series/accessors/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/series/accessors/test_cat_accessor.py b/pandas/tests/series/accessors/test_cat_accessor.py
new file mode 100644
index 0000000000000..f561ac... | https://api.github.com/repos/pandas-dev/pandas/pulls/37523 | 2020-10-30T20:19:29Z | 2020-10-31T15:16:04Z | 2020-10-31T15:16:04Z | 2020-10-31T15:19:29Z | |
TST: suppress warnings we cant do anything about | diff --git a/pandas/tests/io/excel/test_readers.py b/pandas/tests/io/excel/test_readers.py
index c474e67123ef7..e9eaa95ca2ca3 100644
--- a/pandas/tests/io/excel/test_readers.py
+++ b/pandas/tests/io/excel/test_readers.py
@@ -21,7 +21,6 @@
"xlrd",
marks=[
td.skip_if_no("xlrd"),
- ... | and remove redundant filterwarnings from excel.test_readers | https://api.github.com/repos/pandas-dev/pandas/pulls/37522 | 2020-10-30T20:01:48Z | 2020-10-30T21:41:34Z | 2020-10-30T21:41:34Z | 2020-10-30T22:08:34Z |
REF: _setitem_with_indexer_split_path | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index e376f930c8c63..3cb9cba01da48 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1625,94 +1625,94 @@ def _setitem_with_indexer(self, indexer, value):
self._setitem_with_indexer_missing(indexer, value)
... | Splitting this off to get a cleaner diff in an upcoming PR(s) that make setitem_with_indexer go through split_path for _all_ DataFrame cases, giving us less special-casing to worry about. | https://api.github.com/repos/pandas-dev/pandas/pulls/37521 | 2020-10-30T19:44:23Z | 2020-10-31T15:12:34Z | 2020-10-31T15:12:34Z | 2020-10-31T15:18:38Z |
DOC: Start v1.1.5 release notes | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 848121f822383..310857faec436 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -24,6 +24,7 @@ Version 1.1
.. toctree::
:maxdepth: 2
+ v1.1.5
v1.1.4
v1.1.3
v1.1.2
diff --git a/doc/source/... | https://api.github.com/repos/pandas-dev/pandas/pulls/37520 | 2020-10-30T15:56:23Z | 2020-10-31T15:13:14Z | 2020-10-31T15:13:14Z | 2020-11-01T16:34:23Z | |
Backport PR #37499 on branch 1.1.x (REGR: fix isin for large series with nan and mixed object dtype (causing regression in read_csv)) | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index ad348db21f8c9..fb8687b8ba42c 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :func:`read_... | Backport PR #37499: REGR: fix isin for large series with nan and mixed object dtype (causing regression in read_csv) | https://api.github.com/repos/pandas-dev/pandas/pulls/37517 | 2020-10-30T11:03:40Z | 2020-10-30T11:53:33Z | 2020-10-30T11:53:33Z | 2020-10-30T11:53:34Z |
Backport PR #37508: REGR: inplace Series op not actually operating inplace | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 6cb728800dc68..397df3ce96b6b 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -29,6 +29,7 @@ Fixed regressions
- Fixed regression in :class:`StataReader` which required ``chunksize`` to be manually set... | Backport of https://github.com/pandas-dev/pandas/pull/37508 | https://api.github.com/repos/pandas-dev/pandas/pulls/37515 | 2020-10-30T09:06:46Z | 2020-10-30T10:24:41Z | 2020-10-30T10:24:41Z | 2020-10-30T10:50:13Z |
Backport PR #37502: REGR: revert behaviour of getitem with assigning with a Series | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 6cb728800dc68..7d35e8b12b9b8 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -28,6 +28,7 @@ Fixed regressions
- Fixed regression in certain offsets (:meth:`pd.offsets.Day() <pandas.tseries.offsets.Day... | Backport of https://github.com/pandas-dev/pandas/pull/37502 | https://api.github.com/repos/pandas-dev/pandas/pulls/37514 | 2020-10-30T08:42:39Z | 2020-10-30T09:35:45Z | 2020-10-30T09:35:45Z | 2020-10-30T09:35:48Z |
TST: setting value at MultiIndex slice using .loc | diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py
index 8fb418ab78307..eb84f771204f6 100644
--- a/pandas/tests/indexing/test_loc.py
+++ b/pandas/tests/indexing/test_loc.py
@@ -1062,6 +1062,24 @@ def test_loc_getitem_access_none_value_in_multiindex(self):
result = ser.loc[("Leve... | - [x] closes #34870
- [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/37513 | 2020-10-30T03:38:24Z | 2020-10-31T17:19:06Z | 2020-10-31T17:19:06Z | 2020-10-31T17:19:09Z |
CLN: remove _vendored/typing_extensions | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 315aeb6423254..d9e48ab9b6189 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -104,13 +104,13 @@ repos:
language: python
entry: python scripts/validate_unwanted_patterns.py --validation-type="private_import_acros... | - [x] closes #37119
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
As discussed in #37119, the vendored version does not serve its intended purpose. Moreover, #37137 shows a way to get by without it. | https://api.github.com/repos/pandas-dev/pandas/pulls/37511 | 2020-10-30T02:38:57Z | 2020-10-30T13:20:34Z | 2020-10-30T13:20:34Z | 2020-10-30T14:56:51Z |
CLN: assorted cleanups | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index 948ffdc1f7c01..726ca0ce4d776 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -233,6 +233,9 @@ def fillna(self: _T, value=None, method=None, limit=None) -> _T:
new_values = self.copy()
... | https://api.github.com/repos/pandas-dev/pandas/pulls/37509 | 2020-10-30T02:25:01Z | 2020-10-30T16:04:08Z | 2020-10-30T16:04:08Z | 2020-10-30T17:01:42Z | |
REGR: inplace Series op not actually operating inplace | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index dc0b5d3976489..0951cfdcc5ec7 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -29,6 +29,7 @@ Fixed regressions
- Fixed regression in :class:`StataReader` which required ``chunksize`` to be manually set... | - [x] closes #36373
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
alternative to #37497, ensures that Series inplace ops are actually inplace whenever possible. The whatsnew is copied verbatim from #37497, the new... | https://api.github.com/repos/pandas-dev/pandas/pulls/37508 | 2020-10-29T23:52:07Z | 2020-10-30T08:59:45Z | 2020-10-30T08:59:45Z | 2020-10-30T15:00:52Z |
TST/REF: collect indexing tests by method | diff --git a/pandas/tests/frame/methods/test_reset_index.py b/pandas/tests/frame/methods/test_reset_index.py
index 3be45e2d48e19..6aebc23d1c016 100644
--- a/pandas/tests/frame/methods/test_reset_index.py
+++ b/pandas/tests/frame/methods/test_reset_index.py
@@ -8,6 +8,8 @@
import pandas as pd
from pandas import (
+ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/37507 | 2020-10-29T23:40:42Z | 2020-10-30T17:16:17Z | 2020-10-30T17:16:17Z | 2020-10-30T17:16:48Z | |
TST: pct_change from generic to frame | diff --git a/pandas/tests/frame/methods/test_pct_change.py b/pandas/tests/frame/methods/test_pct_change.py
index 8f3f37fb9fff7..56fb9ab0d8f00 100644
--- a/pandas/tests/frame/methods/test_pct_change.py
+++ b/pandas/tests/frame/methods/test_pct_change.py
@@ -6,6 +6,27 @@
class TestDataFramePctChange:
+ @pytest.ma... | - [ ] 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/37504 | 2020-10-29T22:34:09Z | 2020-10-30T13:24:00Z | 2020-10-30T13:24:00Z | 2020-10-30T14:49:07Z |
Backport PR #37473 on branch 1.1.x (CI: 32 bit maybe_indices_to_slice) | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 6bf0aba128e39..7127c57defee3 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -36,6 +36,7 @@ from numpy cimport (
float32_t,
float64_t,
int64_t,
+ intp_t,
ndarray,
uint8_t,
uint64_t,
@@ -490,7 +491,7 @@ def ha... | Backport PR #37473: CI: 32 bit maybe_indices_to_slice | https://api.github.com/repos/pandas-dev/pandas/pulls/37503 | 2020-10-29T22:03:15Z | 2020-10-30T10:12:38Z | 2020-10-30T10:12:38Z | 2020-10-30T10:12:38Z |
REGR: revert behaviour of getitem with assigning with a Series | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 6cb728800dc68..7d35e8b12b9b8 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -28,6 +28,7 @@ Fixed regressions
- Fixed regression in certain offsets (:meth:`pd.offsets.Day() <pandas.tseries.offsets.Day... | Closes #37427
@jbrockmendel this is reverting part of the clean-up you did in https://github.com/pandas-dev/pandas/pull/33643. I think the behavioural change was unintentional in that PR. We might still want to do it for 1.2, but then with a deprecation first. | https://api.github.com/repos/pandas-dev/pandas/pulls/37502 | 2020-10-29T22:00:13Z | 2020-10-30T08:14:54Z | 2020-10-30T08:14:54Z | 2020-10-30T08:42:59Z |
Backport PR #37496 on branch 1.1.x (DOC: release date for 1.1.4) | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 6cb728800dc68..dc0b5d3976489 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -1,7 +1,7 @@
.. _whatsnew_114:
-What's new in 1.1.4 (??)
-------------------------
+What's new in 1.1.4 (October 30, 2020... | Backport PR #37496: DOC: release date for 1.1.4 | https://api.github.com/repos/pandas-dev/pandas/pulls/37500 | 2020-10-29T21:48:21Z | 2020-10-30T10:32:39Z | 2020-10-30T10:32:39Z | 2020-10-30T10:32:39Z |
REGR: fix isin for large series with nan and mixed object dtype (causing regression in read_csv) | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 6cb728800dc68..277edd15a9322 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :func:`read_... | Closes #37094
| https://api.github.com/repos/pandas-dev/pandas/pulls/37499 | 2020-10-29T21:33:13Z | 2020-10-30T10:51:29Z | 2020-10-30T10:51:28Z | 2020-10-30T11:02:59Z |
TST: tz_localize/tz_convert unclear test assertions | diff --git a/pandas/tests/frame/methods/test_tz_convert.py b/pandas/tests/frame/methods/test_tz_convert.py
index d2ab7a386a92d..c70e479723644 100644
--- a/pandas/tests/frame/methods/test_tz_convert.py
+++ b/pandas/tests/frame/methods/test_tz_convert.py
@@ -1,7 +1,7 @@
import numpy as np
import pytest
-from pandas i... | kill off tests.series.test_timezones. | https://api.github.com/repos/pandas-dev/pandas/pulls/37498 | 2020-10-29T21:21:54Z | 2020-10-30T13:21:14Z | 2020-10-30T13:21:14Z | 2020-10-30T14:53:02Z |
DOC: release date for 1.1.4 | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 6cb728800dc68..dc0b5d3976489 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -1,7 +1,7 @@
.. _whatsnew_114:
-What's new in 1.1.4 (??)
-------------------------
+What's new in 1.1.4 (October 30, 2020... | https://api.github.com/repos/pandas-dev/pandas/pulls/37496 | 2020-10-29T20:52:07Z | 2020-10-29T21:47:47Z | 2020-10-29T21:47:47Z | 2020-10-29T22:00:51Z | |
BUG: Series[uintarray] failing to raise KeyError | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 812af544ed9d8..312a850ec3fd1 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -439,6 +439,7 @@ Indexing
- Bug in :meth:`DataFrame.__getitem__` and :meth:`DataFrame.loc.__getitem__` with :class:`Interva... | - [x] closes #37218
- [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/37495 | 2020-10-29T20:24:18Z | 2020-10-30T22:45:57Z | 2020-10-30T22:45:57Z | 2020-10-30T22:49:43Z |
CLN: unify numpy.random-related imports | diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index 728ffc6f85ba4..3e16ec134db46 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -6,7 +6,6 @@
import warnings
import numpy as np
-from numpy.random import rand, randint, ran... | - [x] closes #37053 ~~(keep this issue open until both #37492 and #37117 are completed)~~
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
# update 2020-10-30
This is the replacement for #37103, since I messed up the git timeline in the p... | https://api.github.com/repos/pandas-dev/pandas/pulls/37492 | 2020-10-29T18:41:55Z | 2020-10-30T13:22:51Z | 2020-10-30T13:22:51Z | 2020-10-30T14:08:07Z |
TST/REF: loc/iloc/at/iat tests go in tests.indexing | diff --git a/pandas/tests/frame/indexing/test_at.py b/pandas/tests/indexing/test_at.py
similarity index 100%
rename from pandas/tests/frame/indexing/test_at.py
rename to pandas/tests/indexing/test_at.py
diff --git a/pandas/tests/frame/indexing/test_iat.py b/pandas/tests/indexing/test_iat.py
similarity index 100%
rename... | not tests.(series|frame).indexing
`(Series|DataFrame).__(getitem|setitem)__` tests go in the tests.(series|frame).indexing
| https://api.github.com/repos/pandas-dev/pandas/pulls/37487 | 2020-10-29T15:54:34Z | 2020-10-30T13:28:08Z | 2020-10-30T13:28:08Z | 2020-10-30T14:44:14Z |
REF: separate out cases in setitem_with_indexer | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index dad9ba446941f..e376f930c8c63 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1673,66 +1673,14 @@ def _setitem_with_indexer(self, indexer, value):
# we have an equal len Frame
if isinstance(val... | Preparatory to fixing a multiple-paths issue in setitem_with_indexer | https://api.github.com/repos/pandas-dev/pandas/pulls/37481 | 2020-10-29T02:50:57Z | 2020-10-30T16:06:06Z | 2020-10-30T16:06:06Z | 2020-10-30T17:10:45Z |
ENH: Fix output of assert_frame_equal if indexes differ and check_like=True | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 6f9e8d6a98d80..6f137302d4994 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -228,6 +228,7 @@ Other enhancements
- :class:`Rolling` now supports the ``closed`` argument for fixed windows (:issue:`3431... | - [x] closes #37478
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
As described in #37478 This PR fixes some very misleading output when ```assert_frame_equal``` is called with differing index values and ```check_l... | https://api.github.com/repos/pandas-dev/pandas/pulls/37479 | 2020-10-29T01:04:40Z | 2020-11-02T13:43:42Z | 2020-11-02T13:43:42Z | 2020-11-02T13:43:46Z |
REF: helper to ensure column indexer is iterable | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 3d491c7127e38..dad9ba446941f 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1648,10 +1648,7 @@ def _setitem_with_indexer(self, indexer, value):
labels = item_labels[info_idx]
# Ensure we have somethi... | Helper method separated out from upcoming PR to split _setitem_with_indexer into more manageable pieces, which in turn is part of fixing a goes-through-two-separate-paths problem. | https://api.github.com/repos/pandas-dev/pandas/pulls/37475 | 2020-10-28T18:36:05Z | 2020-10-29T01:05:14Z | 2020-10-29T01:05:14Z | 2020-10-29T02:01:27Z |
CLN: Add init files in test folders | diff --git a/pandas/tests/frame/indexing/__init__.py b/pandas/tests/frame/indexing/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/window/moments/__init__.py b/pandas/tests/window/moments/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
| was not sure why they were missing there, so I added them
| https://api.github.com/repos/pandas-dev/pandas/pulls/37474 | 2020-10-28T18:22:07Z | 2020-10-28T21:55:53Z | 2020-10-28T21:55:52Z | 2020-10-28T21:56:29Z |
CI: 32 bit maybe_indices_to_slice | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 2cb4df7e054fe..e493e5e9d41d3 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -36,6 +36,7 @@ from numpy cimport (
float32_t,
float64_t,
int64_t,
+ intp_t,
ndarray,
uint8_t,
uint64_t,
@@ -490,7 +491,7 @@ def ha... | - [ ] 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/37473 | 2020-10-28T17:21:27Z | 2020-10-29T21:46:29Z | 2020-10-29T21:46:29Z | 2020-10-29T22:03:06Z |
TST: collect tests by method from test_api | diff --git a/pandas/tests/series/methods/test_copy.py b/pandas/tests/series/methods/test_copy.py
new file mode 100644
index 0000000000000..6201c0f5f7c29
--- /dev/null
+++ b/pandas/tests/series/methods/test_copy.py
@@ -0,0 +1,71 @@
+import numpy as np
+import pytest
+
+from pandas import Series, Timestamp
+import pandas... | - [ ] 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/37472 | 2020-10-28T17:11:17Z | 2020-10-29T01:04:18Z | 2020-10-29T01:04:18Z | 2020-10-29T01:59:23Z |
Backport PR #35875 on branch 1.1.x (COMPAT: Ensure rolling indexers return intp during take operations) | diff --git a/pandas/core/window/indexers.py b/pandas/core/window/indexers.py
index 7cbe34cdebf9f..7c76a8e2a0b22 100644
--- a/pandas/core/window/indexers.py
+++ b/pandas/core/window/indexers.py
@@ -7,6 +7,8 @@
from pandas._libs.window.indexers import calculate_variable_window_bounds
from pandas.util._decorators import... | Backport PR #35875: COMPAT: Ensure rolling indexers return intp during take operations | https://api.github.com/repos/pandas-dev/pandas/pulls/37471 | 2020-10-28T15:57:14Z | 2020-10-28T17:58:00Z | 2020-10-28T17:58:00Z | 2020-10-28T17:58:00Z |
TST/REF: finish collecting sample tests | diff --git a/pandas/tests/frame/methods/test_sample.py b/pandas/tests/frame/methods/test_sample.py
deleted file mode 100644
index 843c44bcf1471..0000000000000
--- a/pandas/tests/frame/methods/test_sample.py
+++ /dev/null
@@ -1,53 +0,0 @@
-import numpy as np
-import pytest
-
-from pandas.compat.numpy import np_version_u... | Parametrizes a few tests from the frame.methods.test_sample file, splits up giant tests from the generic file. | https://api.github.com/repos/pandas-dev/pandas/pulls/37470 | 2020-10-28T15:46:37Z | 2020-10-29T01:02:30Z | 2020-10-29T01:02:30Z | 2020-10-29T01:58:35Z |
BUG: Fix for #37454: allow reversed axis when plotting with TimedeltaIndex | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 62da3c0c5cddc..694a9afa35130 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -642,9 +642,10 @@ Plotting
- Bug in :meth:`DataFrame.plot` was rotating xticklabels when ``subplots=True``, even if the x-a... | - [x] closes #37454
- [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/37469 | 2020-10-28T13:11:42Z | 2020-11-18T00:55:36Z | 2020-11-18T00:55:36Z | 2020-11-18T00:55:41Z |
BUG: Correct crosstab for categorical inputs | diff --git a/pandas/core/reshape/pivot.py b/pandas/core/reshape/pivot.py
index 842a42f80e1b7..8fae01cb30d3d 100644
--- a/pandas/core/reshape/pivot.py
+++ b/pandas/core/reshape/pivot.py
@@ -329,8 +329,7 @@ def _all_key(key):
piece = piece.copy()
try:
piece[all_key] ... | Change catch types to reflect error changes
closes #37465
- [X] closes #37465
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry (N/A: Never released, caught in statsmodels pre-release testing)
| https://api.github.com/repos/pandas-dev/pandas/pulls/37468 | 2020-10-28T11:53:26Z | 2020-10-31T15:16:56Z | 2020-10-31T15:16:56Z | 2021-09-10T11:18:13Z |
Backport PR #35898 on branch 1.1.x: CI: docker 32-bit linux build | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 113ad3e338952..b1091ea7f60e4 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -26,3 +26,28 @@ jobs:
parameters:
name: Windows
vmImage: vs2017-win2016
+
+- job: py37_32bit
+ pool:
+ vmImage: ubuntu-18.04
+
+ steps:
+ - script:... | Backport PR #35898 | https://api.github.com/repos/pandas-dev/pandas/pulls/37466 | 2020-10-28T10:46:05Z | 2020-10-28T12:20:33Z | 2020-10-28T12:20:33Z | 2020-10-28T12:22:41Z |
Backport PR #37432 on branch 1.1.x | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 467e3ef00c1a7..6cb728800dc68 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -27,6 +27,7 @@ Fixed regressions
- Fixed regression where slicing :class:`DatetimeIndex` raised :exc:`AssertionError` on ir... | (cherry picked from commit 52925335fe6d5f1ea6c79bb03da70654d9be9668)
Tried to merge it. Hopefully nothing was broken in the process. Run the indexing tests locally, but have to wait for ci
cc @simonjayhawkins | https://api.github.com/repos/pandas-dev/pandas/pulls/37463 | 2020-10-28T08:27:23Z | 2020-10-28T09:27:50Z | 2020-10-28T09:27:50Z | 2020-10-28T09:32:25Z |
BUG: Metadata propagation for groupby iterator | diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst
index cf728d94b2a55..a122154904996 100644
--- a/doc/source/whatsnew/v1.1.5.rst
+++ b/doc/source/whatsnew/v1.1.5.rst
@@ -23,7 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Bug in metadata propagation for ``groupby`` iterator (:issue:... | Addresses part of #28283
This PR ensures that `__finalize__` is called for objects returned by iterator over `.groupby`-results.
Based on the discussion and benchmarks in PR #35688 (see https://github.com/pandas-dev/pandas/pull/35688#issuecomment-675367517), `__finalize__` is _not_ called for intermediate objects u... | https://api.github.com/repos/pandas-dev/pandas/pulls/37461 | 2020-10-28T07:30:05Z | 2020-11-04T13:22:55Z | 2020-11-04T13:22:55Z | 2020-11-04T14:19:10Z |
Backport PR #37439 on branch 1.1.x (REGR: fix rank algo for read-only data) | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 33a52353bed7e..467e3ef00c1a7 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression where :meth:`DataFrame.agg` would fail with :exc:`TypeError` when passe... | Backport PR #37439: REGR: fix rank algo for read-only data | https://api.github.com/repos/pandas-dev/pandas/pulls/37459 | 2020-10-28T02:23:41Z | 2020-10-28T07:24:12Z | 2020-10-28T07:24:12Z | 2020-10-28T07:24:13Z |
CLN: de-duplicate validator | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index a6c74294c4c75..cd312b09ab6c1 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -602,10 +602,9 @@ def _validate_listlike(self, value, allow_object: bool = False):
pass
... | - [ ] 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/37458 | 2020-10-28T02:21:57Z | 2020-10-30T16:07:45Z | 2020-10-30T16:07:45Z | 2020-10-30T17:02:31Z |
BUG: BusinessDay.apply_index with offset | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 7c850ffedfcab..281edf1834fb2 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -390,6 +390,7 @@ Datetimelike
- Bug in :meth:`DatetimeIndex.equals` and :meth:`TimedeltaIndex.equals` incorrectly consideri... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/37457 | 2020-10-28T01:05:48Z | 2020-11-01T01:50:41Z | 2020-11-01T01:50:41Z | 2020-11-01T02:16:39Z |
TST/REF: misplaced .xs tests | diff --git a/pandas/tests/frame/indexing/test_xs.py b/pandas/tests/frame/indexing/test_xs.py
index 20e8e252615d3..11e076f313540 100644
--- a/pandas/tests/frame/indexing/test_xs.py
+++ b/pandas/tests/frame/indexing/test_xs.py
@@ -3,12 +3,30 @@
import numpy as np
import pytest
-from pandas import DataFrame, Index, Se... | https://api.github.com/repos/pandas-dev/pandas/pulls/37456 | 2020-10-28T00:39:50Z | 2020-10-29T01:01:03Z | 2020-10-29T01:01:03Z | 2020-10-29T01:59:36Z | |
CI: Troubleshoot PY38 windows build | diff --git a/ci/azure/windows.yml b/ci/azure/windows.yml
index 5938ba1fd69f5..601a834d6306a 100644
--- a/ci/azure/windows.yml
+++ b/ci/azure/windows.yml
@@ -16,7 +16,7 @@ jobs:
py38_np18:
ENV_FILE: ci/deps/azure-windows-38.yaml
CONDA_PY: "38"
- PATTERN: "not slow and not network"
+ ... | Some of the error messages look like a OOM, so this is just trying cutting down the number of tests collected/run by ~40% | https://api.github.com/repos/pandas-dev/pandas/pulls/37455 | 2020-10-27T23:07:06Z | 2020-10-31T14:19:49Z | 2020-10-31T14:19:49Z | 2020-10-31T15:20:28Z |
ENH: Improve numerical stability for Pearson corr() and cov() | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index f1f24ab7a101b..53c56fe3f6909 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -219,6 +219,7 @@ Other enhancements
- Where possible :meth:`RangeIndex.difference` and :meth:`RangeIndex.symmetric_differen... | - [x] closes #37448
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Floating number issues when summing the same number often enough... | https://api.github.com/repos/pandas-dev/pandas/pulls/37453 | 2020-10-27T22:19:43Z | 2020-10-30T19:57:22Z | 2020-10-30T19:57:22Z | 2020-10-30T20:03:38Z |
CLN: Breakup agg | diff --git a/pandas/core/aggregation.py b/pandas/core/aggregation.py
index 4ab0c2515f5fa..639b5f31835d1 100644
--- a/pandas/core/aggregation.py
+++ b/pandas/core/aggregation.py
@@ -528,133 +528,44 @@ def transform_str_or_callable(
return func(obj, *args, **kwargs)
-def aggregate(obj, arg: AggFuncType, *arg... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Extracted dictionary parts to `agg_dict_like`, and changed from `isinstance(arg, dict)` to `is_dict_like(arg)`. Also renamed `aggregate_multiple_func... | https://api.github.com/repos/pandas-dev/pandas/pulls/37452 | 2020-10-27T22:15:29Z | 2020-10-30T21:55:04Z | 2020-10-30T21:55:04Z | 2020-10-31T02:28:57Z |
TST/REF: collect tests by method from test_io | diff --git a/pandas/tests/io/test_pickle.py b/pandas/tests/io/test_pickle.py
index afc271264edbf..890146f0789ae 100644
--- a/pandas/tests/io/test_pickle.py
+++ b/pandas/tests/io/test_pickle.py
@@ -23,13 +23,14 @@
from warnings import catch_warnings, simplefilter
import zipfile
+import numpy as np
import pytest
... | - [ ] 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/37451 | 2020-10-27T18:44:32Z | 2020-10-29T01:00:05Z | 2020-10-29T01:00:05Z | 2020-10-29T02:02:20Z |
DEPS: Update cython | diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json
index 46640505a4c84..b1ea2682b7ea7 100644
--- a/asv_bench/asv.conf.json
+++ b/asv_bench/asv.conf.json
@@ -42,7 +42,7 @@
// followed by the pip installed packages).
"matrix": {
"numpy": [],
- "Cython": ["0.29.30"],
+ "Cython"... | - [x] xref #47978
- [x] xref #46848 | https://api.github.com/repos/pandas-dev/pandas/pulls/47979 | 2022-08-05T13:10:09Z | 2022-08-08T19:00:00Z | 2022-08-08T19:00:00Z | 2022-08-08T21:29:07Z |
REF: Move Series logic from Index._get_values_for_loc | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 6620cc1786340..4b47d71c453c8 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -140,6 +140,7 @@
ensure_index,
)
import pandas.core.indexes.base as ibase
+from pandas.core.indexes.multi import maybe_droplevels
from pandas.core.index... | Cleaner abstraction. | https://api.github.com/repos/pandas-dev/pandas/pulls/47975 | 2022-08-04T23:01:27Z | 2022-10-24T21:30:49Z | 2022-10-24T21:30:49Z | 2022-10-24T21:34:23Z |
TST/CLN: Consolidate creation of groupby method args | diff --git a/pandas/tests/groupby/__init__.py b/pandas/tests/groupby/__init__.py
index e69de29bb2d1d..c63aa568a15dc 100644
--- a/pandas/tests/groupby/__init__.py
+++ b/pandas/tests/groupby/__init__.py
@@ -0,0 +1,27 @@
+def get_groupby_method_args(name, obj):
+ """
+ Get required arguments for a groupby method.
+
... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/47973 | 2022-08-04T21:23:17Z | 2022-08-08T21:57:19Z | 2022-08-08T21:57:19Z | 2022-08-09T21:12:27Z |
BUG: pivot_table raising TypeError with ea dtype and dropna True | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index bdf811f6a8f6a..c54730a78ad36 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -1027,6 +1027,7 @@ Reshaping
- Bug in :func:`concat` losing dtype of columns when ``join="outer"`` and ``sort=True`` (:issu... | - [x] closes #47477 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/47972 | 2022-08-04T21:21:29Z | 2022-08-08T22:12:22Z | 2022-08-08T22:12:22Z | 2022-08-09T06:38:56Z |
REF: Use `Styler` implementation for `DataFrame.to_latex` | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index cb51365fa27cd..e3a4c2bc0daef 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -452,6 +452,37 @@ Now, the axes return an empty :class:`RangeIndex`.
pd.Series().index
pd.DataFrame().axes
+.. _wh... | After a year of patching up things in #41649, and @jreback merge of #47864 I can finally propose this for review.
# Objective
- Maintain `DataFrame.to_latex` with its existing arguments, adding no arguments
- Process the rendering via `Styler.to_latex`
- Eliminate the need for `LatexFormatter` (code removal no... | https://api.github.com/repos/pandas-dev/pandas/pulls/47970 | 2022-08-04T20:38:08Z | 2023-01-19T20:01:01Z | 2023-01-19T20:01:01Z | 2023-01-19T21:49:50Z |
TYP: move imports inside TYPE_CHECKING | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 12352c4490f29..cd88eb1e49be8 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -77,7 +77,6 @@
import pandas.core.algorithms as algos
from pandas.core.arrays import datetimelike as dtl
-from pandas.core.array... | These are found by flake8-type-checking. There are more cases (all of the _typing imports).
If flake8-type-checking should be run on the CI, it would be good to move all the _typing imports inside TYPE_CHECKING (not sure whether we want to do that). | https://api.github.com/repos/pandas-dev/pandas/pulls/47968 | 2022-08-04T16:45:56Z | 2022-08-04T18:53:02Z | 2022-08-04T18:53:02Z | 2022-09-10T01:38:48Z |
CI: fix mypy typing errors (pin numpy) on branch 1.4.x | diff --git a/environment.yml b/environment.yml
index 83b00c0dd6421..a20ccc797eb79 100644
--- a/environment.yml
+++ b/environment.yml
@@ -3,7 +3,7 @@ channels:
- conda-forge
dependencies:
# required
- - numpy>=1.18.5
+ - numpy>=1.18.5, <=1.22.4 # GH#47569
- python=3.8
- python-dateutil>=2.8.1
- pytz
d... | - [ ] closes #47569 (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/47967 | 2022-08-04T16:33:11Z | 2022-08-04T18:10:14Z | 2022-08-04T18:10:14Z | 2022-08-04T18:46:31Z |
Backport PR #47951 on branch 1.4.x (DOC: Fix missing s3 file in read xml doc example) | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 705861a3aa568..862441e9b4cad 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -3032,15 +3032,15 @@ Read in the content of the "books.xml" as instance of ``StringIO`` or
df = pd.read_xml(bio)
df
-Even ... | Backport PR #47951: DOC: Fix missing s3 file in read xml doc example | https://api.github.com/repos/pandas-dev/pandas/pulls/47957 | 2022-08-04T06:25:49Z | 2022-08-04T09:45:49Z | 2022-08-04T09:45:49Z | 2022-08-04T09:45:49Z |
Backport PR #47949 on branch 1.4.x (TST: Add test for loc not updating cache correctly) (#47949) | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index 2b3223e0ff768..dce8fb60ecdd6 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :func:`conca... | Backport PR #47949 | https://api.github.com/repos/pandas-dev/pandas/pulls/47954 | 2022-08-03T23:17:35Z | 2022-08-04T09:11:53Z | 2022-08-04T09:11:53Z | 2022-08-04T13:52:57Z |
DOC: Fix missing s3 file in read xml doc example | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 25625dba1080f..0f6d67a4f6f63 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -3054,15 +3054,15 @@ Read in the content of the "books.xml" as instance of ``StringIO`` or
df = pd.read_xml(bio)
df
-Even ... | - [x] closes #47945 (Replace xxxx with the Github issue number)
This returns now
```
journal-id journal-title issn publisher
0 Cardiovasc Ultrasound Cardiovascular Ultrasound 1476-7120 NaN
```
Fixes ci for now, happy to open another issue, if someone thinks we cou... | https://api.github.com/repos/pandas-dev/pandas/pulls/47951 | 2022-08-03T21:13:15Z | 2022-08-04T06:25:09Z | 2022-08-04T06:25:09Z | 2022-08-04T13:52:43Z |
TST: Add test for loc not updating cache correctly | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index 89487bfde94a5..a8d47067a9a86 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :func:`conca... | - [x] closes #47867 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/47949 | 2022-08-03T19:49:15Z | 2022-08-03T22:55:49Z | 2022-08-03T22:55:49Z | 2022-08-04T09:08:04Z |
DOC: Plotting / Visualization without Jupyter | diff --git a/doc/source/user_guide/visualization.rst b/doc/source/user_guide/visualization.rst
index d6426fe8bed2d..5ce2f7ca599a7 100644
--- a/doc/source/user_guide/visualization.rst
+++ b/doc/source/user_guide/visualization.rst
@@ -6,6 +6,11 @@
Chart visualization
*******************
+
+.. note::
+
+ The example... | Added a note at the top of the page clarifying that the examples assume you're working jupyter. @MarcoGorelli asked to be tagged to this PR. Hopefully I did everything correctly as this is my first PR.
- [x] closes #47861 (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pyd... | https://api.github.com/repos/pandas-dev/pandas/pulls/47948 | 2022-08-03T18:56:06Z | 2022-08-09T19:12:30Z | 2022-08-09T19:12:30Z | 2023-01-18T15:21:27Z |
REGR: fix error caused by deprecation warning in pd.merge when joining two Series | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index 1e7ed256c05ef..49e82f3abe71d 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.loc` not updating the cache correctly after values ... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
There is a small bug/typ... | https://api.github.com/repos/pandas-dev/pandas/pulls/47946 | 2022-08-03T18:02:05Z | 2022-08-19T12:57:10Z | 2022-08-19T12:57:09Z | 2022-08-22T11:46:07Z |
DOC: more exchange -> interchange renames | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 6e38024e02f36..3225195513fe5 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -14,23 +14,23 @@ including other versions of pandas.
Enhancements
~~~~~~~~~~~~
-.. _whatsnew_150.enhancements.dataframe_... | A few more renames as follow-up on https://github.com/pandas-dev/pandas/pull/47888 | https://api.github.com/repos/pandas-dev/pandas/pulls/47940 | 2022-08-03T06:56:47Z | 2022-08-03T14:13:11Z | 2022-08-03T14:13:11Z | 2022-08-10T17:42:48Z |
BUG: avoid relying on external packaging package in interchange protocol | diff --git a/pandas/core/interchange/buffer.py b/pandas/core/interchange/buffer.py
index 1d24efc263ca0..0f62dd00a0f41 100644
--- a/pandas/core/interchange/buffer.py
+++ b/pandas/core/interchange/buffer.py
@@ -1,14 +1,14 @@
from __future__ import annotations
import numpy as np
-from packaging import version
from ... | I noticed this by accident, and we have a vendored version of `packaging` that we otherwise use internally.
(this might be a good case to add a code check for? cc @MarcoGorelli) | https://api.github.com/repos/pandas-dev/pandas/pulls/47939 | 2022-08-03T06:51:03Z | 2022-08-03T14:20:03Z | 2022-08-03T14:20:03Z | 2022-08-26T07:18:01Z |
WEB: Accept PDEP-1 | diff --git a/web/pandas/pdeps/0001-purpose-and-guidelines.md b/web/pandas/pdeps/0001-purpose-and-guidelines.md
index 085f675974b2e..e09c5bd01204f 100644
--- a/web/pandas/pdeps/0001-purpose-and-guidelines.md
+++ b/web/pandas/pdeps/0001-purpose-and-guidelines.md
@@ -1,7 +1,7 @@
# PDEP-1: Purpose and guidelines
- Crea... | I forgot to accept PDEP-1 before merging #47444 | https://api.github.com/repos/pandas-dev/pandas/pulls/47938 | 2022-08-03T06:50:35Z | 2022-08-03T14:12:28Z | 2022-08-03T14:12:28Z | 2022-08-06T13:40:27Z |
CLN: remove deprecated DEF | diff --git a/pandas/_libs/hashing.pyx b/pandas/_libs/hashing.pyx
index 4a12659aa1f57..9ea0fa73cbc9f 100644
--- a/pandas/_libs/hashing.pyx
+++ b/pandas/_libs/hashing.pyx
@@ -21,9 +21,6 @@ import_array()
from pandas._libs.util cimport is_nan
-DEF cROUNDS = 2
-DEF dROUNDS = 4
-
@cython.boundscheck(False)
def hash... | xref https://github.com/cython/cython/issues/4310
discovered in #47442 | https://api.github.com/repos/pandas-dev/pandas/pulls/47936 | 2022-08-03T06:07:03Z | 2022-08-08T22:36:23Z | 2022-08-08T22:36:23Z | 2022-11-18T02:18:38Z |
Fix out-of-bounds heap access in internals.pyx. | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index be71fe53d35db..159fdbc080fb4 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -469,12 +469,14 @@ def get_blkno_indexers(
n = blknos.shape[0]
result = list()
+
+ if n == 0:
+ return result
+
s... | If blknos is empty, we unconditionally access blknos[start] where start
is 0. This is an out-of-bounds heap access that can be caught by
AddressSanitizer, but it's easy to avoid since
we are going to ignore the result anyway.
No new tests, because this does not change any observable behaviors. | https://api.github.com/repos/pandas-dev/pandas/pulls/47935 | 2022-08-03T01:05:02Z | 2022-08-08T22:39:27Z | 2022-08-08T22:39:27Z | 2022-08-08T22:40:00Z |
ENH: copy kwd for add_suffix/add_prefix | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 6e38024e02f36..cd93329a75c8a 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -279,6 +279,7 @@ Other enhancements
- :class:`Series` reducers (e.g. ``min``, ``max``, ``sum``, ``mean``) will now successf... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/47934 | 2022-08-02T23:12:16Z | 2022-08-10T00:13:33Z | 2022-08-10T00:13:33Z | 2022-08-10T01:23:54Z |
ENH: copy keyword to set_axis | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 02db4cbe0e8a5..1913e3857f2d3 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -294,6 +294,7 @@ Other enhancements
- :meth:`RangeIndex.union` now can return a :class:`RangeIndex` instead of a :class:`In... | This also opens the option of deprecating `inplace` here.
- [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks pass... | https://api.github.com/repos/pandas-dev/pandas/pulls/47932 | 2022-08-02T17:37:08Z | 2022-08-17T00:56:12Z | 2022-08-17T00:56:12Z | 2022-08-17T00:58:22Z |
ENH: Support For Interval __contains__ Other Interval (#46613) | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index b71d294b97f9a..e54819e31c90f 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -292,6 +292,7 @@ Other enhancements
- :class:`Series` reducers (e.g. ``min``, ``max``, ``sum``, ``mean``) will now successf... | - [x] closes #46613
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/47927 | 2022-08-02T05:10:12Z | 2022-08-15T16:19:39Z | 2022-08-15T16:19:39Z | 2022-08-15T16:19:52Z |
TYP: pandas.core.series annotations from pandas-stubs | diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py
index 369e4b3454b65..5e0af3c0bc07d 100644
--- a/pandas/_testing/asserters.py
+++ b/pandas/_testing/asserters.py
@@ -866,7 +866,7 @@ def assert_series_equal(
left,
right,
check_dtype: bool | Literal["equiv"] = True,
- check_index_... | contains also changes in generic/frame.py but only to keep them consistent with series.py
edit: and added annotations for frame.py | https://api.github.com/repos/pandas-dev/pandas/pulls/47926 | 2022-08-02T03:56:15Z | 2022-08-15T23:22:45Z | 2022-08-15T23:22:45Z | 2022-09-10T01:38:38Z |
DOC: Move whatsnew for indexing regression | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index 89487bfde94a5..4fa64a67b61d1 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -27,6 +27,7 @@ Bug fixes
- The :class:`errors.FutureWarning` raised when passing arguments (other than ``filepath_or_buffer... | xref #47921, https://github.com/pandas-dev/pandas/issues/47867#issuecomment-1198412271
Moves the whatsnew
| https://api.github.com/repos/pandas-dev/pandas/pulls/47924 | 2022-08-01T22:22:18Z | 2022-08-03T21:06:45Z | 2022-08-03T21:06:45Z | 2022-08-03T21:40:48Z |
DOC: Add pandas-stubs and potential 2.0 API breaks to 1.5 whatsnew | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 502e37705abfb..2576545e538c4 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -14,6 +14,16 @@ including other versions of pandas.
Enhancements
~~~~~~~~~~~~
+.. _whatsnew_150.enhancements.pandas-stub... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in the latest `doc/source/whatsnew/v1.5.0.rst` file if fixing a bug or adding a new feature.
* Added note about `pandas-stubs` library
* Added note about potential 2.0 A... | https://api.github.com/repos/pandas-dev/pandas/pulls/47922 | 2022-08-01T22:06:46Z | 2022-08-09T16:34:02Z | 2022-08-09T16:34:02Z | 2022-08-09T16:34:06Z |
Backport PR #45287 on branch 1.4.x (BUG: frame[x].loc[y] inconsistent with frame.at[x, y]) (#45287) | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index 6bd7378e05404..2b3223e0ff768 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -26,6 +26,7 @@ Bug fixes
~~~~~~~~~
- The :class:`errors.FutureWarning` raised when passing arguments (other than ``filepat... | Backport PR #45287, see https://github.com/pandas-dev/pandas/issues/47867#issuecomment-1198412271
Lets see if this works | https://api.github.com/repos/pandas-dev/pandas/pulls/47921 | 2022-08-01T21:33:37Z | 2022-08-03T19:16:18Z | 2022-08-03T19:16:18Z | 2022-08-03T19:29:13Z |
DOC/TST: Clarify Series.str.get supports passing hashable label | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index d50daad9a22b1..e7a564c8f3f90 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -996,15 +996,15 @@ def rpartition(self, sep=" ", expand=True):
def get(self, i):
"""
- Extract el... | - [ ] closes #47911 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/47918 | 2022-08-01T20:28:00Z | 2022-08-15T17:08:20Z | 2022-08-15T17:08:20Z | 2022-08-15T17:58:00Z |
PERF: MultiIndex unpickle | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 26b833f78bec6..bdf32c5296cc6 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -259,6 +259,10 @@ def _new_Index(cls, d):
# GH#23752 "labels" kwarg has been replaced with "codes"
d["codes"] ... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/47916 | 2022-08-01T19:05:55Z | 2022-08-01T21:24:19Z | 2022-08-01T21:24:19Z | 2022-08-01T21:27:28Z |
TYP: pandas.core.generic from pandas-stubs | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index d138ebb9c02a3..3f2d37e6b52a9 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -774,6 +774,7 @@ Other Deprecations
- Deprecated :meth:`Series.rank` returning an empty result when the dtype is non-numeri... | Some annotations from pandas-stubs and some from the underlying io functions. | https://api.github.com/repos/pandas-dev/pandas/pulls/47912 | 2022-08-01T01:40:28Z | 2022-08-01T18:22:20Z | 2022-08-01T18:22:20Z | 2022-09-10T01:38:51Z |
BUG: Fix read_xml raising syntax error when reading XML with Chinese tags | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index 6bd7378e05404..89487bfde94a5 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -26,6 +26,7 @@ Bug fixes
~~~~~~~~~
- The :class:`errors.FutureWarning` raised when passing arguments (other than ``filepat... | - [X] closes #47902 (Replace xxxx with the Github issue number)
- [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/47905 | 2022-07-31T00:33:01Z | 2022-08-01T18:28:14Z | 2022-08-01T18:28:14Z | 2022-08-08T09:52:36Z |
ENH: Move warnings to error/__init__.py per GH27656 | diff --git a/doc/source/reference/testing.rst b/doc/source/reference/testing.rst
index 338dd87aa8c62..1144c767942d4 100644
--- a/doc/source/reference/testing.rst
+++ b/doc/source/reference/testing.rst
@@ -27,6 +27,7 @@ Exceptions and warnings
errors.AbstractMethodError
errors.AccessorRegistrationWarning
err... | - [x] xref #27656. this GitHub issue is being done in multiple parts
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/developme... | https://api.github.com/repos/pandas-dev/pandas/pulls/47901 | 2022-07-29T20:46:17Z | 2022-08-08T18:49:40Z | 2022-08-08T18:49:40Z | 2022-08-08T18:49:51Z |
BUG: preserve _id in MultiIndex.copy(deep=False) | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index fd6b6ba63d7e0..b4b576df9918e 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1190,6 +1190,7 @@ def copy(
This could be potentially expensive on large MultiIndex objects.
"""
names =... | - [x] closes #47878 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/47900 | 2022-07-29T20:33:56Z | 2022-07-29T23:42:28Z | 2022-07-29T23:42:28Z | 2022-07-30T00:49:14Z |
Revert "CI: Pin cython on 32bit build" | diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml
index 8c74a53feed9b..e091160c952f8 100644
--- a/.github/workflows/32-bit-linux.yml
+++ b/.github/workflows/32-bit-linux.yml
@@ -38,7 +38,7 @@ jobs:
/opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev && \
... | Reverts pandas-dev/pandas#47889
Let's see if cython 0.29.32 fixes this | https://api.github.com/repos/pandas-dev/pandas/pulls/47898 | 2022-07-29T14:54:51Z | 2022-08-01T23:09:11Z | 2022-08-01T23:09:11Z | 2022-08-02T08:42:58Z |
ENH: parse 8 or 9 digit delimited dates | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index d138ebb9c02a3..256f22cc41a5e 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -770,6 +770,7 @@ Other Deprecations
- Deprecated the argument ``na_sentinel`` in :func:`factorize`, :meth:`Index.factorize`... | - [x] closes #47880 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/47894 | 2022-07-29T11:23:56Z | 2022-08-01T18:30:56Z | 2022-08-01T18:30:56Z | 2022-08-01T18:31:02Z |
CLN: Rename "add" to "sum" in groupby | diff --git a/pandas/_libs/groupby.pyi b/pandas/_libs/groupby.pyi
index c7cb9705d7cb9..dfae1bff91ac8 100644
--- a/pandas/_libs/groupby.pyi
+++ b/pandas/_libs/groupby.pyi
@@ -50,7 +50,7 @@ def group_any_all(
val_test: Literal["any", "all"],
skipna: bool,
) -> None: ...
-def group_add(
+def group_sum(
out:... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/47892 | 2022-07-29T01:23:26Z | 2022-07-29T20:56:43Z | 2022-07-29T20:56:43Z | 2022-07-29T20:57:40Z |
CI: Add CodeQL Github Action | diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 0000000000000..457aa69fb924f
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,31 @@
+name: CodeQL
+on:
+ schedule:
+ # every day at midnight
+ - cron: "0 0 * * *"
+
+concurrency:
+ group: ${{ github.re... | Similar to Ibis' configuration: https://github.com/ibis-project/ibis/blob/master/.github/workflows/codeql-analysis.yml
| https://api.github.com/repos/pandas-dev/pandas/pulls/47890 | 2022-07-28T23:33:39Z | 2022-07-30T00:46:00Z | 2022-07-30T00:46:00Z | 2022-07-30T17:17:29Z |
CI: Pin cython on 32bit build | diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml
index e091160c952f8..8c74a53feed9b 100644
--- a/.github/workflows/32-bit-linux.yml
+++ b/.github/workflows/32-bit-linux.yml
@@ -38,7 +38,7 @@ jobs:
/opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev && \
... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
| https://api.github.com/repos/pandas-dev/pandas/pulls/47889 | 2022-07-28T22:38:00Z | 2022-07-28T23:37:27Z | 2022-07-28T23:37:27Z | 2022-07-29T00:57:16Z |
REF: Rename exchange -> interchange | diff --git a/doc/source/reference/general_functions.rst b/doc/source/reference/general_functions.rst
index f82d9c9a6482c..474e37a85d857 100644
--- a/doc/source/reference/general_functions.rst
+++ b/doc/source/reference/general_functions.rst
@@ -85,4 +85,4 @@ Importing from other DataFrame libraries
.. autosummary::
... | Recommended by @vnlitvinov
| https://api.github.com/repos/pandas-dev/pandas/pulls/47888 | 2022-07-28T20:54:04Z | 2022-07-30T00:45:46Z | 2022-07-30T00:45:45Z | 2022-07-30T17:17:42Z |
REF: Change _NULL_DESCRIPTION[datetime] to use NaT sentinel | diff --git a/pandas/core/interchange/column.py b/pandas/core/interchange/column.py
index 9ef73aa1f40e0..9ba237a94b8fe 100644
--- a/pandas/core/interchange/column.py
+++ b/pandas/core/interchange/column.py
@@ -5,6 +5,7 @@
import numpy as np
from pandas._libs.lib import infer_dtype
+from pandas._libs.tslibs import iN... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
xref https://github.com/... | https://api.github.com/repos/pandas-dev/pandas/pulls/47887 | 2022-07-28T20:44:22Z | 2022-08-10T18:33:38Z | 2022-08-10T18:33:38Z | 2022-08-10T18:33:42Z |
REF: PandasColumn.describe_categorical returns categores instead of mapping | diff --git a/pandas/core/interchange/column.py b/pandas/core/interchange/column.py
index 9ef73aa1f40e0..2d0aaa6b7c616 100644
--- a/pandas/core/interchange/column.py
+++ b/pandas/core/interchange/column.py
@@ -145,15 +145,18 @@ def describe_categorical(self):
"""
If the dtype is categorical, there are ... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
xref: https://github.com... | https://api.github.com/repos/pandas-dev/pandas/pulls/47886 | 2022-07-28T20:24:59Z | 2022-08-12T00:04:55Z | 2022-08-12T00:04:55Z | 2022-08-12T00:15:45Z |
DOC: Add numpydoc SS06 validation | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index b42ffc66f7714..113186c746157 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -78,8 +78,8 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
- MSG='Validate docstrings (EX04, GL01, GL02, GL03, GL04, GL05, GL06, GL07, G... | - [x] closes #29254 (Replace xxxx with the Github issue number)
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Also removed some functions that were modifying jinija2 docstrings to pass the validation (which we probably shouldn't be doing... | https://api.github.com/repos/pandas-dev/pandas/pulls/47885 | 2022-07-28T16:38:15Z | 2022-07-30T00:44:45Z | 2022-07-30T00:44:45Z | 2022-07-30T17:17:36Z |
BUG: fix Dataframe.join with categorical index leads to unexpected reordering | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index e57166f7a4861..786bdd502fb1b 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -1024,6 +1024,7 @@ Reshaping
- Bug in :meth:`DataFrame.pivot_table` with ``sort=False`` results in sorted index (:issue:`17... | - [ ] closes #47812(Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/47881 | 2022-07-28T01:47:53Z | 2022-07-28T23:05:57Z | 2022-07-28T23:05:57Z | 2022-07-29T00:42:45Z |
DOC: Additions/updates to documentation-GH46359 | diff --git a/pandas/core/ops/docstrings.py b/pandas/core/ops/docstrings.py
index aa469c2e07726..9c3158b3465b7 100644
--- a/pandas/core/ops/docstrings.py
+++ b/pandas/core/ops/docstrings.py
@@ -461,7 +461,7 @@ def make_flex_doc(op_name: str, typ: str) -> str:
Parameters
----------
-other : scalar, sequence, Series, ... | Added examples of DataFrame.mul with dicts.
- [x] closes #46359
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development... | https://api.github.com/repos/pandas-dev/pandas/pulls/47877 | 2022-07-27T17:13:43Z | 2022-07-28T17:12:13Z | 2022-07-28T17:12:13Z | 2022-07-28T19:56:30Z |
DOC: fix broken link in getting started tutorials | diff --git a/doc/source/getting_started/intro_tutorials/10_text_data.rst b/doc/source/getting_started/intro_tutorials/10_text_data.rst
index 63db920164ac3..148ac246d7bf8 100644
--- a/doc/source/getting_started/intro_tutorials/10_text_data.rst
+++ b/doc/source/getting_started/intro_tutorials/10_text_data.rst
@@ -179,7 +... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/47876 | 2022-07-27T13:39:40Z | 2022-07-27T16:52:06Z | 2022-07-27T16:52:06Z | 2022-07-27T16:52:13Z |
DOC: Minor fixes in the IO user guide | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 7d1aa76613d33..25625dba1080f 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -107,9 +107,10 @@ index_col : int, str, sequence of int / str, or False, optional, default ``None`
string name or column index. I... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Removes a comment on unsupported ``engine='python'`` (added in #14295) in the io user guide (text now in sync with API reference); Additional minor formatting fixes | https://api.github.com/repos/pandas-dev/pandas/pulls/47875 | 2022-07-27T12:16:54Z | 2022-07-27T16:50:50Z | 2022-07-27T16:50:50Z | 2022-07-27T16:51:00Z |
DOC: Add sphinx-toggleprompt and sphinx-copybutton | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 2a6ec8947c8d7..ad83e11171599 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -50,23 +50,25 @@
# sphinxext.
extensions = [
- "sphinx.ext.autodoc",
- "sphinx.ext.autosummary",
- "sphinx.ext.doctest",
- "sphinx.ext.extlinks",
- "sphi... | - [x] closes #47785 (Replace xxxx with the Github issue number)
- [x] closes #26790 (Replace xxxx with the Github issue number)
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Also sorts the sphinx extensions alphabetically.
<img wid... | https://api.github.com/repos/pandas-dev/pandas/pulls/47870 | 2022-07-27T00:26:49Z | 2022-07-28T18:12:57Z | 2022-07-28T18:12:57Z | 2022-07-28T18:23:44Z |
DOC: Update link from VirtusLab to pandas-dev repo | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index a847624c55eba..166162a4763bf 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -591,12 +591,12 @@ Library Accessor Classes Description
Development tools
-----------------
-`pandas... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/47869 | 2022-07-27T00:02:52Z | 2022-07-27T16:53:23Z | 2022-07-27T16:53:23Z | 2022-07-27T16:53:29Z |
DOC: Adds Hamilton as a development tool | diff --git a/web/pandas/community/ecosystem.md b/web/pandas/community/ecosystem.md
index 1d77c596c1eb0..89d243555a358 100644
--- a/web/pandas/community/ecosystem.md
+++ b/web/pandas/community/ecosystem.md
@@ -400,3 +400,20 @@ Learn more by reading through these issues [14468](https://github.com/pandas-dev
[26766](http... | Hamilton is a paradigm that helps one manage a pandas code base in an opinionated manner.
We have had great success with it at Stitch Fix, and it's got a growing open source
following. I think it helps one to write pandas in a way that gives
confidence if you want to run Pandas in production jobs.
- [x] N/A: cl... | https://api.github.com/repos/pandas-dev/pandas/pulls/47865 | 2022-07-26T18:42:05Z | 2022-07-27T16:55:39Z | 2022-07-27T16:55:39Z | 2022-07-29T20:24:39Z |
ENH: `Styler.relabel_index` for directly specifying display of index labels | diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst
index 77e1b0abae0c4..5144f12fa373a 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -41,6 +41,7 @@ Style application
Styler.applymap_index
Styler.format
Styler.format_index
+ Styler.relabel_inde... |
<img width="645" alt="Screenshot 2022-07-26 at 18 10 00" src="https://user-images.githubusercontent.com/24256554/181057085-676c1987-25f7-44b4-9f63-5f7479354e5e.png">
<img width="627" alt="Screenshot 2022-07-26 at 18 10 13" src="https://user-images.githubusercontent.com/24256554/181057115-a143111d-b51d-472b-93f7-5113... | https://api.github.com/repos/pandas-dev/pandas/pulls/47864 | 2022-07-26T16:13:38Z | 2022-08-02T20:39:25Z | 2022-08-02T20:39:24Z | 2022-08-02T20:45:49Z |
Added improvements in to_datetime Error reporting message - incorrect field today/now shown in error | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index b3e51191e8efa..fe4078f611f7e 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -799,6 +799,7 @@ cdef _array_to_datetime_object(
# We return an object array and only attempt to parse:
# 1) NaT or NaT-like values
# 2) date... | - closes #47495
Splitting changes from #47597, This PR aims to close the bug #47495
- Changes description
- For issue #47495- made change in `pandas/_libs/tslib.pyx` to accept "now" and "today" values. These values are accepted in other areas of parsing (` _parse_today_now` in `pandas/_libs/tslib.pyx` )
... | https://api.github.com/repos/pandas-dev/pandas/pulls/47860 | 2022-07-26T09:59:40Z | 2022-08-15T17:07:10Z | 2022-08-15T17:07:10Z | 2022-08-15T17:24:50Z |
DOC: correct links of Plotly | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index 256c3ee36e80c..a847624c55eba 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -161,10 +161,10 @@ A good implementation for Python users is `has2k1/plotnine <https://github.com/h
`IPython Vega <https://github.com/vega/ipyvega>... | https://poltly.com/ -> https://plotly.com/
- [x] closes #47857
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development... | https://api.github.com/repos/pandas-dev/pandas/pulls/47858 | 2022-07-26T07:41:16Z | 2022-07-26T18:06:07Z | 2022-07-26T18:06:07Z | 2022-07-27T01:11:57Z |
DOC/ENH: Add documentation and whatsnew entry for ArrowDtype and ArrowExtensionArray | diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst
index 1b8e0fdb856b5..6d09e10f284af 100644
--- a/doc/source/reference/arrays.rst
+++ b/doc/source/reference/arrays.rst
@@ -19,19 +19,20 @@ objects contained with a :class:`Index`, :class:`Series`, or
For some data types, pandas extends NumPy... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/47854 | 2022-07-26T01:16:18Z | 2022-08-18T20:13:58Z | 2022-08-18T20:13:58Z | 2022-09-08T18:41:46Z |
CLN/DOC: Remove sphinx referencing the wiki | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 2a6ec8947c8d7..81ff14d33758a 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -453,7 +453,6 @@
# extlinks alias
extlinks = {
"issue": ("https://github.com/pandas-dev/pandas/issues/%s", "GH"),
- "wiki": ("https://github.com/pandas-dev/pandas... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Since the wiki is disabl... | https://api.github.com/repos/pandas-dev/pandas/pulls/47853 | 2022-07-25T21:56:05Z | 2022-07-28T17:33:54Z | 2022-07-28T17:33:54Z | 2022-07-28T17:47:48Z |
DEPR: args and kwargs in rolling, expanding, and ewm ops | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 7f07187e34c78..8ba17097adbbd 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -773,6 +773,7 @@ Other Deprecations
- Deprecated :class:`Series` and :class:`Resampler` reducers (e.g. ``min``, ``max``, ``... | - [x] closes #47836 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/47851 | 2022-07-25T21:06:17Z | 2022-07-29T01:33:20Z | 2022-07-29T01:33:20Z | 2022-07-29T02:53:54Z |
TYP/CLN: small cleanups from flake-pyi | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f8cb869e6ed89..f65c42dab1852 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -230,7 +230,7 @@ repos:
language: python
additional_dependencies:
- flake8==4.0.1
- - flake8-pyi==22.5.1
+ - fl... | Most of these changes are:
> Y041 Use "float" instead of "int | float" (see "The numeric tower" in PEP 484)
flake8-pyi would probably find similar issues in the in-line annotations but flake8-pyi does at the moment only support pyi files. | https://api.github.com/repos/pandas-dev/pandas/pulls/47850 | 2022-07-25T20:42:55Z | 2022-07-26T22:34:01Z | 2022-07-26T22:34:01Z | 2022-09-28T20:57:30Z |
Added improvements in to_datetime Error reporting message - Outofbounds error message | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 9c7f35d240f96..b3e51191e8efa 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -652,7 +652,8 @@ cpdef array_to_datetime(
else:
raise TypeError(f"{type(val)} is not convertible to datetime")... | Splitting changes from #47597, This PR aims to close the bug #46509
- Changes description
- For issue #46509 - added more details in OutOfBoundsDatetime exception about field and its position causing the issue in `pandas/_libs/tslib.pyx` in `array_to_datetime`
- Updated relevant testcases
- Example of... | https://api.github.com/repos/pandas-dev/pandas/pulls/47849 | 2022-07-25T19:22:07Z | 2022-08-01T18:50:15Z | 2022-08-01T18:50:15Z | 2022-08-31T18:22:07Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.