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 |
|---|---|---|---|---|---|---|---|
[REDO] CLN: core/dtypes/cast.py::maybe_downcast_to_dtype | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index e550309461de4..bcd878bb5a084 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -2,6 +2,7 @@
Routines for casting.
"""
+from contextlib import suppress
from datetime import date, datetime, timedelta
from typing imp... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
xref https://github.com/pandas-dev/pandas/pull/37050#issuecomment-708487786
The combination of #37050 and #37024 generated a `mypy` complaint. Thi... | https://api.github.com/repos/pandas-dev/pandas/pulls/37126 | 2020-10-15T03:26:12Z | 2020-10-17T13:47:03Z | 2020-10-17T13:47:03Z | 2020-10-17T13:47:14Z |
REF: IntervalArray comparisons | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 161cf3bf3a677..f8ece2a9fe7d4 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -1,3 +1,4 @@
+import operator
from operator import le, lt
import textwrap
from typing import TYPE_CHECKING, Optional, Tup... | - [ ] 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/37124 | 2020-10-14T23:02:47Z | 2020-11-03T09:57:29Z | 2020-11-03T09:57:28Z | 2020-11-03T15:11:29Z |
Backport PR #35688 on branch 1.1.x: Fix GH-29442 DataFrame.groupby doesn't preserve _metadata | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index aa2c77da4ee6f..6892fb62028c9 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -27,7 +27,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Bug causing ``groupby(...).sum()`` and similar to not preserv... | Backport PR #35688
| https://api.github.com/repos/pandas-dev/pandas/pulls/37122 | 2020-10-14T19:44:15Z | 2020-10-15T12:02:54Z | 2020-10-15T12:02:54Z | 2020-10-15T12:02:59Z |
ERR: Removing quotation marks in error message | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index b7554081fb521..538c15b707761 100644
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -3826,6 +3826,6 @@ def _validate_skipfooter(kwds: Dict[str, Any]) -> None:
"""
if kwds.get("skipfooter"):
if kwds.get("iterator") or kwds.get("ch... | Follow-up to https://github.com/pandas-dev/pandas/pull/36852
When reviewing, I got confused and thought `iteration` was somehow an argument to `read_csv` (like `nrows`). Since it is now, the quotation marks don't make as much sense to have.
Doing this as a follow-up since the original PR was a pure refactoring. | https://api.github.com/repos/pandas-dev/pandas/pulls/37120 | 2020-10-14T18:57:43Z | 2020-10-15T00:27:51Z | 2020-10-15T00:27:51Z | 2020-10-15T00:48:34Z |
PERF: regression in DataFrame reduction ops performance #37081 | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 539275c7ff617..8779ad6ef1c0d 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -8652,11 +8652,10 @@ def _reduce(
assert filter_type is None or filter_type == "bool", filter_type
out_dtype = "bool" if filter_type == "bool" els... | - [x] closes #37081
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Made the change proposed by @jorisvandenbossche in https://github.com/pandas-dev/pandas/pull/35881#discussion_r504035006
Did a very quick comparison :
With `self... | https://api.github.com/repos/pandas-dev/pandas/pulls/37118 | 2020-10-14T18:22:06Z | 2020-10-17T13:49:55Z | 2020-10-17T13:49:55Z | 2020-10-17T13:50:01Z |
CI: check for numpy.random-related imports | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d9e48ab9b6189..1065ccff32632 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -66,9 +66,17 @@ repos:
from\ pandas\.core\ import\ common|
# Check for imports from collections.abc instead of `from collect... | ~~- [x] closes #37053 (keep this issue open until both #37492 and #37117 are completed)~~
- [x] tests added / passed ~~(once #37492is merged)~~
# update 2020-10-31
now use a pre-commit check instead of the previous code_check
***
~~code_check.sh will be used to locate where numpy.random-related imports are.~~... | https://api.github.com/repos/pandas-dev/pandas/pulls/37117 | 2020-10-14T17:37:22Z | 2020-10-31T14:50:32Z | 2020-10-31T14:50:32Z | 2020-10-31T15:11:51Z |
Revert "CLN: core/dtypes/cast.py::maybe_downcast_to_dtype" | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index b6b9a2ae2aab8..e550309461de4 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -2,7 +2,6 @@
Routines for casting.
"""
-from contextlib import suppress
from datetime import date, datetime, timedelta
from typing imp... | Reverts pandas-dev/pandas#37050 | https://api.github.com/repos/pandas-dev/pandas/pulls/37116 | 2020-10-14T15:44:15Z | 2020-10-14T16:41:36Z | 2020-10-14T16:41:36Z | 2020-10-14T16:41:43Z |
TST: add message matches to pytest.raises in test_duplicate_labels.py GH30999 | diff --git a/pandas/tests/generic/test_duplicate_labels.py b/pandas/tests/generic/test_duplicate_labels.py
index 97468e1f10a8b..42745d2a69375 100644
--- a/pandas/tests/generic/test_duplicate_labels.py
+++ b/pandas/tests/generic/test_duplicate_labels.py
@@ -275,7 +275,8 @@ def test_set_flags_with_duplicates(self, cls, a... | Reference https://github.com/pandas-dev/pandas/issues/30999
- [x] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Hello! This is my first PR here. I followed the steps in the contributing guidelines [here](https://github.com/pandas-dev/panda... | https://api.github.com/repos/pandas-dev/pandas/pulls/37114 | 2020-10-14T12:31:40Z | 2020-10-14T18:06:55Z | 2020-10-14T18:06:55Z | 2020-10-14T18:07:12Z |
CLN: runtime imports | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index a7379376c2f78..2febd36c76b75 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -7,15 +7,17 @@
import numpy as np
-from pandas._libs import lib, tslib, tslibs
+from pandas._libs import lib, tslib
from pandas._libs.... | - [ ] 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/37112 | 2020-10-14T01:05:36Z | 2020-10-14T12:12:38Z | 2020-10-14T12:12:38Z | 2020-10-14T14:41:30Z |
CLN: ops, unnecessary mixin | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index eb5e5b03fe243..dd9adc59c909b 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -75,6 +75,7 @@
from pandas.core.arrays import DatetimeArray, TimedeltaArray
DTScalarOrNaT = Union[Da... | - [ ] 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/37111 | 2020-10-14T01:02:28Z | 2020-10-14T12:14:07Z | 2020-10-14T12:14:07Z | 2020-10-14T14:43:15Z |
TYP: fix typing errors for mypy==0.790, bump mypy version | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 946fda5f82279..cb97fdeccd579 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -88,7 +88,7 @@ If installed, we now require:
+-----------------+-----------------+----------+---------+
| pytest (dev) ... | - [x] closes #37104
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/37108 | 2020-10-13T20:31:00Z | 2021-01-10T09:38:05Z | 2021-01-10T09:38:04Z | 2021-01-10T15:29:51Z |
CLN: remove unnecessary _validate_foo methods | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index 95a003efbe1d0..948ffdc1f7c01 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -180,13 +180,10 @@ def _validate_shift_value(self, fill_value):
return self._validate_fill_value(fill_value)
def... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
since DatetimeLike and Categorical no longer special-case these, we can inline them. | https://api.github.com/repos/pandas-dev/pandas/pulls/37106 | 2020-10-13T18:37:02Z | 2020-10-14T12:21:59Z | 2020-10-14T12:21:59Z | 2020-10-14T14:42:29Z |
VIS: Accept xlabel and ylabel for scatter and hexbin plots | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index a963442ecda1c..d9d1ce797dd62 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -193,6 +193,7 @@ Other enhancements
- Where possible :meth:`RangeIndex.difference` and :meth:`RangeIndex.symmetric_differen... | - [x] closes #37001
- [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/37102 | 2020-10-13T15:44:23Z | 2020-10-14T17:54:11Z | 2020-10-14T17:54:11Z | 2020-10-15T08:02:43Z |
Update code_checks.sh to check for instances of os.remove | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 784d2c9a411ab..5437692d54439 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -268,6 +268,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
invgrep -RI --exclude=\*.{svg,c,cpp,html,js} --exclude-dir=env "\s$" *
RET=$(($RET + $?)) ; ech... | I have included a check for instances of os.remove in the tests folder. This is in line with issue #37095 whereby ensure_clean should be used rather than os.remove.
A few outstanding questions remain:
- Should this be expanded to search for cases of os.remove elsewhere?
- ~~Cases of `os.remove ` still exist i... | https://api.github.com/repos/pandas-dev/pandas/pulls/37097 | 2020-10-13T10:42:01Z | 2020-10-16T01:30:56Z | 2020-10-16T01:30:55Z | 2020-10-16T09:13:58Z |
Gh 36562 typeerror comparison not supported between float and str | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 7111d54d65815..ae6e2de1b819c 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -469,6 +469,7 @@ MultiIndex
- Bug in :meth:`DataFrame.xs` when used with :class:`IndexSlice` raises ``TypeError`` with me... | - [x] closes #36562
- [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/37096 | 2020-10-13T09:51:07Z | 2020-11-04T01:55:12Z | 2020-11-04T01:55:11Z | 2021-08-19T01:54:36Z |
REF/TYP: pandas/core/window/*.py | diff --git a/pandas/_libs/window/aggregations.pyx b/pandas/_libs/window/aggregations.pyx
index 131e0154ce8fc..fe97c048d4472 100644
--- a/pandas/_libs/window/aggregations.pyx
+++ b/pandas/_libs/window/aggregations.pyx
@@ -3,7 +3,6 @@
import cython
from cython import Py_ssize_t
-from libc.stdlib cimport free, malloc
... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
* Create clearer separation for methods belonging to `Window` vs `Rolling`
* More typing | https://api.github.com/repos/pandas-dev/pandas/pulls/37091 | 2020-10-12T23:55:29Z | 2020-10-15T16:40:28Z | 2020-10-15T16:40:28Z | 2020-10-15T23:22:48Z |
TST: Series constructor behavior is consistent for mixed float NaN and int dtype data | diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py
index a950ca78fc742..e20da0b891006 100644
--- a/pandas/tests/series/test_constructors.py
+++ b/pandas/tests/series/test_constructors.py
@@ -688,6 +688,13 @@ def test_constructor_coerce_float_valid(self, float_dtype):
... | - [x] closes #22585
- [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/37090 | 2020-10-12T23:41:06Z | 2020-10-25T18:52:39Z | 2020-10-25T18:52:39Z | 2021-12-30T00:39:40Z |
CLN: in maybe_cast_to_integer_array assert that dtype arg is an integer dtype | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index a7379376c2f78..3f6cfe2d44650 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1740,6 +1740,8 @@ def maybe_cast_to_integer_array(arr, dtype, copy: bool = False):
...
ValueError: Trying to coerce float val... | - [ ] 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/37089 | 2020-10-12T22:59:43Z | 2020-10-14T12:25:51Z | 2020-10-14T12:25:51Z | 2020-10-14T12:25:55Z |
CLN: clean Index._id | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index b3f5fb6f0291a..d180945d85d00 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -9,6 +9,7 @@
FrozenSet,
Hashable,
List,
+ NewType,
Optional,
Sequence,
Tuple,
@@ -139,7 +140,9 @@ def i... | Minor cleanup. | https://api.github.com/repos/pandas-dev/pandas/pulls/37087 | 2020-10-12T22:15:38Z | 2020-10-14T12:26:46Z | 2020-10-14T12:26:46Z | 2020-10-14T13:30:01Z |
CI: remove xfail for numpy-dev on branch 1.1.x only | diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py
index 5f82203d92dc3..1cb539f6010fd 100644
--- a/pandas/tests/indexes/common.py
+++ b/pandas/tests/indexes/common.py
@@ -5,7 +5,6 @@
import pytest
from pandas._libs import iNaT
-from pandas.compat.numpy import _is_numpy_dev
from pandas.err... | partially reverts pandas-dev/pandas#35537, xref https://github.com/pandas-dev/pandas/issues/35481#issuecomment-705144719 | https://api.github.com/repos/pandas-dev/pandas/pulls/37082 | 2020-10-12T15:22:22Z | 2020-10-14T19:24:03Z | 2020-10-14T19:24:03Z | 2020-10-21T12:36:19Z |
Backport PR #37046 on branch 1.1.x: Add whatsnew for #36727 | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 3ad8d981be2c9..3cd72caa3d257 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression where attempting to mutate a :class:`DateOffset` object would no longer... | Backport PR #37046 on branch 1.1.x | https://api.github.com/repos/pandas-dev/pandas/pulls/37079 | 2020-10-12T14:12:53Z | 2020-10-12T15:06:23Z | 2020-10-12T15:06:23Z | 2020-10-12T15:06:28Z |
Backport PR #36937 on branch 1.1.x: BUG: GH36928 Allow dict_keys to be used as column names by read_csv | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 3ad8d981be2c9..e2a17052726b0 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -14,6 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed regression in :func:`rea... | Backport PR #36937 on branch 1.1.x | https://api.github.com/repos/pandas-dev/pandas/pulls/37078 | 2020-10-12T14:07:40Z | 2020-10-12T15:09:51Z | 2020-10-12T15:09:51Z | 2020-10-12T15:09:56Z |
Backport PR #37034 on branch 1.1.x (REGR: Fix casting of None to str during astype) | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 4b93362e5fd3f..aa2c77da4ee6f 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Fixed regression where attempting to mutate a :class:`DateOffset` object would no longer... | Backport PR #37034: REGR: Fix casting of None to str during astype | https://api.github.com/repos/pandas-dev/pandas/pulls/37076 | 2020-10-12T14:00:58Z | 2020-10-12T16:47:42Z | 2020-10-12T16:47:42Z | 2020-10-12T16:47:42Z |
ENH: Add MultiIndex.dtypes | diff --git a/doc/source/reference/indexing.rst b/doc/source/reference/indexing.rst
index d3f9413dae565..8446b384b8fb8 100644
--- a/doc/source/reference/indexing.rst
+++ b/doc/source/reference/indexing.rst
@@ -290,6 +290,7 @@ MultiIndex properties
MultiIndex.codes
MultiIndex.nlevels
MultiIndex.levshape
+ M... | - [x] closes #37062
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Adds the .dtypes property to MultiIndex using the suggested implementation | https://api.github.com/repos/pandas-dev/pandas/pulls/37073 | 2020-10-12T09:42:47Z | 2020-12-11T23:04:19Z | 2020-12-11T23:04:19Z | 2020-12-11T23:04:25Z |
BUG: preserve timezone info when writing empty tz-aware series to HDF5 | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 4b2318350b286..80f4ceccfb82c 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -476,6 +476,7 @@ I/O
- Bug in :meth:`DataFrame.to_html`, :meth:`DataFrame.to_string`, and :meth:`DataFrame.to_latex` ignori... | - [x] closes #20594 (coupled with #37069 for empty tz-aware dataframes)
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
xref #20595 (stale PR that looked into this) | https://api.github.com/repos/pandas-dev/pandas/pulls/37072 | 2020-10-12T06:21:28Z | 2020-10-31T15:00:03Z | 2020-10-31T15:00:03Z | 2020-11-01T02:24:22Z |
BUG: preserve timezone info when writing empty tz-aware frame to HDF5 | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 339cda4db48fb..9fc094330fb36 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -433,6 +433,7 @@ I/O
- Bug in :meth:`to_json` with ``lines=True`` and ``orient='records'`` the last line of the record is n... | - [ ] partially closes #20594
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Will handle series case in follow-on | https://api.github.com/repos/pandas-dev/pandas/pulls/37069 | 2020-10-12T05:03:20Z | 2020-10-15T12:27:50Z | 2020-10-15T12:27:49Z | 2020-10-15T13:27:07Z |
CLN: remove unnecessary Categorical._validate_setitem_key | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 8dc5e6c0ff2aa..081a363ce03c6 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -9,7 +9,7 @@
from pandas._config import get_option
-from pandas._libs import NaT, algos as libalgos, hashta... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
and some unrelated cleanup in internals | https://api.github.com/repos/pandas-dev/pandas/pulls/37068 | 2020-10-12T03:45:43Z | 2020-10-12T23:27:50Z | 2020-10-12T23:27:50Z | 2020-10-13T00:43:48Z |
TYP: Misc groupby typing | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 86b6c4a6cf575..3079bb0b79b33 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5417,7 +5417,7 @@ def __setattr__(self, name: str, value) -> None:
)
object.__setattr__(self, name, value)
- def... | - [ ] 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/37066 | 2020-10-12T03:08:20Z | 2020-10-12T13:44:21Z | 2020-10-12T13:44:21Z | 2020-12-06T14:04:47Z |
REF: define NDFrame inplace ops non-dynamically | diff --git a/pandas/core/arraylike.py b/pandas/core/arraylike.py
index 553649212aa5f..da366c9abf0a4 100644
--- a/pandas/core/arraylike.py
+++ b/pandas/core/arraylike.py
@@ -6,8 +6,6 @@
"""
import operator
-from pandas.errors import AbstractMethodError
-
from pandas.core.ops import roperator
from pandas.core.ops.c... | - [ ] 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/37065 | 2020-10-12T02:17:39Z | 2020-10-12T15:19:51Z | 2020-10-12T15:19:51Z | 2020-10-12T15:30:39Z |
PERF: ExpandingGroupby | diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py
index f0dd908f81043..226b225b47591 100644
--- a/asv_bench/benchmarks/rolling.py
+++ b/asv_bench/benchmarks/rolling.py
@@ -76,12 +76,21 @@ class ExpandingMethods:
def setup(self, constructor, dtype, method):
N = 10 ** 5
+ ... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
```
before after ratio
[89cc5bf9] [6af880e7]
<master> <feature/groupby_expanding_indexer>
- 45.5±0.6ms 3.7... | https://api.github.com/repos/pandas-dev/pandas/pulls/37064 | 2020-10-12T00:51:38Z | 2020-10-12T16:57:08Z | 2020-10-12T16:57:08Z | 2020-10-12T17:08:12Z |
TST: Verify functioning of histtype argument (GH23992) | diff --git a/pandas/tests/plotting/common.py b/pandas/tests/plotting/common.py
index c04b70f3c2953..82a62c4588b94 100644
--- a/pandas/tests/plotting/common.py
+++ b/pandas/tests/plotting/common.py
@@ -1,4 +1,5 @@
import os
+from typing import TYPE_CHECKING, Sequence, Union
import warnings
import numpy as np
@@ -12... | - [x] closes #23992
- [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/37063 | 2020-10-11T23:27:19Z | 2020-11-01T06:31:43Z | 2020-11-01T06:31:43Z | 2020-11-01T06:31:43Z |
REF/TYP: use OpsMixin for StringArray | diff --git a/pandas/core/arrays/string_.py b/pandas/core/arrays/string_.py
index 553ba25270943..8231a5fa0509b 100644
--- a/pandas/core/arrays/string_.py
+++ b/pandas/core/arrays/string_.py
@@ -1,4 +1,3 @@
-import operator
from typing import TYPE_CHECKING, Type, Union
import numpy as np
@@ -15,7 +14,6 @@
pandas... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
its already mixed in, this just removes the leftover _create_arithmetic_method usage.
This is the last one outside of tests, for which we still ha... | https://api.github.com/repos/pandas-dev/pandas/pulls/37061 | 2020-10-11T21:58:55Z | 2020-10-12T13:45:07Z | 2020-10-12T13:45:07Z | 2020-10-12T14:26:17Z |
TST/CLN: relocate tests for PyTables roundtrip of timezone-aware Index | diff --git a/pandas/tests/io/pytables/test_store.py b/pandas/tests/io/pytables/test_store.py
index 1e1c9e91faa4b..e9cc1e6d5b1c3 100644
--- a/pandas/tests/io/pytables/test_store.py
+++ b/pandas/tests/io/pytables/test_store.py
@@ -2189,17 +2189,6 @@ def test_calendar_roundtrip_issue(self, setup_path):
result... | - [ ] 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/37060 | 2020-10-11T20:45:07Z | 2020-10-12T05:45:23Z | 2020-10-12T05:45:23Z | 2020-10-13T02:44:43Z |
TYP: mostly io, plotting | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 10b83116dee58..6af537dcd149a 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -4,12 +4,22 @@
import builtins
import textwrap
-from typing import Any, Callable, Dict, FrozenSet, Optional, TypeVar, Union
+from typing import (
+ TYPE_CHECKING... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
cc @simonjayhawkins can i get your thoughts on two remaining mypy complaints
```
pandas/io/excel/_base.py:795: error: "Callable[[ExcelWriter], Tu... | https://api.github.com/repos/pandas-dev/pandas/pulls/37059 | 2020-10-11T18:37:56Z | 2020-10-14T12:27:19Z | 2020-10-14T12:27:19Z | 2020-10-14T14:41:51Z |
TYP: core.internals | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index 94d6428b44043..debfb50caeeaa 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -1081,6 +1081,19 @@ def _formatter(self, boxed: bool = False) -> Callable[[Any], Optional[str]]:
# Reshaping
# -------------------... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Annotating Block as `Union[np.ndarray, ExtensionArray]`, mypy gives tons of complaints about EA not having `.T`, so this adds that, then updates test... | https://api.github.com/repos/pandas-dev/pandas/pulls/37058 | 2020-10-11T18:04:07Z | 2020-10-12T15:05:16Z | 2020-10-12T15:05:15Z | 2020-10-12T17:01:31Z |
Write pickle to file-like without intermediate in-memory buffer | diff --git a/asv_bench/benchmarks/io/pickle.py b/asv_bench/benchmarks/io/pickle.py
index 4ca9a82ae4827..656fe2197bc8a 100644
--- a/asv_bench/benchmarks/io/pickle.py
+++ b/asv_bench/benchmarks/io/pickle.py
@@ -24,5 +24,11 @@ def time_read_pickle(self):
def time_write_pickle(self):
self.df.to_pickle(self.fn... | Before this change, calling `pickle.dumps()` created an in-memory byte buffer, negating the advantage
of zero-copy pickle protocol 5. After this change, `pickle.dump` writes directly to open file(-like),
cutting peak memory in half in most cases.
Profiling was done with pandas@master and python 3.8.5
Related is... | https://api.github.com/repos/pandas-dev/pandas/pulls/37056 | 2020-10-11T16:15:57Z | 2020-10-14T12:27:39Z | 2020-10-14T12:27:38Z | 2020-10-14T12:27:44Z |
ENH: Use Kahan summation and Welfords method to calculate rolling var and std | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index da7dcc6ab29b9..74534bc371094 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -192,6 +192,7 @@ Other enhancements
- Added methods :meth:`IntegerArray.prod`, :meth:`IntegerArray.min`, and :meth:`Integer... | - [x] xref #37051
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
As suggested by @mroeschke Kahan summation fixes the numerical problems. Additionally I used Welfords Method to calculate ``ssqdm``, because previousl... | https://api.github.com/repos/pandas-dev/pandas/pulls/37055 | 2020-10-11T15:56:35Z | 2020-10-12T22:53:38Z | 2020-10-12T22:53:38Z | 2020-10-14T20:04:13Z |
CI clean pre-commit: upgrade isort, use correct file types in flake8 | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 39fe509c6cd29..5b8b58a6a82f8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -9,24 +9,23 @@ repos:
- id: flake8
additional_dependencies: [flake8-comprehensions>=3.1.0]
- id: flake8
- name: flake8-pyx... | A few things here:
- updating isort version
- updating to use `types` instead of `files` (see https://github.com/pre-commit/pre-commit/issues/1436#issuecomment-624219819 and https://github.com/PyCQA/isort/pull/1549#issuecomment-706621474)
- removing `exclude: ^pandas/__init__\.py$|^pandas/core/api\.py$` as it's no... | https://api.github.com/repos/pandas-dev/pandas/pulls/37052 | 2020-10-11T14:13:19Z | 2020-10-11T16:05:13Z | 2020-10-11T16:05:13Z | 2020-10-11T16:08:26Z |
CLN: core/dtypes/cast.py::maybe_downcast_to_dtype | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index a7379376c2f78..336d33cd35d7a 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -2,6 +2,7 @@
Routines for casting.
"""
+from contextlib import suppress
from datetime import date, datetime, timedelta
from typing imp... | - [ ] 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/37050 | 2020-10-11T04:17:50Z | 2020-10-14T12:32:43Z | 2020-10-14T12:32:43Z | 2020-10-14T16:15:11Z |
REF: use OpsMixin in EAs | diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py
index 4dd117e407961..9ffe00cf3189a 100644
--- a/pandas/core/arrays/boolean.py
+++ b/pandas/core/arrays/boolean.py
@@ -6,7 +6,6 @@
from pandas._libs import lib, missing as libmissing
from pandas._typing import ArrayLike
-from pandas.compat im... | - [ ] 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/37049 | 2020-10-11T03:15:15Z | 2020-10-11T20:03:29Z | 2020-10-11T20:03:29Z | 2020-10-11T20:19:31Z |
TST: Fix failing test from #37027 | diff --git a/pandas/tests/tools/test_to_datetime.py b/pandas/tests/tools/test_to_datetime.py
index ef7c4be20e22e..63f9a2532fa73 100644
--- a/pandas/tests/tools/test_to_datetime.py
+++ b/pandas/tests/tools/test_to_datetime.py
@@ -832,7 +832,7 @@ def test_datetime_invalid_scalar(self, value, format, infer):
ms... | Part of #30999
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` | https://api.github.com/repos/pandas-dev/pandas/pulls/37048 | 2020-10-11T03:11:57Z | 2020-10-11T13:32:59Z | 2020-10-11T13:32:58Z | 2020-10-11T13:33:48Z |
REF: back IntervalArray by a single ndarray | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index a06e0c74ec03b..d943fe3df88c5 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -1,5 +1,6 @@
from operator import le, lt
import textwrap
+from typing import TYPE_CHECKING, Optional, Tuple, Union, cast
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
The main motivation here is for perf for methods that current cast to object dtype, including value_counts, set ops, values_for_(argsort|factorize)
... | https://api.github.com/repos/pandas-dev/pandas/pulls/37047 | 2020-10-11T02:43:36Z | 2020-10-12T23:28:48Z | 2020-10-12T23:28:48Z | 2020-11-18T16:12:44Z |
DOC: Add whatsnew for #36727 | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index cd5f8d3f88466..aa2c77da4ee6f 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... | xref #36727
Was not quick enough to add a whatsnew with the PR when 1.1.4 whatsnew was merged. | https://api.github.com/repos/pandas-dev/pandas/pulls/37046 | 2020-10-10T23:40:39Z | 2020-10-11T13:44:10Z | 2020-10-11T13:44:10Z | 2020-10-12T19:01:29Z |
MYPY: Delete unnecessary unused type hint | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 3ad9f195c3cae..1cea817abbaa3 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -496,9 +496,7 @@ def maybe_casted_values(index, codes=None):
values, _ = maybe_upcast_putmask(values, mask, np.nan)
... | cc @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/37045 | 2020-10-10T23:29:24Z | 2020-10-11T02:21:54Z | 2020-10-11T02:21:53Z | 2020-10-11T09:55:51Z |
REF/TYP: use OpsMixin for DataFrame | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 0314bdc4ee8ed..43c87cc919980 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -124,6 +124,7 @@
relabel_result,
transform,
)
+from pandas.core.arraylike import OpsMixin
from pandas.core.arrays import Categorical, ExtensionArray
fr... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
made possible by #36483 | https://api.github.com/repos/pandas-dev/pandas/pulls/37044 | 2020-10-10T22:53:56Z | 2020-10-11T21:00:37Z | 2020-10-11T21:00:37Z | 2020-10-11T21:57:38Z |
ENH: Implement sem for Rolling and Expanding | diff --git a/doc/source/reference/window.rst b/doc/source/reference/window.rst
index 611c0e0f7f160..77697b966df18 100644
--- a/doc/source/reference/window.rst
+++ b/doc/source/reference/window.rst
@@ -32,6 +32,7 @@ Standard moving window functions
Rolling.apply
Rolling.aggregate
Rolling.quantile
+ Rolling... | - [x] closes #26476
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I added sem to the Rolling and Expanding API as mentioned in the issue linked above. | https://api.github.com/repos/pandas-dev/pandas/pulls/37043 | 2020-10-10T22:39:15Z | 2020-10-12T15:30:03Z | 2020-10-12T15:30:03Z | 2020-10-12T19:01:47Z |
DOC: Add summary to interpolate | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 86b6c4a6cf575..5e5a77fe24cb5 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6838,6 +6838,8 @@ def interpolate(
**kwargs,
) -> Optional[FrameOrSeries]:
"""
+ Fill NaN values using an interpolation metho... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
The interpolate method was missing a short summary. I hope this addition is reasonable. Happy to change it with feedback. | https://api.github.com/repos/pandas-dev/pandas/pulls/37042 | 2020-10-10T22:35:53Z | 2020-10-15T01:45:10Z | 2020-10-15T01:45:10Z | 2020-10-15T01:45:22Z |
CLN: remove unnecessary DatetimeTZBlock.fillna | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 8346b48539887..ac210ecbaad5f 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -2090,13 +2090,7 @@ def _can_hold_element(self, element: Any) -> bool:
class DatetimeLikeBlockMixin(Block):
"""Mix... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
and no need to have TimeDeltaBlock inherit from IntBlock | https://api.github.com/repos/pandas-dev/pandas/pulls/37040 | 2020-10-10T22:14:54Z | 2020-10-11T16:32:34Z | 2020-10-11T16:32:34Z | 2020-10-11T17:36:16Z |
CI: move py39 build to conda #33948 | diff --git a/.travis.yml b/.travis.yml
index 2bf72bd159fc2..1ddd886699d38 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -35,11 +35,6 @@ matrix:
fast_finish: true
include:
- - dist: bionic
- python: 3.9-dev
- env:
- - JOB="3.9-dev" PATTERN="(not slow and not network and not clipboard)"
-
... | - [x] closes #33948
| https://api.github.com/repos/pandas-dev/pandas/pulls/37039 | 2020-10-10T21:20:55Z | 2020-11-14T02:27:33Z | 2020-11-14T02:27:33Z | 2020-12-05T18:51:43Z |
REF/TYP: define Index methods non-dynamically | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index aece69d49a68b..b3f5fb6f0291a 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -5418,29 +5418,23 @@ def _arith_method(self, other, op):
return (Index(result[0]), Index(result[1]))
return Index(... | - [ ] 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/37038 | 2020-10-10T20:51:01Z | 2020-10-12T15:31:19Z | 2020-10-12T15:31:19Z | 2020-10-12T15:35:13Z |
Fixed metadata propagation in DataFrame.__getitem__ | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 09cb024cbd95c..b01df3c693b97 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -591,6 +591,7 @@ Other
- Bug in :meth:`DataFrame.replace` and :meth:`Series.replace` incorrectly casting from ``PeriodDtype... | xref #28283 | https://api.github.com/repos/pandas-dev/pandas/pulls/37037 | 2020-10-10T18:58:19Z | 2020-11-15T17:27:49Z | 2020-11-15T17:27:49Z | 2020-11-15T17:27:53Z |
CLN: clean libreduction | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 3a0fda5aed620..9459cd297c758 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -1,7 +1,5 @@
from copy import copy
-from cython import Py_ssize_t
-
from libc.stdlib cimport free, malloc
import numpy as np
@@ -11,1... | https://api.github.com/repos/pandas-dev/pandas/pulls/37036 | 2020-10-10T18:26:25Z | 2020-10-10T22:21:15Z | 2020-10-10T22:21:15Z | 2022-11-18T02:21:11Z | |
API: reimplement FixedWindowIndexer.get_window_bounds | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 57e3c9dd66afb..a2067cf78315c 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -444,6 +444,7 @@ Groupby/resample/rolling
- Bug in :meth:`Rolling.count` returned ``np.nan`` with :class:`pandas.api.indexe... | - [x] closes #36040
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This PR replaces [36132](https://github.com/pandas-dev/pandas/pull/36132) following @mroeschke's [36567](https://github.com/pandas-dev/pandas/pull/3... | https://api.github.com/repos/pandas-dev/pandas/pulls/37035 | 2020-10-10T15:54:29Z | 2020-10-10T22:30:51Z | 2020-10-10T22:30:51Z | 2020-10-10T22:30:54Z |
REGR: Fix casting of None to str during astype | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 3ad8d981be2c9..ca58239dccb8d 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression where attempting to mutate a :class:`DateOffset` object would no longer... | - [x] closes #36904
- [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/37034 | 2020-10-10T15:45:00Z | 2020-10-10T18:24:59Z | 2020-10-10T18:24:59Z | 2020-10-12T14:00:04Z |
CLN: Simplify aggregation.aggregate | diff --git a/pandas/core/aggregation.py b/pandas/core/aggregation.py
index 74359c8831745..ba7638e269fc0 100644
--- a/pandas/core/aggregation.py
+++ b/pandas/core/aggregation.py
@@ -608,92 +608,41 @@ def aggregate(obj, arg: AggFuncType, *args, **kwargs):
from pandas.core.reshape.concat import concat
- ... | - [ ] 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/37033 | 2020-10-10T15:29:54Z | 2020-10-10T23:25:34Z | 2020-10-10T23:25:34Z | 2020-10-11T13:15:21Z |
DOC: Group relevant df.mask/df.where examples together | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 338b45b5503dc..cf9b90ef83749 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9088,7 +9088,6 @@ def where(
3 3.0
4 4.0
dtype: float64
-
>>> s.mask(s > 0)
0 0.0
1 NaN
@... | df.mask() and df.where() are complementary and so they share docs, see [here](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.mask.html). I grouped related examples together.
- [x] Close #25187
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/maste... | https://api.github.com/repos/pandas-dev/pandas/pulls/37032 | 2020-10-10T15:02:19Z | 2020-10-10T17:26:25Z | 2020-10-10T17:26:25Z | 2020-10-11T02:35:32Z |
DOC: Clarify display.precision | diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py
index bfe20551cbcfc..541ecd9df6fc7 100644
--- a/pandas/core/config_init.py
+++ b/pandas/core/config_init.py
@@ -85,8 +85,9 @@ def use_numba_cb(key):
pc_precision_doc = """
: int
- Floating point output precision (number of significant digits). ... | - [x] closes #21004
- [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/37030 | 2020-10-10T14:36:37Z | 2020-10-12T15:09:05Z | 2020-10-12T15:09:05Z | 2020-10-17T02:51:06Z |
DOC: Improve what the `axis=` kwarg does for generic methods | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 86b6c4a6cf575..dd1e03056b702 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10732,7 +10732,7 @@ def all(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs):
@doc(
desc="Return the mean absolute ... | ### [`axis=0` or `axis=1`, which is it?](https://github.com/pandas-dev/pandas/issues/29203#issue-511923432)
Opening a PR to discuss #29203 on what it means to do `df.sum(axis=0)` versus `df.sum(axis=1)`. The docs does not make it intuitively clear to the user. I propose a simple change where **"summing across`axis=0`"... | https://api.github.com/repos/pandas-dev/pandas/pulls/37029 | 2020-10-10T13:04:41Z | 2020-10-12T15:35:01Z | 2020-10-12T15:35:00Z | 2020-10-12T15:35:49Z |
TST: insert 'match' to bare pytest raises in pandas/tests/tools/test_… | diff --git a/pandas/tests/tools/test_to_datetime.py b/pandas/tests/tools/test_to_datetime.py
index 819474e1f32e7..ef7c4be20e22e 100644
--- a/pandas/tests/tools/test_to_datetime.py
+++ b/pandas/tests/tools/test_to_datetime.py
@@ -349,7 +349,9 @@ def test_to_datetime_parse_tzname_or_tzoffset_different_tz_to_utc(self):
... | - [ ] ref https://github.com/pandas-dev/pandas/issues/30999
- [ ] 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/37027 | 2020-10-10T11:22:23Z | 2020-10-10T16:02:08Z | 2020-10-10T16:02:07Z | 2020-10-11T03:12:26Z |
TST: insert 'match' to bare pytest raises in pandas/tests/test_flags.py | diff --git a/pandas/tests/test_flags.py b/pandas/tests/test_flags.py
index f6e3ae4980afb..9294b3fc3319b 100644
--- a/pandas/tests/test_flags.py
+++ b/pandas/tests/test_flags.py
@@ -41,8 +41,8 @@ def test_getitem(self):
flags["allows_duplicate_labels"] = False
assert flags["allows_duplicate_labels"] is... | - [ ] ref https://github.com/pandas-dev/pandas/issues/30999
- [ ] 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/37026 | 2020-10-10T09:02:17Z | 2020-10-10T16:02:57Z | 2020-10-10T16:02:57Z | 2020-10-10T16:03:01Z |
DOC: Clarified pandas_version in to_json | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 338b45b5503dc..0290f74eb41df 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2274,6 +2274,10 @@ def to_json(
and the default ``indent=None`` are equivalent in pandas, though this
may change in a future release.
+... | - [X] closes #26637
- [ ] tests added / passed
- [X] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/37025 | 2020-10-10T08:35:54Z | 2020-10-14T12:33:58Z | 2020-10-14T12:33:58Z | 2020-10-14T12:46:19Z |
TYP: core/dtypes/cast.py | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index a7379376c2f78..1dce5c2be809b 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -3,7 +3,18 @@
"""
from datetime import date, datetime, timedelta
-from typing import TYPE_CHECKING, Any, List, Optional, Tuple, Type
+fr... | - [ ] 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/37024 | 2020-10-10T06:32:00Z | 2020-10-14T12:35:15Z | 2020-10-14T12:35:15Z | 2020-10-14T12:35:20Z |
REGR: fix bug in DatetimeIndex slicing with irregular or unsorted indices | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index eb68ca38ea5b6..eefc1284c1285 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -22,6 +22,7 @@ Fixed regressions
- Fixed regression in :class:`RollingGroupby` causing a segmentation fault with Index of d... | closes #36953
closes #35509
- [x] 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/37023 | 2020-10-10T06:30:19Z | 2020-10-26T14:51:58Z | 2020-10-26T14:51:58Z | 2020-10-26T15:15:06Z |
Fix to_gbq method when verbose=False | diff --git a/pandas/io/gbq.py b/pandas/io/gbq.py
index e706434f29dc5..edd8f8c7b5033 100644
--- a/pandas/io/gbq.py
+++ b/pandas/io/gbq.py
@@ -426,9 +426,8 @@ def load_data(self, dataframe, dataset_id, table_id, chunksize):
rows = []
remaining_rows = len(dataframe)
- if self.verbose:
- ... | Currently the `to_gbq` method fails when `verbose=False`, as the printing of progress is done regardless of the value of the `verbose` flag, and therefore `total_rows` gets called without being set. This change suppresses printing of progress when `verbose=False`.
| https://api.github.com/repos/pandas-dev/pandas/pulls/13244 | 2016-05-20T22:13:53Z | 2016-08-15T20:19:33Z | 2016-08-15T20:19:33Z | 2016-08-15T20:19:42Z |
CLN: Check Warnings in test_graphics_others | diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py
index b09185c19bffb..bd19a83ce2b64 100644
--- a/pandas/tests/test_graphics.py
+++ b/pandas/tests/test_graphics.py
@@ -450,8 +450,9 @@ def _check_box_return_type(self, returned, return_type, expected_keys=None,
self.assertIsI... | - [x] closes #13185 maybe
- [x] passes `git diff upstream/master | flake8 --diff`
Also a MatplotlibDeprecationWarning for use of `.get_axes()` vs. `.axes` in some tests.
| https://api.github.com/repos/pandas-dev/pandas/pulls/13188 | 2016-05-15T17:11:08Z | 2016-07-05T23:14:36Z | 2016-07-05T23:14:36Z | 2017-04-05T02:06:59Z |
BUG/COMPAT: to_datetime | diff --git a/doc/source/whatsnew/v0.18.1.txt b/doc/source/whatsnew/v0.18.1.txt
index 3345cb3d29926..1a79601bee384 100644
--- a/doc/source/whatsnew/v0.18.1.txt
+++ b/doc/source/whatsnew/v0.18.1.txt
@@ -478,7 +478,7 @@ In addition to this error change, several others have been made as well:
``to_datetime`` error changes... | xref #11758, fix for bug in #13033
| https://api.github.com/repos/pandas-dev/pandas/pulls/13052 | 2016-05-01T21:44:32Z | 2016-05-01T22:59:20Z | 2016-05-01T22:59:20Z | 2016-05-03T00:38:26Z |
COMPAT: some compatibility fixes with new numpies | diff --git a/pandas/compat/numpy_compat.py b/pandas/compat/numpy_compat.py
index d71420e979c82..8ecc5dc979792 100644
--- a/pandas/compat/numpy_compat.py
+++ b/pandas/compat/numpy_compat.py
@@ -1,5 +1,6 @@
""" support numpy compatiblitiy across versions """
+import re
import numpy as np
from distutils.version impor... | https://api.github.com/repos/pandas-dev/pandas/pulls/13010 | 2016-04-27T14:57:16Z | 2016-04-27T18:32:25Z | 2016-04-27T18:32:25Z | 2016-04-27T18:32:25Z | |
support constructing Panel or Panel4D with scalar data, fixes #8285 | diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt
index d60fa718ae07c..5b2a788829ce3 100644
--- a/doc/source/whatsnew/v0.16.0.txt
+++ b/doc/source/whatsnew/v0.16.0.txt
@@ -622,3 +622,4 @@ Bug Fixes
- Bug in ``Series.values_counts`` with excluding ``NaN`` for categorical type ``Series`` wit... | this should fix https://github.com/pydata/pandas/issues/8285
| https://api.github.com/repos/pandas-dev/pandas/pulls/9640 | 2015-03-13T02:22:36Z | 2015-03-14T01:31:43Z | 2015-03-14T01:31:43Z | 2015-04-29T15:32:32Z |
Rearrange into logical sections and add relevant links | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index e6ae1d0a36bd1..876daa97313e8 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,4 +1,4 @@
-###Guidelines
+### Guidelines
All contributions, bug reports, bug fixes, documentation improvements,
enhancements and ideas are welcome.
@@ -14,8 +14,9 @@ looking for... | This rearranges the Contributing page into more logical sections and provides some more useful links to wiki pages. I think this should be the place where all relevant documentation on pandas development can be found. For example, both this page and the pandas homepage mention `vbench` but the information on running ... | https://api.github.com/repos/pandas-dev/pandas/pulls/9639 | 2015-03-13T01:03:45Z | 2015-03-13T07:48:21Z | 2015-03-13T07:48:21Z | 2015-03-13T16:54:25Z |
BLD: add conda recipe (GH8934) | diff --git a/.binstar.yml b/.binstar.yml
new file mode 100644
index 0000000000000..6f7c2c5ba4c7a
--- /dev/null
+++ b/.binstar.yml
@@ -0,0 +1,38 @@
+package: pandas
+user: jreback
+
+platform:
+ #- osx-64
+ #- linux-32
+ - linux-64
+ - win-64
+ #- win-32
+
+engine:
+ #- python=2.6
+ - python=2.7
+ #- python=3.3
+ #- pyt... | closes #8934
| https://api.github.com/repos/pandas-dev/pandas/pulls/9634 | 2015-03-11T20:46:10Z | 2015-03-11T20:46:30Z | 2015-03-11T20:46:30Z | 2015-03-20T14:48:59Z |
Return the right class, when subclassing a DataFrame with multi-level index | diff --git a/doc/source/whatsnew/v0.16.1.txt b/doc/source/whatsnew/v0.16.1.txt
index 56d940031119d..d422e7815a5a3 100755
--- a/doc/source/whatsnew/v0.16.1.txt
+++ b/doc/source/whatsnew/v0.16.1.txt
@@ -300,3 +300,4 @@ Bug Fixes
- Bug in ``transform`` when groups are equal in number and dtype to the input index (:issue:... | Subclassing pandas.DataFrame had some issues, when a multi-level index was used. This PR should fix that.
| https://api.github.com/repos/pandas-dev/pandas/pulls/9632 | 2015-03-11T10:48:17Z | 2015-05-04T18:58:49Z | 2015-05-04T18:58:49Z | 2015-05-04T18:58:56Z |
DEPR: DatetimeIndex/PeriodsIndex +/- ops (GH9094) | diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt
index 2e910e32d4dfd..3f37b44f509ff 100644
--- a/doc/source/whatsnew/v0.16.0.txt
+++ b/doc/source/whatsnew/v0.16.0.txt
@@ -385,6 +385,8 @@ Deprecations
- The ``pandas.rpy`` interface is deprecated and will be removed in a future version.
... | closes #9094
closes #9095
deprecate `DatetimeIndex/PeriodIndex` `+/-` ops which are set ops. In a future version `-` will produce a `TimeDeltaIndex` and `+` a `TypeError`
| https://api.github.com/repos/pandas-dev/pandas/pulls/9630 | 2015-03-11T01:53:16Z | 2015-03-11T10:21:42Z | 2015-03-11T10:21:41Z | 2015-03-11T10:21:42Z |
TST/DOC: Fix tests and docs for .cat raising AttributeError if invalid | diff --git a/doc/source/categorical.rst b/doc/source/categorical.rst
index 91cfa77bc618c..8eb235d46e6ed 100644
--- a/doc/source/categorical.rst
+++ b/doc/source/categorical.rst
@@ -766,6 +766,14 @@ Dtype comparisons work:
dtype == np.str_
np.str_ == dtype
+To check if a Series contains Categorical data, wit... | Follow-up on #9617
Fixes #8814 -- is it fair to say that `hasattr(s, 'cat')` is probably
the best solution we're going to come up with for checking for categorical
data?
CC @jreback @jorisvandenbossche @JanSchulz
| https://api.github.com/repos/pandas-dev/pandas/pulls/9629 | 2015-03-11T00:21:03Z | 2015-03-11T01:35:33Z | 2015-03-11T01:35:32Z | 2015-03-11T01:35:35Z |
Fix table name on comparison with SQL | diff --git a/doc/source/comparison_with_sql.rst b/doc/source/comparison_with_sql.rst
index 371875d9996f9..5dc083db7d147 100644
--- a/doc/source/comparison_with_sql.rst
+++ b/doc/source/comparison_with_sql.rst
@@ -204,7 +204,7 @@ Grouping by more than one column is done by passing a list of columns to the
.. code-block... | All the other examples use the table name "tips"
| https://api.github.com/repos/pandas-dev/pandas/pulls/9628 | 2015-03-10T23:15:28Z | 2015-03-11T00:18:33Z | 2015-03-11T00:18:32Z | 2015-03-11T00:18:33Z |
improve error message when importing pandas from source directory | diff --git a/pandas/__init__.py b/pandas/__init__.py
index 939495d3687ad..2a142a6ff2072 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -4,17 +4,13 @@
__docformat__ = 'restructuredtext'
try:
- from . import hashtable, tslib, lib
-except Exception: # pragma: no cover
- import sys
- e = sys.exc_... | Currently if one imports from the source directory without building the C extension the error message is not very helpful:
`ImportError: cannot import name 'hashtable'`
I see a few previous PRs (https://github.com/pydata/pandas/pull/3827, https://github.com/pydata/pandas/pull/3821) that tried to address this but someh... | https://api.github.com/repos/pandas-dev/pandas/pulls/9626 | 2015-03-10T18:46:43Z | 2015-05-04T22:41:49Z | 2015-05-04T22:41:49Z | 2015-05-05T00:09:03Z |
API: deprecate setting of .ordered directly (GH9347, GH9190) | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 7fbb432f0be6b..58ea517d055a0 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -585,6 +585,8 @@ following usable methods and properties (all available as ``Series.cat.<method_o
Categorical.remove_categories
Categorical.remove_unused_categories... | alternate to #9611
closes #9347
closes #9190
closes #9148
This implementes the alternate, and IMHO a nice compromise.
Groupby's will succeed whether ordered or not
ordering ops (sort/argsort/min/max) will still raise.
one though is that we could detect a non-reduction where the ordering matters (maybe we do this i... | https://api.github.com/repos/pandas-dev/pandas/pulls/9622 | 2015-03-09T22:56:46Z | 2015-03-11T12:11:49Z | 2015-03-11T12:11:48Z | 2015-03-11T12:12:05Z |
fix pymysql at 0.6.3 (GH9608) | diff --git a/ci/requirements-3.4.txt b/ci/requirements-3.4.txt
index 33d3b3b4dc459..8a55c0458688e 100644
--- a/ci/requirements-3.4.txt
+++ b/ci/requirements-3.4.txt
@@ -15,5 +15,5 @@ matplotlib
lxml
sqlalchemy
bottleneck
-pymysql
+pymysql==0.6.3
psycopg2
| xref #9608
fix version to bypass failures for now
| https://api.github.com/repos/pandas-dev/pandas/pulls/9621 | 2015-03-09T20:55:16Z | 2015-03-09T21:39:59Z | 2015-03-09T21:39:59Z | 2015-03-09T21:39:59Z |
DOC: Shrink image asset for assign | diff --git a/doc/source/_static/whatsnew_assign.png b/doc/source/_static/whatsnew_assign.png
index 0e39e161dc606..84546cadf0276 100644
Binary files a/doc/source/_static/whatsnew_assign.png and b/doc/source/_static/whatsnew_assign.png differ
| Let's try this again. The sphinx directive didn't seem to work. I just shrunk the static asset.
I'm not at my regular computer and I haven't been able to get the docs to build on this one, so I'm exactly sure how it will look in the page :)
| https://api.github.com/repos/pandas-dev/pandas/pulls/9619 | 2015-03-09T15:20:03Z | 2015-03-09T18:42:16Z | 2015-03-09T18:42:16Z | 2015-08-18T12:45:06Z |
BUG/API: Accessors like .cat raise AttributeError when invalid | diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt
index bc51519898359..9467764ec2a74 100644
--- a/doc/source/whatsnew/v0.16.0.txt
+++ b/doc/source/whatsnew/v0.16.0.txt
@@ -245,6 +245,7 @@ Backwards incompatible API changes
- Bar and horizontal bar plots no longer add a dashed line along ... | `AttributeError` is really the appropriate error to raise for an invalid
attribute. In particular, it is necessary to ensure that tests like
`hasattr(s, 'cat')` work consistently on Python 2 and 3: on Python 2,
`hasattr(s, 'cat')` will return `False` even if a `TypeError` was raised, but
Python 3 more strictly requires... | https://api.github.com/repos/pandas-dev/pandas/pulls/9617 | 2015-03-09T08:12:31Z | 2015-03-10T22:49:06Z | 2015-03-10T22:49:06Z | 2015-03-11T02:33:15Z |
DEPR: deprecate pandas.sandbox.qtpandas | diff --git a/doc/source/faq.rst b/doc/source/faq.rst
index 6977716e2913f..de88b436198dd 100644
--- a/doc/source/faq.rst
+++ b/doc/source/faq.rst
@@ -290,6 +290,11 @@ details.
Visualizing Data in Qt applications
-----------------------------------
+.. warning::
+
+ The ``qt`` support is **deprecated and will be r... | not supported module/interface.
xref #1986, #8788
| https://api.github.com/repos/pandas-dev/pandas/pulls/9615 | 2015-03-08T16:18:08Z | 2015-03-08T16:27:28Z | 2015-03-08T16:27:28Z | 2015-03-08T16:27:28Z |
DEPR: deprecate pandas.rpy (GH9602) | diff --git a/doc/source/r_interface.rst b/doc/source/r_interface.rst
index 98fc4edfd5816..826d9e980538e 100644
--- a/doc/source/r_interface.rst
+++ b/doc/source/r_interface.rst
@@ -13,11 +13,9 @@
rpy2 / R interface
******************
-.. note::
-
- This is all highly experimental. I would like to get more people ... | closes #9602
| https://api.github.com/repos/pandas-dev/pandas/pulls/9612 | 2015-03-07T23:37:38Z | 2015-03-08T16:29:06Z | 2015-03-08T16:29:06Z | 2015-03-08T16:52:18Z |
ENH: Add days_in_month property to Timestamp/DatetimeIndex/... (GH9572) | diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt
index d45125f2be7f3..9df0234da93be 100644
--- a/doc/source/whatsnew/v0.16.0.txt
+++ b/doc/source/whatsnew/v0.16.0.txt
@@ -61,6 +61,7 @@ New features
- Added ``StringMethods.ljust()`` and ``rjust()`` which behave as the same as standard ``st... | closes #9572
Added days_in_month property (compatibility alias daysinmonth) to Timestamp, DatetimeIndex, Period, PeriodIndex,
Series.dt.
Although not mentioned in the GH issue, I added the property to Period and PeriodIndex to be consistent with the others: dayofweek, dayofyear, etc.
| https://api.github.com/repos/pandas-dev/pandas/pulls/9605 | 2015-03-06T20:01:46Z | 2015-03-06T23:09:16Z | 2015-03-06T23:09:16Z | 2015-03-07T15:09:41Z |
Fix several stata doc issues | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 1b88a5ba3ba98..d49e88c953b27 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -3779,15 +3779,15 @@ into a .dta file. The format version of this file is always 115 (Stata 12).
df = DataFrame(randn(10, 2), columns=list('AB'))
df.to_stata('stata.dta... | Related to #9493
| https://api.github.com/repos/pandas-dev/pandas/pulls/9601 | 2015-03-06T12:35:44Z | 2015-03-06T23:01:56Z | 2015-03-06T23:01:56Z | 2015-11-12T23:44:11Z |
BUG: Regression in merging Categorical and object dtypes (GH9426) | diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt
index 653c71a4e2d3c..b98429b82b9af 100644
--- a/doc/source/whatsnew/v0.16.0.txt
+++ b/doc/source/whatsnew/v0.16.0.txt
@@ -521,7 +521,7 @@ Bug Fixes
- ``SparseSeries`` and ``SparsePanel`` now accept zero argument constructors (same as th... | closes #9426
| https://api.github.com/repos/pandas-dev/pandas/pulls/9597 | 2015-03-06T00:32:55Z | 2015-03-06T03:18:10Z | 2015-03-06T03:18:10Z | 2015-03-06T03:18:11Z |
DOC: update tutorial docs on changed sniffing feature of read_csv | diff --git a/doc/source/io.rst b/doc/source/io.rst
index e71b4134f5b9c..d1c134e1c6e9d 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -82,10 +82,10 @@ They can take a number of arguments:
(including http, ftp, and S3 locations), or any object with a ``read``
method (such as an open file or ``StringI... | This was apparantly already changed in 0.7, but the docs were still wrong about it. The current example did not make much sense: http://pandas.pydata.org/pandas-docs/stable/io.html#automatically-sniffing-the-delimiter
| https://api.github.com/repos/pandas-dev/pandas/pulls/9588 | 2015-03-04T15:46:25Z | 2015-03-05T09:20:43Z | 2015-03-05T09:20:43Z | 2015-03-05T09:20:43Z |
Test added and patch to fix python-version-dependent issues when len ro... | diff --git a/pandas/sparse/scipy_sparse.py b/pandas/sparse/scipy_sparse.py
index 91ec26396b3ec..da079a97873b8 100644
--- a/pandas/sparse/scipy_sparse.py
+++ b/pandas/sparse/scipy_sparse.py
@@ -8,7 +8,7 @@
from pandas.core.series import Series
import itertools
import numpy as np
-from pandas.compat import OrderedDict... | ...w/col_levels is 1.
The docs for sparse to_coo methods failed to build. There was some case (row_levels len 1) that failed in python 2.7 only that I failed to test (and I have been building docs in python 3). Have added test and patched. Also needed to expand the interator (list(map(... ) in the "# squish" line as t... | https://api.github.com/repos/pandas-dev/pandas/pulls/9583 | 2015-03-03T23:44:05Z | 2015-03-05T23:21:12Z | 2015-03-05T23:21:12Z | 2015-03-07T12:43:55Z |
Deprecation for 0.16 (#6581) | diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt
index 1550527706a9e..7c9366947059b 100644
--- a/doc/source/whatsnew/v0.16.0.txt
+++ b/doc/source/whatsnew/v0.16.0.txt
@@ -217,6 +217,12 @@ Deprecations
.. _whatsnew_0160.deprecations:
+- ``DataFrame.pivot_table`` and ``crosstab``'s ``ro... | These are the deprecations that are to be removed in 0.16, per #6581, except for the deprecations around the boxplot function.
| https://api.github.com/repos/pandas-dev/pandas/pulls/9582 | 2015-03-03T23:34:30Z | 2015-03-04T20:50:28Z | 2015-03-04T20:50:28Z | 2015-03-04T20:50:38Z |
DOC: Fixup image size | diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt
index e9f2dcf86e6a3..1550527706a9e 100644
--- a/doc/source/whatsnew/v0.16.0.txt
+++ b/doc/source/whatsnew/v0.16.0.txt
@@ -67,6 +67,7 @@ calculate the ratio, and plot
.plot(kind='scatter', x='SepalRatio', y='PetalRatio'))
.. image... | Should fix the image being too big: http://pandas-docs.github.io/pandas-docs-travis/whatsnew.html#new-features
| https://api.github.com/repos/pandas-dev/pandas/pulls/9575 | 2015-03-03T04:06:38Z | 2015-03-03T21:15:19Z | 2015-03-03T21:15:19Z | 2017-04-05T02:06:18Z |
fixing pandas.DataFrame.plot(): labels do not appear in legend and label kwd | diff --git a/doc/source/whatsnew/v0.16.1.txt b/doc/source/whatsnew/v0.16.1.txt
index 3c3742c968642..c874a9aaa5d93 100644
--- a/doc/source/whatsnew/v0.16.1.txt
+++ b/doc/source/whatsnew/v0.16.1.txt
@@ -50,6 +50,8 @@ Performance Improvements
Bug Fixes
~~~~~~~~~
+- Fixed bug (:issue:`9542`) where labels did not appear... | Closes https://github.com/pydata/pandas/issues/9542, #8905
The following behavior has been tested:
- `df.plot(y='sin(x)')` -> gives a legend with label 'None' -> this should give no legend instead (as it plots one series, and then we don't automatically add a legend, see behaviour of df['sin(x)'].plot())
- `df.plot(y... | https://api.github.com/repos/pandas-dev/pandas/pulls/9574 | 2015-03-03T03:39:15Z | 2015-03-31T01:29:08Z | 2015-03-31T01:29:08Z | 2015-05-01T16:06:11Z |
API: consistency with .ix and .loc for getitem operations (GH8613) | diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst
index 5ab72f633f49b..5079b4fa8ad6f 100644
--- a/doc/source/indexing.rst
+++ b/doc/source/indexing.rst
@@ -85,7 +85,7 @@ of multi-axis indexing.
- ``.iloc`` is primarily integer position based (from ``0`` to
``length-1`` of the axis), but may also be u... | closes #8613
```
In [1]: df = DataFrame(np.random.randn(5,4), columns=list('ABCD'), index=date_range('20130101',periods=5))
In [2]: df
Out[2]:
A B C D
2013-01-01 -1.380065 1.221596 0.279703 -0.119258
2013-01-02 1.684202 -0.202251 -0.961145 -1.595015
2013-01-03... | https://api.github.com/repos/pandas-dev/pandas/pulls/9566 | 2015-02-28T21:01:15Z | 2015-03-04T20:46:25Z | 2015-03-04T20:46:25Z | 2015-03-13T17:47:35Z |
BUG: Fix read_csv on S3 files for python 3 | diff --git a/ci/requirements-2.7.txt b/ci/requirements-2.7.txt
index f3df26e7a0c24..0d515f300f5a7 100644
--- a/ci/requirements-2.7.txt
+++ b/ci/requirements-2.7.txt
@@ -13,7 +13,7 @@ lxml=3.2.1
scipy
xlsxwriter=0.4.6
statsmodels
-boto=2.26.1
+boto=2.36.0
bottleneck=0.8.0
psycopg2=2.5.2
patsy
diff --git a/doc/sour... | Closes https://github.com/pydata/pandas/issues/9452
Needed to pass along encoding parameter.
No tests... Kind of hard since it's only s3 only.
| https://api.github.com/repos/pandas-dev/pandas/pulls/9561 | 2015-02-27T02:29:26Z | 2015-03-06T03:20:52Z | 2015-03-06T03:20:52Z | 2017-04-05T02:06:14Z |
Moved caching in AbstractHolidayCalendar to the instance level | diff --git a/doc/source/whatsnew/v0.16.1.txt b/doc/source/whatsnew/v0.16.1.txt
index 352f079f38e96..2f18592f886e0 100644
--- a/doc/source/whatsnew/v0.16.1.txt
+++ b/doc/source/whatsnew/v0.16.1.txt
@@ -154,3 +154,4 @@ Bug Fixes
- Bug where dividing a dataframe containing values of type ``Decimal`` by another ``Decima... | Closes #9552
| https://api.github.com/repos/pandas-dev/pandas/pulls/9555 | 2015-02-26T09:11:20Z | 2015-04-14T16:40:34Z | 2015-04-14T16:40:34Z | 2015-04-14T17:19:27Z |
Squashed version of #9515. | diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt
index 0468c220bcb98..b0e2147c20674 100644
--- a/doc/source/whatsnew/v0.16.0.txt
+++ b/doc/source/whatsnew/v0.16.0.txt
@@ -293,7 +293,7 @@ Bug Fixes
- Bug in ``DataFrame.where`` and ``Series.where`` coerce numerics to string incorrectly (:is... | Fixes #9512
Closes #9515
| https://api.github.com/repos/pandas-dev/pandas/pulls/9525 | 2015-02-19T20:58:07Z | 2015-02-20T00:04:45Z | 2015-02-20T00:04:45Z | 2015-02-20T00:04:47Z |
BUG: Bug in .loc partial setting with a np.datetime64 (GH9516) | diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt
index 0468c220bcb98..52d1b7b537d5a 100644
--- a/doc/source/whatsnew/v0.16.0.txt
+++ b/doc/source/whatsnew/v0.16.0.txt
@@ -227,7 +227,7 @@ Bug Fixes
column with timezone info) to the according sqlalchemy type (:issue:`9085`).
- Fixed bug ... | closes #9516
| https://api.github.com/repos/pandas-dev/pandas/pulls/9522 | 2015-02-19T12:24:15Z | 2015-02-19T13:19:45Z | 2015-02-19T13:19:45Z | 2015-02-19T13:19:46Z |
BUG: multiple level unstack with nulls | diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt
index 0468c220bcb98..fc30e24588d15 100644
--- a/doc/source/whatsnew/v0.16.0.txt
+++ b/doc/source/whatsnew/v0.16.0.txt
@@ -235,7 +235,7 @@ Bug Fixes
- Fixed bug on bug endian platforms which produced incorrect results in ``StataReader`` (:is... | closes https://github.com/pydata/pandas/issues/9497
```
>>> mi
jim joe
1st 2nd 3rd
1 2014-02-01 -1 days 100 -20.87
2 NaT NaT 101 5.76
1 2014-02-03 1 days 102 -4.94
2 NaT 2 days 103 -0.79
1 2014-02-05 NaT 104 -12.51
2 2014-02-06 4 days 105... | https://api.github.com/repos/pandas-dev/pandas/pulls/9517 | 2015-02-19T02:50:53Z | 2015-03-05T23:25:34Z | 2015-03-05T23:25:33Z | 2015-03-06T02:52:19Z |
BUG: period_helper.c is not excluded from clean | diff --git a/setup.py b/setup.py
index 34bf4685d5dd5..4b2e8c6e01889 100755
--- a/setup.py
+++ b/setup.py
@@ -274,7 +274,7 @@ def initialize_options(self):
ujson_lib = pjoin(base,'ujson','lib')
self._clean_exclude = [pjoin(dt,'np_datetime.c'),
pjoin(dt,'np_datetime_strin... | I missed this when I was rebasing.
| https://api.github.com/repos/pandas-dev/pandas/pulls/9508 | 2015-02-17T20:47:51Z | 2015-02-17T21:29:04Z | 2015-02-17T21:29:04Z | 2015-02-17T23:26:53Z |
PERF: Cython optimizations for period module, round one | diff --git a/pandas/src/period.pyx b/pandas/src/period.pyx
index e57bdc3b33c5e..05e8ed22fc316 100644
--- a/pandas/src/period.pyx
+++ b/pandas/src/period.pyx
@@ -1,6 +1,11 @@
from datetime import datetime, date, timedelta
import operator
+from cpython cimport (
+ PyObject_RichCompareBool,
+ Py_EQ, Py_NE,
+)
+
... | Each commit passes `test_fast.sh`, so performance can be measured between commits.
I can break any of these commits into separate PRs if needed.
| https://api.github.com/repos/pandas-dev/pandas/pulls/9504 | 2015-02-17T16:38:03Z | 2015-03-01T21:18:33Z | 2015-03-01T21:18:33Z | 2015-03-01T21:18:33Z |
BUG: Incorrect dtypes inferred on datetimelike looking series & on xs slices (GH9477) | diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt
index 63119e90a1337..ead3c79430bf9 100644
--- a/doc/source/whatsnew/v0.16.0.txt
+++ b/doc/source/whatsnew/v0.16.0.txt
@@ -246,6 +246,7 @@ Bug Fixes
- Fixed bug in ``to_sql`` ``dtype`` argument not accepting an instantiated
SQLAlchemy typ... | closes #9477
| https://api.github.com/repos/pandas-dev/pandas/pulls/9501 | 2015-02-16T23:44:53Z | 2015-02-24T13:49:22Z | 2015-02-24T13:49:22Z | 2015-02-24T13:49:22Z |
BLD: revise setup.py to clean properly on windows platforms | diff --git a/setup.py b/setup.py
index c7edc2ebd66f8..42d666dcb8f5c 100755
--- a/setup.py
+++ b/setup.py
@@ -265,16 +265,23 @@ def initialize_options(self):
self.all = True
self._clean_me = []
self._clean_trees = []
- self._clean_exclude = ['pandas/src/datetime/np_datetime.c',
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/9500 | 2015-02-16T22:03:01Z | 2015-02-16T22:43:57Z | 2015-02-16T22:43:57Z | 2015-02-16T22:43:57Z | |
TST: fix read_pickle for win32 compat | diff --git a/pandas/io/tests/generate_legacy_pickles.py b/pandas/io/tests/generate_legacy_pickles.py
index 56ef1aa9b0f19..e1cf541fe6195 100644
--- a/pandas/io/tests/generate_legacy_pickles.py
+++ b/pandas/io/tests/generate_legacy_pickles.py
@@ -11,7 +11,6 @@ def _create_sp_series():
# nan-based
arr = np.ara... | https://api.github.com/repos/pandas-dev/pandas/pulls/9499 | 2015-02-16T14:55:58Z | 2015-02-16T15:37:45Z | 2015-02-16T15:37:45Z | 2015-02-16T15:37:45Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.