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 |
|---|---|---|---|---|---|---|---|
TYP: annotations in indexes | diff --git a/pandas/core/base.py b/pandas/core/base.py
index c6800d282700f..4eab5f42c39ae 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -3,7 +3,7 @@
"""
import builtins
import textwrap
-from typing import Dict, FrozenSet, List, Optional
+from typing import Dict, FrozenSet, List, Optional, Union
im... | https://api.github.com/repos/pandas-dev/pandas/pulls/31181 | 2020-01-21T19:24:52Z | 2020-01-24T03:28:41Z | 2020-01-24T03:28:41Z | 2020-01-24T04:42:47Z | |
BUG/CLN: use more-correct isinstance check | diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py
index 465f21da1278a..fa79c1f1a528f 100644
--- a/pandas/core/indexes/numeric.py
+++ b/pandas/core/indexes/numeric.py
@@ -347,8 +347,7 @@ def _assert_safe_casting(cls, data, subarr):
def _is_compatible_with_other(self, other):
re... | this is only kind of a bug, since the isinstance check still returns True on the `type(obj)` | https://api.github.com/repos/pandas-dev/pandas/pulls/31180 | 2020-01-21T17:45:21Z | 2020-01-24T04:39:06Z | 2020-01-24T04:39:06Z | 2020-01-24T04:39:30Z |
CLN: core.internals | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 4257083cc8dc5..40a5ce25f4422 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3610,12 +3610,12 @@ def reindexer(value):
# Explicitly copy here, instead of in sanitize_index,
# as sanitize_index won't copy an EA, eve... | some annotations, remove an unused argument, privatize where possible, avoid a runtime/circular import | https://api.github.com/repos/pandas-dev/pandas/pulls/31179 | 2020-01-21T17:22:22Z | 2020-01-23T08:07:07Z | 2020-01-23T08:07:06Z | 2020-01-23T17:26:46Z |
BUG: inconsistency between PeriodIndex.get_value vs get_loc | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index d0644fbb7ef54..3411be475ef11 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -144,7 +144,7 @@ Interval
Indexing
^^^^^^^^
- Bug in slicing on a :class:`DatetimeIndex` with a partial-timestamp droppin... | ATM we have inconsistent treatment for indexing with strings where the string has a higher resolution than the PeriodIndex. Luckily only one test checks for the inconsistent `PeriodIndex.__contains__` behavior, so fixing it isn't _too_ invasive.
```
pi = pd.period_range("2017-09-01", freq="D", periods=3)
ser = pd... | https://api.github.com/repos/pandas-dev/pandas/pulls/31172 | 2020-01-21T02:44:42Z | 2020-01-25T16:07:16Z | 2020-01-25T16:07:16Z | 2020-01-25T16:34:19Z |
TST: Add more regression tests for fixed issues | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index b1620df91ba26..7b1a9d8ff6ae3 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -412,6 +412,12 @@ def test_constructor_dict_order_insertion(self):
expected = D... | - [x] closes #16894
- [x] closes #16916
- [x] closes #16410
- [x] closes #15454
- [x] closes #16699
- [x] closes #16231
- [x] closes #15150
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/31171 | 2020-01-21T02:29:18Z | 2020-01-21T18:26:47Z | 2020-01-21T18:26:45Z | 2020-01-21T18:26:52Z |
REF: require scalar in IntervalIndex.get_loc, get_value | diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index 3108c1a1afd0c..a756900ff9ae5 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -1,7 +1,7 @@
""" define the IntervalIndex """
from operator import le, lt
import textwrap
-from typing import Any, Op... | cc @jschendel the casting of tuple->Interval on L819-820 seems sketchy, can you confirm if thats appropriate?
I'm also curious about the restriction on slice steps in _convert_slice_indexer, would be nice to have a comment there about why that is.
xref #31117. | https://api.github.com/repos/pandas-dev/pandas/pulls/31169 | 2020-01-21T01:38:58Z | 2020-01-24T00:52:00Z | 2020-01-24T00:52:00Z | 2020-01-24T00:54:01Z |
REF: simplify index.pyx | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index e4ec9db560b80..2dfc14378baf6 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -26,19 +26,13 @@ from pandas._libs import algos, hashtable as _hash
from pandas._libs.tslibs import Timestamp, Timedelta, period as periodlib
from pandas.... | simplification of is_definitely_invalid_key is made possible by the recent change to make EA non-hashable. | https://api.github.com/repos/pandas-dev/pandas/pulls/31168 | 2020-01-21T00:51:02Z | 2020-01-24T04:02:48Z | 2020-01-24T04:02:48Z | 2020-01-24T04:27:23Z |
DOC: fix DataFrame.plot docs | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index dd907457f7c32..c239f11d5c6a1 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -374,7 +374,6 @@ def hist_frame(
<class 'numpy.ndarray'>
"""
-
_backend_doc = """\
backend : str, default None
Backend to use instead... | - [x] fixes #29489
- [ ] 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/31167 | 2020-01-21T00:27:07Z | 2020-01-23T12:35:16Z | 2020-01-23T12:35:15Z | 2020-01-26T15:55:17Z |
Backport PR #29836 on branch 1.0.x (ENH: XLSB support) | diff --git a/ci/deps/azure-37-locale.yaml b/ci/deps/azure-37-locale.yaml
index 111ba6b020bc7..dc51597a33209 100644
--- a/ci/deps/azure-37-locale.yaml
+++ b/ci/deps/azure-37-locale.yaml
@@ -34,3 +34,6 @@ dependencies:
- xlsxwriter
- xlwt
- pyarrow>=0.15
+ - pip
+ - pip:
+ - pyxlsb
diff --git a/ci/deps/azur... | Backport PR #29836: ENH: XLSB support | https://api.github.com/repos/pandas-dev/pandas/pulls/31166 | 2020-01-20T23:49:24Z | 2020-01-21T10:13:28Z | 2020-01-21T10:13:28Z | 2020-01-21T10:13:28Z |
TST: Replaced try-catch blocks with pytest.raises | diff --git a/pandas/tests/test_errors.py b/pandas/tests/test_errors.py
index 939ea8a64d94d..d72c00ceb0045 100644
--- a/pandas/tests/test_errors.py
+++ b/pandas/tests/test_errors.py
@@ -36,10 +36,9 @@ def test_exception_importable(exc):
def test_catch_oob():
from pandas import errors
- try:
+ msg = "Out of... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/31165 | 2020-01-20T22:50:55Z | 2020-01-23T08:11:37Z | 2020-01-23T08:11:37Z | 2020-01-24T12:19:25Z |
Backport PR #31133 on branch 1.0.x (BUG: Break reference from grouping level to MI) | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 84d7399cc4f2d..ed99c4eb46e48 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1256,6 +1256,10 @@ def _get_grouper_for_level(self, mapper, level):
if len(uniques) < len(level_index):
# Rem... | Backport PR #31133: BUG: Break reference from grouping level to MI | https://api.github.com/repos/pandas-dev/pandas/pulls/31164 | 2020-01-20T22:25:45Z | 2020-01-20T23:59:03Z | 2020-01-20T23:59:03Z | 2020-01-20T23:59:04Z |
BUG: corner cases in DTI.get_value, Float64Index.get_value | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index ee9b948a76ac8..b1463f52333a1 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -18,7 +18,7 @@
from pandas.core.dtypes.common import _NS_DTYPE, is_float, is_integer, is_scalar
from pandas.core... | Series lookups are affected for the Float64Index case. | https://api.github.com/repos/pandas-dev/pandas/pulls/31163 | 2020-01-20T21:14:09Z | 2020-01-23T23:01:48Z | 2020-01-23T23:01:48Z | 2020-01-23T23:12:24Z |
CLN/STY: various code cleanups | diff --git a/pandas/core/computation/align.py b/pandas/core/computation/align.py
index a1b1cffdd1d76..e45d3ca66b6ec 100644
--- a/pandas/core/computation/align.py
+++ b/pandas/core/computation/align.py
@@ -1,4 +1,5 @@
-"""Core eval alignment algorithms
+"""
+Core eval alignment algorithms.
"""
from functools import ... | - [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/31162 | 2020-01-20T21:03:44Z | 2020-01-20T22:28:01Z | 2020-01-20T22:28:01Z | 2020-01-21T00:43:01Z |
TST: Add regression tests for fixed issues | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index a861e0eb52391..b1620df91ba26 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -2433,6 +2433,24 @@ def test_datetime_date_tuple_columns_from_dict(self):
expec... | - [x] closes #14600
- [x] closes #14849
- [x] closes #14955
- [x] closes #14592
- [x] closes #12163
- [x] closes #12948
- [x] closes #15058
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/31161 | 2020-01-20T20:14:22Z | 2020-01-21T01:06:11Z | 2020-01-21T01:06:09Z | 2020-01-21T01:06:15Z |
ENH: Implement _from_sequence_of_strings for BooleanArray | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 3bd86bb02155f..c720070b96969 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -144,7 +144,7 @@ type dedicated to boolean data that can hold missing values. The default
``bool`` data type based on a boo... | - [x] closes #31131
- [x] tests added / passed
- [x] passes `black pandas`
- [x] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/31159 | 2020-01-20T18:30:01Z | 2020-01-23T20:56:01Z | 2020-01-23T20:56:01Z | 2020-01-23T21:56:21Z |
DOC: Update of the 'getting started' pages in the sphinx section of the documentation | diff --git a/doc/data/air_quality_long.csv b/doc/data/air_quality_long.csv
new file mode 100644
index 0000000000000..6225d65d8e276
--- /dev/null
+++ b/doc/data/air_quality_long.csv
@@ -0,0 +1,5273 @@
+city,country,date.utc,location,parameter,value,unit
+Antwerpen,BE,2019-06-18 06:00:00+00:00,BETR801,pm25,18.0,µg/m³
+An... | - [ ] closes #26831
This PR provides an update of the getting started pages of the Pandas documentation, following from the discussion in #26831 and the [proposal](https://docs.google.com/document/d/1Rc_eql5KLrdf0c582KyWfs2ADVNxbJy4jfosnqdrVak/edit#heading=h.mqz2f6gbl3sd). The update went together with the creation... | https://api.github.com/repos/pandas-dev/pandas/pulls/31156 | 2020-01-20T15:42:12Z | 2020-02-17T11:49:43Z | 2020-02-17T11:49:43Z | 2020-02-17T18:54:40Z |
BUG: nonexistent Timestamp pre-summer/winter DST w/dateutil timezone | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 59c90534beefd..1a7fe0a24665d 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -92,9 +92,10 @@ Categorical
Datetimelike
^^^^^^^^^^^^
+
- Bug in :class:`Timestamp` where constructing :class:`Timestam... | - [X] closes #31043
- [X] tests added 1 / passed 1
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
This implements rounding down to microseconds into Timedelta.total_seconds(). Lack of this rounding led to `dateutil.tz.tzinfo.utcoffset` and `d... | https://api.github.com/repos/pandas-dev/pandas/pulls/31155 | 2020-01-20T15:23:12Z | 2020-01-24T03:33:00Z | 2020-01-24T03:33:00Z | 2020-01-24T16:31:54Z |
Backport PR #31095 on branch 1.0.x (DOC: Restore ExtensionIndex.dropna.__doc__) | diff --git a/pandas/core/indexes/extension.py b/pandas/core/indexes/extension.py
index 58fcce7e59be7..db35cdb72979f 100644
--- a/pandas/core/indexes/extension.py
+++ b/pandas/core/indexes/extension.py
@@ -6,7 +6,7 @@
import numpy as np
from pandas.compat.numpy import function as nv
-from pandas.util._decorators imp... | Backport PR #31095: DOC: Restore ExtensionIndex.dropna.__doc__ | https://api.github.com/repos/pandas-dev/pandas/pulls/31152 | 2020-01-20T13:35:47Z | 2020-01-20T15:24:46Z | 2020-01-20T15:24:46Z | 2020-01-20T15:24:46Z |
API: generalized check_array_indexer for validating array-like getitem indexers | diff --git a/doc/source/reference/extensions.rst b/doc/source/reference/extensions.rst
index c072237850d82..78fdfbfd28144 100644
--- a/doc/source/reference/extensions.rst
+++ b/doc/source/reference/extensions.rst
@@ -66,7 +66,7 @@ behaves correctly.
.. autosummary::
:toctree: api/
- api.indexers.check_bool_array... | Closes https://github.com/pandas-dev/pandas/issues/30738. Also fixes the performance issue for other arrays from https://github.com/pandas-dev/pandas/issues/30744, and related to https://github.com/pandas-dev/pandas/pull/30308#issuecomment-571146305
This generalizes the `check_bool_array_indexer` helper method that ... | https://api.github.com/repos/pandas-dev/pandas/pulls/31150 | 2020-01-20T13:00:52Z | 2020-01-29T12:04:58Z | 2020-01-29T12:04:57Z | 2020-01-29T14:46:57Z |
DOC: replace long table of contents on home page with main links | diff --git a/doc/source/_static/css/pandas.css b/doc/source/_static/css/pandas.css
new file mode 100644
index 0000000000000..84dbba823afa0
--- /dev/null
+++ b/doc/source/_static/css/pandas.css
@@ -0,0 +1,40 @@
+/* Getting started index page */
+
+.intro-card {
+ background: #fff;
+ border-radius: 0;
+ padding: 30px ... | This is a proposal to remove the long table of contents on the documentation home page and replace it with a highlight of the main parts of the documentation.
Reasons: I don't think the long table of contents resulted in a very attractive landing page of the docs. And further, it was also a "manual" table of content... | https://api.github.com/repos/pandas-dev/pandas/pulls/31148 | 2020-01-20T11:01:43Z | 2020-01-27T19:43:56Z | 2020-01-27T19:43:56Z | 2020-01-27T19:53:54Z |
Use Python 3 shebangs | diff --git a/ci/print_skipped.py b/ci/print_skipped.py
index 72822fa2d3c7f..60e2f047235e6 100755
--- a/ci/print_skipped.py
+++ b/ci/print_skipped.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import os
import xml.etree.ElementTree as et
diff --git a/doc/make.py b/doc/make.py
index cf73f44b5dd02.... | Plain 'python' may either not exist at all, or be Python 2. | https://api.github.com/repos/pandas-dev/pandas/pulls/31147 | 2020-01-20T08:07:45Z | 2020-01-20T15:16:42Z | 2020-01-20T15:16:42Z | 2020-01-20T15:16:46Z |
Remove possibly illegal test data | diff --git a/pandas/tests/io/data/html/computer_sales_page.html b/pandas/tests/io/data/html/computer_sales_page.html
deleted file mode 100644
index ff2b031b58d64..0000000000000
--- a/pandas/tests/io/data/html/computer_sales_page.html
+++ /dev/null
@@ -1,619 +0,0 @@
-<table width="100%" border="0" cellspacing="0" cellpa... | Much of the test_html data looks like it was saved from real web pages, and not all of them look like the kind that are under a free software license. (I couldn't actually check because only one of the three identifies the source site, and that site raises a security warning.)
This removes the questionable data, an... | https://api.github.com/repos/pandas-dev/pandas/pulls/31146 | 2020-01-20T08:05:33Z | 2020-01-21T10:18:39Z | 2020-01-21T10:18:39Z | 2020-05-26T09:39:30Z |
Use https for links where available | diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md
index a1fbece3284ec..7dd2e04249492 100644
--- a/.github/CODE_OF_CONDUCT.md
+++ b/.github/CODE_OF_CONDUCT.md
@@ -54,10 +54,10 @@ incident.
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 1.3.0, available at
-[http... | As some of our links are suggestions to install add-on software, insecure links potentially allow an attacker to replace this with their malware.
During the process of writing this, I also found and fixed some broken or semi-broken (e.g. redirected to the top level instead of the page we want) links.
The followin... | https://api.github.com/repos/pandas-dev/pandas/pulls/31145 | 2020-01-20T07:57:35Z | 2020-01-24T03:55:09Z | 2020-01-24T03:55:09Z | 2020-01-24T03:55:13Z |
Check for pyarrow not feather before pyarrow tests | diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py
index 22aa78919ef0f..d7a21b27308e8 100644
--- a/pandas/tests/io/test_common.py
+++ b/pandas/tests/io/test_common.py
@@ -129,7 +129,7 @@ def test_iterator(self):
(pd.read_csv, "os", FileNotFoundError, "csv"),
(pd.read_... | read_feather/to_feather now use pyarrow.feather, not top-level (feather-format) feather, but some of their tests were still looking for top-level feather.
Two of them that deliberately cause a file not found error were also looking for the wrong form of error message. (Probably nobody noticed because the above was ... | https://api.github.com/repos/pandas-dev/pandas/pulls/31144 | 2020-01-20T07:51:15Z | 2020-01-24T03:54:11Z | 2020-01-24T03:54:10Z | 2020-01-24T03:54:17Z |
REF: share searchsorted between DTI/TDI/PI, insert between DTI/TDI | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index bf1272b223f70..e07271bfcb875 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -27,12 +27,13 @@
)
from pandas.core.dtypes.concat import concat_compat
from pandas.core.dtypes.generi... | Made possible following #30950, takes the place of #30853. | https://api.github.com/repos/pandas-dev/pandas/pulls/31143 | 2020-01-20T01:20:32Z | 2020-01-20T16:39:55Z | 2020-01-20T16:39:55Z | 2020-01-20T21:24:34Z |
TST:Disallow bare pytest raises issue 30999 | diff --git a/pandas/tests/base/test_constructors.py b/pandas/tests/base/test_constructors.py
index 0b7274399aafc..e27b5c307cd99 100644
--- a/pandas/tests/base/test_constructors.py
+++ b/pandas/tests/base/test_constructors.py
@@ -53,13 +53,16 @@ def test_invalid_delegation(self):
delegate = self.Delegate(self... | - [x] refers #30999
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This pull request is to add appropriate match arguments to bare pytest.raises listed in #30999 [Comment](https://github.com/pandas-dev/pandas/issue... | https://api.github.com/repos/pandas-dev/pandas/pulls/31138 | 2020-01-19T18:57:46Z | 2020-01-23T08:18:57Z | 2020-01-23T08:18:57Z | 2020-01-25T21:06:46Z |
TYP: Index get_indexer_foo methods | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index 4bcdb5d96a32d..e5e3b27c41721 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -213,7 +213,8 @@ cdef class IndexEngine:
return self.monotonic_dec == 1
cdef inline _do_monotonic_check(self):
- cdef object is_uniqu... | https://api.github.com/repos/pandas-dev/pandas/pulls/31137 | 2020-01-19T17:57:55Z | 2020-01-19T20:58:40Z | 2020-01-19T20:58:38Z | 2020-01-19T20:59:38Z | |
COMPAT: Return NotImplemented for subclassing | diff --git a/pandas/core/indexes/extension.py b/pandas/core/indexes/extension.py
index 9ddc5c01030b1..81afb00c6dacc 100644
--- a/pandas/core/indexes/extension.py
+++ b/pandas/core/indexes/extension.py
@@ -8,7 +8,11 @@
from pandas.compat.numpy import function as nv
from pandas.util._decorators import Appender, cache_r... | This changes index ops to check the *type* of the argument in index
ops, rather than just the dtype. This lets index subclasses take control
of binary ops when they know better what the result should be.
Closes https://github.com/pandas-dev/pandas/issues/31109
cc @jbrockmendel, I've fixed this as close to the r... | https://api.github.com/repos/pandas-dev/pandas/pulls/31136 | 2020-01-19T17:48:06Z | 2020-01-28T20:57:19Z | 2020-01-28T20:57:19Z | 2020-01-28T21:14:13Z |
REF/BUG: Index.get_value called incorrectly, de-duplicate+simplify | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 5ce2b06ed7dbd..ae9aacb8f5301 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -68,7 +68,6 @@
from pandas.core.arrays import ExtensionArray
from pandas.core.base import IndexOpsMixin, PandasObject
import pandas.c... | Also engine.get_value is being called incorrectly in DTI/TDI, which this fixes. | https://api.github.com/repos/pandas-dev/pandas/pulls/31134 | 2020-01-19T16:50:53Z | 2020-01-20T15:32:58Z | 2020-01-20T15:32:58Z | 2020-01-20T16:24:29Z |
BUG: Break reference from grouping level to MI | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 8682af6ab6369..b684908c25fe5 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1256,6 +1256,10 @@ def _get_grouper_for_level(self, mapper, level):
if len(uniques) < len(level_index):
# Rem... | Closes https://github.com/pandas-dev/pandas/issues/31068 | https://api.github.com/repos/pandas-dev/pandas/pulls/31133 | 2020-01-19T16:29:18Z | 2020-01-20T22:25:34Z | 2020-01-20T22:25:33Z | 2020-01-20T22:25:40Z |
TST: Implement external error raised helper function. | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 631d550c60534..13af8703cef93 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -8,7 +8,7 @@
from shutil import rmtree
import string
import tempfile
-from typing import Any, List, Optional, Union, cast
+from typing import Any, Callable, List, Option... | - [x] ref #30999
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Opened PR for what @gfyoung wrote [here](https://github.com/pandas-dev/pandas/issues/30999#issuecomment-575426086) | https://api.github.com/repos/pandas-dev/pandas/pulls/31130 | 2020-01-19T02:55:19Z | 2020-02-07T18:45:13Z | 2020-02-07T18:45:12Z | 2020-02-14T09:05:38Z |
REF: share code between Int64Index and UInt64Index | diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py
index a8c2303d65361..def77ffbea591 100644
--- a/pandas/core/indexes/numeric.py
+++ b/pandas/core/indexes/numeric.py
@@ -231,6 +231,8 @@ class IntegerIndex(NumericIndex):
This is an abstract class for Int64Index, UInt64Index.
"""
+ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/31129 | 2020-01-19T00:05:47Z | 2020-01-19T20:56:06Z | 2020-01-19T20:56:05Z | 2020-01-19T20:57:12Z | |
REF: require PeriodArray in PeriodIndex._simple_new | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index bf1272b223f70..d262fcdc92ebf 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -193,20 +193,21 @@ def sort_values(self, return_indexer=False, ascending=True):
# because ... | https://api.github.com/repos/pandas-dev/pandas/pulls/31128 | 2020-01-18T21:30:41Z | 2020-01-20T15:35:42Z | 2020-01-20T15:35:42Z | 2020-01-20T16:30:24Z | |
TYP: DataFrame.(index|columns) and Series.index | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index ec6ad38bbc7cf..04607531fb2ce 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -687,7 +687,6 @@ Other API changes
- :meth:`Series.str.__iter__` was deprecated and will be removed in future releases (:is... | Makes mypy discover the ``.index`` and ``.columns`` attributes and that they're ``Index`` (sub-)classes.
This is done by manually adding the ``properties.AxisProperty`` to DataFrame/Series instead of doing it programatically, as mypy doesn't like adding attributes programatically very much. | https://api.github.com/repos/pandas-dev/pandas/pulls/31126 | 2020-01-18T18:23:05Z | 2020-01-24T01:19:03Z | 2020-01-24T01:19:03Z | 2020-01-24T20:20:14Z |
REF/CLN: Index.get_value wrapping incorrectly | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index a630938afeb8a..5ce2b06ed7dbd 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4639,7 +4639,8 @@ def get_value(self, series, key):
k = self._convert_scalar_indexer(key, kind="getitem")
try:
- ... | Index.get_value isn't wrapping non-scalar results correctly, as a result of which we have an ugly kludge in `Series.__getitem__` to do that wrapping. This fixes that. | https://api.github.com/repos/pandas-dev/pandas/pulls/31125 | 2020-01-18T17:48:11Z | 2020-01-18T19:39:00Z | 2020-01-18T19:39:00Z | 2020-01-18T19:54:03Z |
Backport PR #30553 on branch 1.0.x (TST/BUG: fix incorrectly-passing Exception in test_html) | diff --git a/pandas/io/html.py b/pandas/io/html.py
index eafcca0e85bb3..04f9f317d7dae 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -591,9 +591,14 @@ def _setup_build_doc(self):
def _build_doc(self):
from bs4 import BeautifulSoup
- return BeautifulSoup(
- self._setup_build_... | Backport PR #30553: TST/BUG: fix incorrectly-passing Exception in test_html | https://api.github.com/repos/pandas-dev/pandas/pulls/31124 | 2020-01-18T17:20:13Z | 2020-01-18T18:53:14Z | 2020-01-18T18:53:14Z | 2020-01-18T18:53:15Z |
CLN/BUG: Float64Index.get_loc | diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py
index 566341d78c7ed..a8c2303d65361 100644
--- a/pandas/core/indexes/numeric.py
+++ b/pandas/core/indexes/numeric.py
@@ -488,17 +488,18 @@ def __contains__(self, other) -> bool:
@Appender(_index_shared_docs["get_loc"])
def get_loc(s... | - clean up unnecessary try/except
- the "bug" part is that ATM we incorrectly raise KeyError instead of TypeError on non-hashable. | https://api.github.com/repos/pandas-dev/pandas/pulls/31123 | 2020-01-18T17:12:32Z | 2020-01-18T23:24:04Z | 2020-01-18T23:24:04Z | 2020-01-19T00:29:29Z |
Backport PR #31097 on branch 1.0.x (DOC: Replace ggpy with plotnine in ecosystem) | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index 7bd5ba7ecdf0b..b1de406b33352 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -112,16 +112,14 @@ also goes beyond matplotlib and pandas with the option to perform statistical
estimation while plotting, aggregating across obse... | Backport PR #31097: DOC: Replace ggpy with plotnine in ecosystem | https://api.github.com/repos/pandas-dev/pandas/pulls/31122 | 2020-01-18T17:11:31Z | 2020-01-18T18:53:37Z | 2020-01-18T18:53:37Z | 2020-01-18T18:53:37Z |
Backport PR #30971 on branch 1.0.x (BUG: reductions for nullable dtypes should return pd.NA for skipna=False) | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index c423933d4c438..4d55ee1c1cfc2 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -483,6 +483,25 @@ Use :meth:`arrays.IntegerArray.to_numpy` with an explicit ``na_value`` instead.
a.to_numpy(dtype="fl... | Backport PR #30971: BUG: reductions for nullable dtypes should return pd.NA for skipna=False | https://api.github.com/repos/pandas-dev/pandas/pulls/31121 | 2020-01-18T15:35:49Z | 2020-01-18T16:23:51Z | 2020-01-18T16:23:51Z | 2020-01-18T16:23:52Z |
Backport PR #30977 on branch 1.0.x (JSON Date Handling 1.0 Regressions) | diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c
index c413a16f8d5f0..c5ac279ed3243 100644
--- a/pandas/_libs/src/ujson/python/objToJSON.c
+++ b/pandas/_libs/src/ujson/python/objToJSON.c
@@ -456,8 +456,8 @@ static char *PyDateTimeToIso(PyDateTime_Date *obj, NPY_DATETIME... | Backport PR #30977: JSON Date Handling 1.0 Regressions | https://api.github.com/repos/pandas-dev/pandas/pulls/31120 | 2020-01-18T15:34:38Z | 2020-01-18T16:03:34Z | 2020-01-18T16:03:34Z | 2020-01-18T16:03:34Z |
BUG: concat not copying index and columns when copy=True | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index a04ba157ce0ae..8cbc95f0349cf 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -156,7 +156,7 @@ Reshaping
- Bug in :meth:`DataFrame.pivot_table` when ``margin`` is ``True`` and only ``column`` is define... | - [x] closes #29879
- [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/31119 | 2020-01-18T07:48:20Z | 2020-01-21T10:50:47Z | 2020-01-21T10:50:47Z | 2020-01-21T10:59:50Z |
TYP: annotations | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index bb893bd2ffef6..bfa560ccae068 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4566,7 +4566,7 @@ def shift(self, periods=1, freq=None):
"""
raise NotImplementedError(f"Not supported for type {type... | Several of the Index subclasses are difficult to annotate, so I want to get the easy-ish parts to make it easier to focus on the pain points. | https://api.github.com/repos/pandas-dev/pandas/pulls/31115 | 2020-01-18T01:59:25Z | 2020-01-18T11:54:22Z | 2020-01-18T11:54:21Z | 2020-01-18T16:11:48Z |
CI: Adding script to validate consistent and correct capitalization among headings in documentation (#26941) | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index e2dc543360a62..18f701c140e50 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -320,6 +320,10 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=GL03,GL04,GL05,GL06,GL07,GL09,G... | Closes #26941
This script should be running correctly to validate capitalization for various rst files. Many keywords will need to be added into the script as more and more files are tested on this script. Currently testing on the following rst files through code_checks.sh:
doc/source/development/contributing.rs... | https://api.github.com/repos/pandas-dev/pandas/pulls/31114 | 2020-01-17T22:12:44Z | 2020-03-07T20:06:26Z | 2020-03-07T20:06:26Z | 2020-03-09T16:49:12Z |
BUG: Index.get_value being called incorrectly | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index bb893bd2ffef6..c856d7d8f0dd8 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4621,34 +4621,31 @@ def argsort(self, *args, **kwargs):
@Appender(_index_shared_docs["get_value"] % _index_doc_kwargs)
def ge... | AFAICT there aren't user-facing consequences, just built-up kludges in `Series.__getitem__` and `Index.get_value` that we'll be able to get rid of once we fix these inconsistencies.
cc @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/31112 | 2020-01-17T18:42:42Z | 2020-01-18T15:49:04Z | 2020-01-18T15:49:04Z | 2020-01-18T16:09:12Z |
CLN: prune unreachable code | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 66d7cd59dcfa4..c6800d282700f 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -583,12 +583,10 @@ def _is_builtin_func(self, arg):
class ShallowMixin:
_attributes: List[str] = []
- def _shallow_copy(self, obj=None, **kwargs):
+ def _... | https://api.github.com/repos/pandas-dev/pandas/pulls/31106 | 2020-01-17T15:46:28Z | 2020-01-18T15:51:06Z | 2020-01-18T15:51:06Z | 2020-01-18T16:07:28Z | |
TST: Fix some bare pytest raises | diff --git a/pandas/tests/internals/test_internals.py b/pandas/tests/internals/test_internals.py
index 15b1434f8629f..9c1442b75fbb2 100644
--- a/pandas/tests/internals/test_internals.py
+++ b/pandas/tests/internals/test_internals.py
@@ -1200,7 +1200,7 @@ def test_binop_other(self, op, value, dtype):
(opera... | - [x] ref #30999
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Follow up for #30998 | https://api.github.com/repos/pandas-dev/pandas/pulls/31105 | 2020-01-17T15:06:45Z | 2020-01-17T23:29:05Z | 2020-01-17T23:29:05Z | 2020-01-18T14:50:41Z |
CLN: Index._values docstring + Block.internal/external_values | diff --git a/pandas/core/arrays/sparse/scipy_sparse.py b/pandas/core/arrays/sparse/scipy_sparse.py
index 88d63071c360f..17a953fce9ec0 100644
--- a/pandas/core/arrays/sparse/scipy_sparse.py
+++ b/pandas/core/arrays/sparse/scipy_sparse.py
@@ -17,14 +17,14 @@ def _check_is_partition(parts, whole):
def _to_ijv(ss, row... | @jbrockmendel this is the "clean" part of https://github.com/pandas-dev/pandas/pull/31037, so if you merge this, I will update the other PR so that only the required changes are in the PR for 1.0.0. | https://api.github.com/repos/pandas-dev/pandas/pulls/31103 | 2020-01-17T13:18:53Z | 2020-01-17T17:48:43Z | 2020-01-17T17:48:43Z | 2020-01-17T17:55:46Z |
BUG: groupby transform fillna produces wrong result | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index c8e811ce82b1f..ad58232c81b23 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -169,6 +169,7 @@ Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
- Bug in :meth:`GroupBy.apply` raises ``ValueError`` ... | - [x] closes #30918
- [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/31101 | 2020-01-17T12:05:33Z | 2020-01-24T19:16:01Z | 2020-01-24T19:16:01Z | 2020-05-29T10:48:03Z |
Updated years in LICENSE | diff --git a/LICENSE b/LICENSE
index 924de26253bf4..76954a5a339ab 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,8 +1,10 @@
BSD 3-Clause License
-Copyright (c) 2008-2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
+Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc... | Really not sure about this change.
(Feel free to close this PR at any time, if this file should not be changed). | https://api.github.com/repos/pandas-dev/pandas/pulls/31100 | 2020-01-17T08:55:32Z | 2020-01-18T16:33:48Z | 2020-01-18T16:33:48Z | 2020-01-19T06:24:48Z |
Backport PR #31091 on branch 1.0.x (CI/TST: fix failing tests in py37_np_dev) | diff --git a/pandas/tests/arrays/categorical/test_algos.py b/pandas/tests/arrays/categorical/test_algos.py
index 52640044565fc..5ff0bb8ef0d78 100644
--- a/pandas/tests/arrays/categorical/test_algos.py
+++ b/pandas/tests/arrays/categorical/test_algos.py
@@ -111,7 +111,7 @@ def test_take_bounds(self, allow_fill):
... | (Manual) Backport PR #31091 on branch 1.0.x (CI/TST: fix failing tests in py37_np_dev)
cc @WillAyd | https://api.github.com/repos/pandas-dev/pandas/pulls/31099 | 2020-01-17T08:09:58Z | 2020-01-17T11:34:17Z | 2020-01-17T11:34:17Z | 2020-01-17T13:21:03Z |
CLN: Regular expression clean | diff --git a/pandas/tests/arrays/categorical/test_algos.py b/pandas/tests/arrays/categorical/test_algos.py
index 07abdceb71f9f..5ff0bb8ef0d78 100644
--- a/pandas/tests/arrays/categorical/test_algos.py
+++ b/pandas/tests/arrays/categorical/test_algos.py
@@ -111,7 +111,7 @@ def test_take_bounds(self, allow_fill):
... | - [x] ref https://github.com/pandas-dev/pandas/pull/31091#discussion_r367732954
- [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/31098 | 2020-01-17T07:56:44Z | 2020-01-17T10:13:55Z | 2020-01-17T10:13:55Z | 2020-01-17T13:21:58Z |
DOC: Replace ggpy with plotnine in ecosystem | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index 7bd5ba7ecdf0b..b1de406b33352 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -112,16 +112,14 @@ also goes beyond matplotlib and pandas with the option to perform statistical
estimation while plotting, aggregating across obse... | - [ ] closes #31087
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Changed ggpy reference to plotnine.
| https://api.github.com/repos/pandas-dev/pandas/pulls/31097 | 2020-01-17T04:14:18Z | 2020-01-18T17:11:21Z | 2020-01-18T17:11:21Z | 2020-02-19T03:52:49Z |
ENH: partial string indexing on non-monotonic PeriodIndex | diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst
index 08b2ae0a4a837..3fdab0fd26643 100644
--- a/doc/source/user_guide/timeseries.rst
+++ b/doc/source/user_guide/timeseries.rst
@@ -1951,6 +1951,10 @@ The ``period`` dtype can be used in ``.astype(...)``. It allows one to change th... | Looks like the DatetimeIndex analogue of this was done in #2437 (https://github.com/pandas-dev/pandas/commit/3a173f19b308d2fb7d8e96dfc57f2e5ecd046138)
This does _not_ yet support two-sides slicing e.g. `ser["2015":"2016"]`, but im hoping to get that handled before long.
Partial overlap with #31058, nothing should... | https://api.github.com/repos/pandas-dev/pandas/pulls/31096 | 2020-01-17T02:40:30Z | 2020-01-21T16:27:25Z | 2020-01-21T16:27:24Z | 2020-01-21T17:15:54Z |
DOC: Restore ExtensionIndex.dropna.__doc__ | diff --git a/pandas/core/indexes/extension.py b/pandas/core/indexes/extension.py
index 58fcce7e59be7..db35cdb72979f 100644
--- a/pandas/core/indexes/extension.py
+++ b/pandas/core/indexes/extension.py
@@ -6,7 +6,7 @@
import numpy as np
from pandas.compat.numpy import function as nv
-from pandas.util._decorators imp... | Per request from @jorisvandenbossche on #30717. | https://api.github.com/repos/pandas-dev/pandas/pulls/31095 | 2020-01-17T01:46:15Z | 2020-01-20T13:35:21Z | 2020-01-20T13:35:21Z | 2020-01-20T16:27:26Z |
WEB: Styling blog | diff --git a/web/pandas/community/blog.html b/web/pandas/community/blog.html
index ffe6f97d679e4..627aaa450893b 100644
--- a/web/pandas/community/blog.html
+++ b/web/pandas/community/blog.html
@@ -4,10 +4,10 @@
{% for post in blog.posts %}
<div class="card">
<div class="card-body">
- ... | Improving how the blog section looks. Changing a bit the font size, color, and spacing. And also removing html tags from the content, since it's tricky to make titles, images, links... in the posts look good in the preview.
Not convinced that the blog looks great, but that's the best I could do, and I think it looks... | https://api.github.com/repos/pandas-dev/pandas/pulls/31094 | 2020-01-17T00:22:06Z | 2020-01-17T16:51:20Z | 2020-01-17T16:51:20Z | 2020-01-17T16:51:21Z |
Pull Request Tips | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 4fdcb93745094..2dcb6a32d7941 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -1525,3 +1525,19 @@ The branch will still exist on GitHub, so to delete it there do::
... | I think these issues pop up on a good deal of PRs but aren't explicitly stated anywhere, so adding a few bullet points to the contributing guide might help | https://api.github.com/repos/pandas-dev/pandas/pulls/31093 | 2020-01-17T00:14:18Z | 2020-01-18T16:37:40Z | 2020-01-18T16:37:40Z | 2020-02-02T01:21:45Z |
CI/TST: fix failing tests in py37_np_dev | diff --git a/pandas/tests/arrays/categorical/test_algos.py b/pandas/tests/arrays/categorical/test_algos.py
index 52640044565fc..07abdceb71f9f 100644
--- a/pandas/tests/arrays/categorical/test_algos.py
+++ b/pandas/tests/arrays/categorical/test_algos.py
@@ -111,7 +111,7 @@ def test_take_bounds(self, allow_fill):
... | https://api.github.com/repos/pandas-dev/pandas/pulls/31091 | 2020-01-17T00:11:17Z | 2020-01-17T02:24:19Z | 2020-01-17T02:24:19Z | 2020-01-27T12:37:03Z | |
CLN: update _simple_new usages | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 942b51eda7d0b..f55d943e3086e 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -253,7 +253,7 @@ def __new__(
ambiguous=ambiguous,
)
- subarr = cls._simple_new(dtarr... | In preparation for making the _simple_new constructors stricter, xref #31084, #31055. | https://api.github.com/repos/pandas-dev/pandas/pulls/31089 | 2020-01-16T23:49:23Z | 2020-01-18T15:59:28Z | 2020-01-18T15:59:28Z | 2020-01-18T16:14:58Z |
BUG: df.pivot_table fails when margin is True and only columns is defined | diff --git a/asv_bench/benchmarks/reshape.py b/asv_bench/benchmarks/reshape.py
index 441f4b380656e..21081ee23a773 100644
--- a/asv_bench/benchmarks/reshape.py
+++ b/asv_bench/benchmarks/reshape.py
@@ -161,6 +161,9 @@ def time_pivot_table_categorical_observed(self):
observed=True,
)
+ def time... | - [x] closes #31016
- [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/31088 | 2020-01-16T21:31:59Z | 2020-01-20T20:08:12Z | 2020-01-20T20:08:11Z | 2021-07-03T06:49:58Z |
DOC: automatic 'end' year of copyright | diff --git a/doc/source/conf.py b/doc/source/conf.py
index c6786a03f0e44..7f24d02a496e1 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -10,6 +10,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
+from datetime import datetime
import importlib
i... | #31022 Updated it after nearly 6 years, I think this will update with each new merge, so that should not be a problem from now on, (I think)
cc (@datapythonista)
| https://api.github.com/repos/pandas-dev/pandas/pulls/31085 | 2020-01-16T19:41:07Z | 2020-01-16T21:36:54Z | 2020-01-16T21:36:54Z | 2020-01-16T23:39:35Z |
REF: stricter types for RangeIndex._simple_new | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 47daaa4958411..22a0097c6b95f 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -57,6 +57,7 @@
ABCMultiIndex,
ABCPandasArray,
ABCPeriodIndex,
+ ABCRangeIndex,
ABCSeries,
ABCTimedeltaIndex,... | xref #31055. | https://api.github.com/repos/pandas-dev/pandas/pulls/31084 | 2020-01-16T19:24:11Z | 2020-01-16T23:55:08Z | 2020-01-16T23:55:08Z | 2020-01-17T01:08:23Z |
CLN: Remove download_wheels.py, moved to pandas-release | diff --git a/scripts/download_wheels.py b/scripts/download_wheels.py
deleted file mode 100644
index 3d36eed2d888a..0000000000000
--- a/scripts/download_wheels.py
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/env python
-"""Fetch wheels from wheels.scipy.org for a pandas version."""
-import argparse
-import pathlib
-import... | - [X] xref #31039
Script being moved to the pandas-release repository in https://github.com/pandas-dev/pandas-release/pull/23 | https://api.github.com/repos/pandas-dev/pandas/pulls/31083 | 2020-01-16T19:15:37Z | 2020-01-16T21:46:29Z | 2020-01-16T21:46:29Z | 2020-01-16T21:46:34Z |
CLN: Moved the same code in 'if' and the 'else' outside | diff --git a/setup.py b/setup.py
index 6635b58cd7103..86fe62202c643 100755
--- a/setup.py
+++ b/setup.py
@@ -412,15 +412,14 @@ def run(self):
cmdclass.update({"clean": CleanCommand, "build": build})
+cmdclass["build_ext"] = CheckingBuildExt
if cython:
suffix = ".pyx"
- cmdclass["build_ext"] = CheckingBu... | AFICT this should be ok, right?
cc (@WillAyd) | https://api.github.com/repos/pandas-dev/pandas/pulls/31081 | 2020-01-16T18:50:48Z | 2020-01-16T19:49:50Z | 2020-01-16T19:49:50Z | 2020-01-16T19:52:14Z |
TST: Remove bare pytest.raises | diff --git a/pandas/core/ops/array_ops.py b/pandas/core/ops/array_ops.py
index b84d468fff736..064e2e3ea4412 100644
--- a/pandas/core/ops/array_ops.py
+++ b/pandas/core/ops/array_ops.py
@@ -95,7 +95,9 @@ def masked_arith_op(x, y, op):
else:
if not is_scalar(y):
- raise TypeError(type(y))
+ ... | References #30999
Adds match argument to pytest.raises found in the following files. https://github.com/pandas-dev/pandas/issues/30999#issuecomment-574174389
**ToDo:**
- [x] pandas/tests/arithmetic/test_numeric
- [X] pandas/tests/arithmetic/test_object
- [x] pandas/tests/arithmetic/test_timedelta64
- [x] pan... | https://api.github.com/repos/pandas-dev/pandas/pulls/31079 | 2020-01-16T18:02:21Z | 2020-01-24T03:57:24Z | 2020-01-24T03:57:24Z | 2020-01-27T04:45:27Z |
CLN: remove unused legacy pickle compat code | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index b73f129fbda8e..6332ff45c59d0 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1928,9 +1928,9 @@ def __setstate__(self, state):
object.__setattr__(self, k, v)
else:
- self._unpick... | - [ ] 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/31078 | 2020-01-16T17:57:13Z | 2020-01-16T23:50:41Z | 2020-01-16T23:50:41Z | 2020-01-17T10:07:41Z |
STY: Some stuff that triggers my OCD ;) | diff --git a/pandas/_libs/hashtable.pyx b/pandas/_libs/hashtable.pyx
index 59ba1705d2dbb..884db9ee931d4 100644
--- a/pandas/_libs/hashtable.pyx
+++ b/pandas/_libs/hashtable.pyx
@@ -13,26 +13,45 @@ cnp.import_array()
cdef extern from "numpy/npy_math.h":
float64_t NAN "NPY_NAN"
-
from pandas._libs.khash cimport ... | - [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Some stuff that got the attention of my eye | https://api.github.com/repos/pandas-dev/pandas/pulls/31076 | 2020-01-16T15:38:57Z | 2020-01-16T18:34:43Z | 2020-01-16T18:34:43Z | 2020-01-16T18:41:33Z |
CLN/MAINT: Clean and annotate stata reader and writers | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 012fb1d0c2eb7..dbcdcd17255b5 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -11,6 +11,7 @@
import collections
from collections import abc
+import datetime
from io import StringIO
import itertools
import sys
@@ -19,6 +20,7 @@
IO,... | - [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/31072 | 2020-01-16T12:09:02Z | 2020-01-26T00:42:01Z | 2020-01-26T00:42:01Z | 2020-07-28T14:41:36Z |
ENH: accept a dictionary in plot colors | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index c8e811ce82b1f..61e907acfd54e 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -162,7 +162,7 @@ I/O
Plotting
^^^^^^^^
--
+- :func:`.plot` for line/bar now accepts color by dictonary (:issue:`8193`).
... | This is a resurrection of #28659. Have kept the original commit history, just rebased and added docstrings.
- [x] closes #8193
- [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/31071 | 2020-01-16T11:25:12Z | 2020-01-26T01:04:28Z | 2020-01-26T01:04:27Z | 2020-02-01T18:19:00Z |
PERF: add shortcut to Timedelta constructor | diff --git a/asv_bench/benchmarks/tslibs/timedelta.py b/asv_bench/benchmarks/tslibs/timedelta.py
index 8a16ddc189483..6ed273281569b 100644
--- a/asv_bench/benchmarks/tslibs/timedelta.py
+++ b/asv_bench/benchmarks/tslibs/timedelta.py
@@ -10,6 +10,11 @@
class TimedeltaConstructor:
+ def setup(self):
+ self... | WIP until #30676 gets merged.
- [ ] second half of #30543
- [X] tests added 1 / passed 1
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
This implements a shortcut in the Timedelta constructor to cut down on processing if Timedelta is passed.... | https://api.github.com/repos/pandas-dev/pandas/pulls/31070 | 2020-01-16T09:57:08Z | 2020-01-24T00:36:48Z | 2020-01-24T00:36:47Z | 2020-01-27T06:54:59Z |
DOC: add plotting backends in visualization.rst | diff --git a/doc/source/user_guide/visualization.rst b/doc/source/user_guide/visualization.rst
index 39051440e9d9a..b0d63f9cd948a 100644
--- a/doc/source/user_guide/visualization.rst
+++ b/doc/source/user_guide/visualization.rst
@@ -1641,3 +1641,46 @@ when plotting a large number of points.
:suppress:
plt.cl... | - [x] closes #30984
| https://api.github.com/repos/pandas-dev/pandas/pulls/31066 | 2020-01-16T05:40:06Z | 2020-02-05T19:09:05Z | 2020-02-05T19:09:05Z | 2020-02-05T19:19:30Z |
CLN: remove redundant return value | diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx
index 3705b0a41fe55..ebdf7a1e29216 100644
--- a/pandas/_libs/tslibs/parsing.pyx
+++ b/pandas/_libs/tslibs/parsing.pyx
@@ -217,7 +217,7 @@ def parse_datetime_string(date_string: str, freq=None, dayfirst=False,
return dt
try:
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/31065 | 2020-01-16T04:53:51Z | 2020-01-16T10:23:27Z | 2020-01-16T10:23:27Z | 2020-01-16T16:35:04Z | |
BUG: partial-timestamp slicing near the end of year/quarter/month | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index b5a7b19f160a4..4e8cc3ce1d04f 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -102,7 +102,7 @@ Interval
Indexing
^^^^^^^^
-
+- Bug in slicing on a :class:`DatetimeIndex` with a partial-timestamp dro... | I'm fairly confident we can refactor this to be a lot less verbose, but will do that separately from the bugfix.
- [ ] 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/31064 | 2020-01-16T04:33:04Z | 2020-01-18T15:56:37Z | 2020-01-18T15:56:36Z | 2020-01-18T16:20:56Z |
TYP/CLN: Replaced "Optional[Hashable]" with "Label" from pandas._typing | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 0c413cd473bbc..b73f129fbda8e 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -37,6 +37,7 @@
FilePathOrBuffer,
FrameOrSeries,
JSONSerializable,
+ Label,
Level,
Renamer,
)
@@ -3009,10 +3010,10 @@ def to_csv... | - [ ] 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/31062 | 2020-01-16T03:45:13Z | 2020-01-16T10:26:01Z | 2020-01-16T10:26:01Z | 2020-01-16T14:58:49Z |
CLN: Replace Appender and Substitution with simpler doc decorator | diff --git a/doc/source/development/contributing_docstring.rst b/doc/source/development/contributing_docstring.rst
index 649dd37b497b2..1c99b341f6c5a 100644
--- a/doc/source/development/contributing_docstring.rst
+++ b/doc/source/development/contributing_docstring.rst
@@ -937,33 +937,31 @@ classes. This helps us keep d... | - [X] closes #30933
- [x] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
A new decorator to handle docstring formatting. There is also an update for an existing case to show how it works. | https://api.github.com/repos/pandas-dev/pandas/pulls/31060 | 2020-01-16T02:13:33Z | 2020-02-12T16:01:46Z | 2020-02-12T16:01:46Z | 2020-02-13T01:39:28Z |
CLN: Removed unused varibles from for loops | diff --git a/pandas/io/sas/sas.pyx b/pandas/io/sas/sas.pyx
index 211935009d2e5..b4f8eeb3d226d 100644
--- a/pandas/io/sas/sas.pyx
+++ b/pandas/io/sas/sas.pyx
@@ -33,7 +33,7 @@ cdef const uint8_t[:] rle_decompress(int result_length,
raise ValueError("Unexpected non-zero end_of_first_byte")
n... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/31059 | 2020-01-16T01:46:28Z | 2020-01-16T16:19:00Z | 2020-01-16T16:19:00Z | 2020-01-16T18:42:41Z |
REF: use _get_string_slice in PeriodIndex.get_value | diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py
index 9d501b2601c09..b3386f6104032 100644
--- a/pandas/core/indexes/period.py
+++ b/pandas/core/indexes/period.py
@@ -483,25 +483,20 @@ def get_value(self, series, key):
return series.iat[key]
if isinstance(key, str):
+ ... | Most of _get_string_slice is duplicated inside PeriodIndex.get_value, which likely explains why get_string_slice has almost no test [coverage](https://codecov.io/gh/pandas-dev/pandas/src/master/pandas/core/indexes/period.py#L715). This also brings PeriodIndex.get_value into closer alignment with DatetimeIndex.get_valu... | https://api.github.com/repos/pandas-dev/pandas/pulls/31058 | 2020-01-16T01:19:55Z | 2020-01-20T19:53:19Z | 2020-01-20T19:53:19Z | 2020-01-20T19:54:42Z |
Split out JSON Date Converters | diff --git a/pandas/_libs/src/ujson/python/date_conversions.c b/pandas/_libs/src/ujson/python/date_conversions.c
new file mode 100644
index 0000000000000..fc4bdef8463af
--- /dev/null
+++ b/pandas/_libs/src/ujson/python/date_conversions.c
@@ -0,0 +1,118 @@
+// Conversion routines that are useful for serialization,
+// b... | This file is pretty large so trying to make more modular. This separates out conversion routines required for getting from the Python space to JSON, but which don't actually serialize the data
| https://api.github.com/repos/pandas-dev/pandas/pulls/31057 | 2020-01-16T01:13:50Z | 2020-01-20T23:44:49Z | 2020-01-20T23:44:48Z | 2023-04-12T20:17:15Z |
CLN: assorted cleanups | diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index 1c86235f9eaa1..8da6907750ac7 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -1055,7 +1055,7 @@ def equals(self, other) -> bool:
if not isinstance(other, IntervalIndex):
if no... | https://api.github.com/repos/pandas-dev/pandas/pulls/31056 | 2020-01-15T22:19:33Z | 2020-01-16T09:59:06Z | 2020-01-16T09:59:06Z | 2020-01-16T16:30:12Z | |
REF: be stricter about what we pass to _simple_new | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 1e2a02e988fdd..d9b53aa4a867c 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -169,8 +169,9 @@ def __init__(self, values, freq=None, dtype=None, copy=False):
self._dtype = PeriodDtype(freq)
@cla... | This will take a few passes to get rid of all the checks done in _simple_new that should be done elsewhere | https://api.github.com/repos/pandas-dev/pandas/pulls/31055 | 2020-01-15T21:58:35Z | 2020-01-18T16:17:32Z | 2020-01-18T16:17:32Z | 2020-01-18T16:25:23Z |
DOC: Fix HDF5 complevel and complib formatting | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 55bbf6848820b..e776da016d5d7 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -4220,46 +4220,49 @@ Compression
all kinds of stores, not just tables. Two parameters are used to
control compression: ``complevel... | Fixes formatting of these params.
- [x] closes #31052
- [ ] tests added / passed (N/A)
- [ ] passes `black pandas` (N/A)
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` (N/A)
- [ ] whatsnew entry (N/A)
N/A as this PR only updates an rst file for the docs. | https://api.github.com/repos/pandas-dev/pandas/pulls/31053 | 2020-01-15T20:18:05Z | 2020-01-20T13:34:12Z | 2020-01-20T13:34:12Z | 2020-01-20T13:34:23Z |
CLN: Remove unused release scripts | diff --git a/scripts/build_dist.sh b/scripts/build_dist.sh
deleted file mode 100755
index c3f849ce7a6eb..0000000000000
--- a/scripts/build_dist.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-# build the distribution
-LAST=`git tag --sort version:refname | grep -v rc | tail -1`
-
-echo "Building distribution for: $LA... | - [X] ref #31039
Old scripts that are not used anymore.
CC: @TomAugspurger | https://api.github.com/repos/pandas-dev/pandas/pulls/31049 | 2020-01-15T17:07:35Z | 2020-01-20T17:38:28Z | 2020-01-20T17:38:28Z | 2020-01-20T17:38:33Z |
DOC: Add missing docstrings | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 47daaa4958411..605013882b31e 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -1163,6 +1163,9 @@ def to_frame(self, index=True, name=None):
@property
def name(self):
+ """
+ Return Index o... | Added docstrings:
```
pandas.Index.has_duplicates
pandas.Index.is_all_dates
pandas.Index.name
pandas.Index.is_boolean
pandas.Index.is_floating
pandas.Index.is_integer
pandas.Index.is_interval
pandas.Index.is_mixed
pandas.Index.is_numeric
pandas.Index.is_object
```
There are some other docstrings left - I... | https://api.github.com/repos/pandas-dev/pandas/pulls/31047 | 2020-01-15T16:43:31Z | 2020-01-17T13:27:38Z | 2020-01-17T13:27:38Z | 2020-01-17T13:27:49Z |
BUG: groupby shift fill_value, freq followup | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 31293a42a3977..137f2e5c12211 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -618,7 +618,7 @@ Other
- Bug in :func:`assert_almost_equal` now throwing assertion error for two unequal sets (:issue:`5172... | - [ ] closes #54093 (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/54133 | 2023-07-15T00:32:51Z | 2023-07-18T03:08:20Z | 2023-07-18T03:08:20Z | 2023-07-18T03:27:02Z |
BUG: Series.groupby.size returning int64 for masked and arrow types | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index a2c3bf1453c2e..f4dbf9e08ac18 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -559,6 +559,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrameGroupBy.apply` raising a ``TypeError`` when selecting mu... | - [ ] 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/54132 | 2023-07-15T00:00:01Z | 2023-07-18T23:02:23Z | 2023-07-18T23:02:23Z | 2023-07-18T23:02:26Z |
BUG: DataFrame repr with ArrowDtype with extension | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 31293a42a3977..ed546187d721c 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -598,6 +598,7 @@ ExtensionArray
- Bug in :meth:`Series.quantile` for pyarrow temporal types raising ArrowInvalid (:issue:`5... | - [x] closes #54062 (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/54130 | 2023-07-14T21:16:21Z | 2023-07-18T16:50:50Z | 2023-07-18T16:50:50Z | 2023-07-18T16:51:35Z |
BUG: groupby.count maintains masked and arrow dtypes | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 839870cb18a0b..107dd87fd7486 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -569,6 +569,7 @@ Groupby/resample/rolling
- Bug in :meth:`GroupBy.var` failing to raise ``TypeError`` when called with date... | - [x] closes #53831 (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/54129 | 2023-07-14T20:14:18Z | 2023-07-24T17:45:09Z | 2023-07-24T17:45:09Z | 2023-07-24T21:28:53Z |
DOC: Fixing EX01 - Added examples | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 989ef6958d2e6..7dd347327f3cc 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -88,7 +88,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.errors.UnsupportedFunctionCall \
pandas.test \
pandas.NaT \
- pan... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Towards https://github.com/pandas-dev/pandas/issues/37875
It's not possible to make the html file for each method before opening the PR:
/preview needed. | https://api.github.com/repos/pandas-dev/pandas/pulls/54127 | 2023-07-14T16:23:34Z | 2023-07-14T17:45:59Z | 2023-07-14T17:45:59Z | 2023-07-18T09:12:11Z |
DOC: Fixing EX01 - Added example | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 1c6e23746352e..39c7582744601 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -131,7 +131,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.api.extensions.ExtensionArray.ndim \
pandas.api.extensions.ExtensionArray.shape... | - [ x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Towards https://github.com/pandas-dev/pandas/issues/37875
~~Modified `validate_docstrings.py`: it was raising for "importing pandas". If I didn't import pandas_gbq on the docstring, the er... | https://api.github.com/repos/pandas-dev/pandas/pulls/54126 | 2023-07-14T13:58:54Z | 2023-07-18T16:35:23Z | 2023-07-18T16:35:23Z | 2023-07-18T16:48:22Z |
DOC: Added depr note to swapaxes docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 0fc8b8217b63f..989ef6958d2e6 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -149,7 +149,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.api.extensions.ExtensionArray.shape \
pandas.api.extensions.ExtensionArray.toli... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Deprecated here: #51960 but docstring note missing there
| https://api.github.com/repos/pandas-dev/pandas/pulls/54125 | 2023-07-14T10:38:09Z | 2023-07-14T12:54:11Z | 2023-07-14T12:54:11Z | 2023-07-14T13:46:54Z |
TST:add tests for kurt in integer/test_reduction.py | diff --git a/pandas/core/arrays/masked.py b/pandas/core/arrays/masked.py
index b5c686f53597f..1f3790e0dfccc 100644
--- a/pandas/core/arrays/masked.py
+++ b/pandas/core/arrays/masked.py
@@ -1126,7 +1126,7 @@ def _wrap_na_result(self, *, name, axis, mask_size):
mask = np.ones(mask_size, dtype=bool)
fl... | Follow-up to https://github.com/pandas-dev/pandas/pull/52788#discussion_r1262810432. | https://api.github.com/repos/pandas-dev/pandas/pulls/54119 | 2023-07-13T22:26:13Z | 2023-07-14T16:40:38Z | 2023-07-14T16:40:38Z | 2023-07-14T17:18:44Z |
CoW: Set refs properly for non CoW mode | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 9084395871675..c67250ed3164b 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -794,11 +794,7 @@ def swapaxes(self, axis1: Axis, axis2: Axis, copy: bool_t | None = None) -> Self
new_axes = [self._get_axis(mapping.get(k, k)) ... | - [ ] 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/54118 | 2023-07-13T20:19:55Z | 2023-07-17T21:26:04Z | 2023-07-17T21:26:04Z | 2023-07-17T21:26:09Z |
CoW: Avoid unnecessary copies for columnwise replace | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 6fdd6cb2a639e..5cf0e9d9f2796 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4158,11 +4158,15 @@ def _set_item_mgr(
if len(self):
self._check_setitem_copy()
- def _iset_item(self, loc: int, value: Series) -> None:... | - [ ] 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/54117 | 2023-07-13T20:17:48Z | 2023-07-17T10:39:18Z | 2023-07-17T10:39:18Z | 2023-07-17T11:56:48Z |
CoW: Copy less in replace implementation with listlikes | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 69fa711d9e375..d0de1ed77c3a6 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -11,6 +11,7 @@
final,
)
import warnings
+import weakref
import numpy as np
@@ -839,7 +840,7 @@ def replace_l... | - [ ] 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/54116 | 2023-07-13T20:16:13Z | 2023-08-11T09:16:57Z | 2023-08-11T09:16:57Z | 2023-08-11T09:17:41Z |
ENH: .shift optionally takes multiple periods | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 8cf7543ae075b..46ca987d7b95b 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -168,6 +168,7 @@ Other enhancements
- Added :meth:`ExtensionArray.interpolate` used by :meth:`Series.interpolate` and :meth... | Taking over from https://github.com/pandas-dev/pandas/pull/44660/files
- [x] closes #44424
- [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/... | https://api.github.com/repos/pandas-dev/pandas/pulls/54115 | 2023-07-13T20:15:51Z | 2023-07-28T21:57:46Z | 2023-07-28T21:57:46Z | 2023-07-29T20:23:32Z |
TST / CoW: Adjust test to cover missing case | diff --git a/pandas/tests/copy_view/test_indexing.py b/pandas/tests/copy_view/test_indexing.py
index f9b4ba295f3a0..5ef0abbb423ac 100644
--- a/pandas/tests/copy_view/test_indexing.py
+++ b/pandas/tests/copy_view/test_indexing.py
@@ -843,8 +843,9 @@ def test_del_frame(backend, using_copy_on_write):
tm.assert_frame_... | - [ ] 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/54114 | 2023-07-13T20:14:10Z | 2023-07-17T10:17:00Z | 2023-07-17T10:17:00Z | 2023-07-17T11:57:04Z |
CoW: Fix test that is failing with new arrow version | diff --git a/pandas/compat/pyarrow.py b/pandas/compat/pyarrow.py
index 2f2fb6a3662f4..049ce50920e28 100644
--- a/pandas/compat/pyarrow.py
+++ b/pandas/compat/pyarrow.py
@@ -13,6 +13,7 @@
pa_version_under9p0 = _palv < Version("9.0.0")
pa_version_under10p0 = _palv < Version("10.0.0")
pa_version_under11p0 =... | - [ ] 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/54112 | 2023-07-13T20:09:34Z | 2023-07-17T11:53:32Z | 2023-07-17T11:53:32Z | 2023-07-17T11:53:35Z |
CoW: Avoid tracking references in delete if not necessary | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 69fa711d9e375..815417277f270 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -317,7 +317,7 @@ def take_block_columns(self, indices: npt.NDArray[np.intp]) -> Self:
@final
def getitem_blo... | - [ ] 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/54111 | 2023-07-13T20:08:24Z | 2023-08-11T09:17:10Z | 2023-08-11T09:17:09Z | 2023-08-11T09:17:37Z |
CI: Fix pyarrow nightly build | diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml
index a65718ba045a0..73d7723e2fb49 100644
--- a/.github/actions/build_pandas/action.yml
+++ b/.github/actions/build_pandas/action.yml
@@ -12,6 +12,7 @@ runs:
run: |
micromamba info
micromamba list
+ ... | EDIT: Looks like it was a stale cache issue. After deleting the cache (which the weekly job should help going forward), looks like pyarrow dev has an error | https://api.github.com/repos/pandas-dev/pandas/pulls/54110 | 2023-07-13T17:58:14Z | 2023-07-14T23:21:23Z | 2023-07-14T23:21:23Z | 2023-07-14T23:29:43Z |
ENH: support argmin/max, idxmin/max with object dtype | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 30b2f03dec98c..9000c83b323df 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -128,6 +128,7 @@ Other enhancements
- Many read/to_* functions, such as :meth:`DataFrame.to_pickle` and :func:`read_csv`, s... | - [x] closes #4279
- [x] closes #18021
- [x] closes #40685
- [x] closes #43697
- [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/... | https://api.github.com/repos/pandas-dev/pandas/pulls/54109 | 2023-07-13T17:49:36Z | 2023-07-17T16:22:48Z | 2023-07-17T16:22:48Z | 2023-07-17T16:47:55Z |
DOC: Organize README.md badges | diff --git a/README.md b/README.md
index a7f38b0fde5e8..8ea473beb107e 100644
--- a/README.md
+++ b/README.md
@@ -5,17 +5,13 @@
-----------------
# pandas: powerful Python data analysis toolkit
-[](https://pypi.org/project/pandas/)
-[![Conda Latest Rele... | Inspired by https://github.com/pypa/hatch/blob/master/README.md | https://api.github.com/repos/pandas-dev/pandas/pulls/54108 | 2023-07-13T17:12:41Z | 2023-07-14T04:14:54Z | 2023-07-14T04:14:54Z | 2023-07-14T04:16:01Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.