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 |
|---|---|---|---|---|---|---|---|
BUG: fix MultiIndex.remove_unused_levels() when index contains NaNs | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 4f403ff8053a7..df8d786cfe598 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -119,7 +119,7 @@ Indexing
- Bug in :func:`Series.truncate` which raises ``TypeError`` with a monotonic ``PeriodIndex`... | - [x] closes #18417
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18426 | 2017-11-22T12:21:11Z | 2017-11-22T22:50:42Z | 2017-11-22T22:50:41Z | 2017-11-22T22:54:27Z |
BUG: Fix IntervalIndex constructor inconsistencies | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 4a4d60b4dfbb2..5b07caf8cc902 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -74,6 +74,7 @@ Other API Changes
- `tseries.frequencies.get_freq_group()` and `tseries.frequencies.DAYS` are removed fr... | - [X] closes #18421
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Regarding item 3) in the issue, which deals with the dtype of `IntervalIndex([])`: I implemented this so that the default behavior is to have `object` dtype. However, if the e... | https://api.github.com/repos/pandas-dev/pandas/pulls/18424 | 2017-11-22T09:12:20Z | 2017-11-24T16:55:14Z | 2017-11-24T16:55:14Z | 2017-11-24T18:58:06Z |
CLN: ASV Algorithms benchmark | diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py
index 40cfec1bcd4c7..7ffb180b49e09 100644
--- a/asv_bench/benchmarks/algorithms.py
+++ b/asv_bench/benchmarks/algorithms.py
@@ -1,7 +1,6 @@
from importlib import import_module
import numpy as np
-
import pandas as pd
from pandas.... | High Level changes:
- The `Algorithms` class benchmark was getting large so I broke it into several smaller classes, avoiding creating data structures in each `setup` call that would only be used for 1 benchmark.
- Added `np.random.seed(1234)` in `setup` classes where random data is created xref #8144
- Utiliz... | https://api.github.com/repos/pandas-dev/pandas/pulls/18423 | 2017-11-22T08:17:52Z | 2017-11-25T21:26:13Z | 2017-11-25T21:26:13Z | 2017-11-25T23:23:50Z |
simplify skiplist inclusion/cimport to be more cythonize-friendly | diff --git a/pandas/_libs/skiplist.pxd b/pandas/_libs/skiplist.pxd
new file mode 100644
index 0000000000000..82a0862112199
--- /dev/null
+++ b/pandas/_libs/skiplist.pxd
@@ -0,0 +1,48 @@
+# -*- coding: utf-8 -*-
+# cython: profile=False
+
+from cython cimport Py_ssize_t
+
+from numpy cimport double_t
+
+
+cdef extern fr... | Next up in the moving-towards-`cythonize` parade...
`_libs.window` has both `include "skiplist.pyx"` and `from skiplist cimport`. The cimport refers to `src/skiplist.pxd`, which is just passing through declarations from `src/skiplist.h`. This PR removes skiplist.pxd and moves its contents into src/skiplist.pyx.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/18420 | 2017-11-22T01:49:06Z | 2017-11-27T00:35:42Z | 2017-11-27T00:35:42Z | 2017-12-02T11:41:36Z |
STYLE: fix flake8=3.4.1 | diff --git a/ci/install_travis.sh b/ci/install_travis.sh
index 4d8a371ba2994..dac3625cba4ba 100755
--- a/ci/install_travis.sh
+++ b/ci/install_travis.sh
@@ -107,7 +107,7 @@ time conda install -n pandas pytest>=3.1.0
time pip install pytest-xdist moto
if [ "$LINT" ]; then
- conda install flake8
+ conda install f... | https://api.github.com/repos/pandas-dev/pandas/pulls/18418 | 2017-11-22T01:37:01Z | 2017-11-22T01:54:51Z | 2017-11-22T01:54:51Z | 2017-11-22T02:06:02Z | |
Fix: DataFrame created with tzinfo cannot use to_dict(orient="records) | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 7c5dc66ce4587..ef25393c41a9b 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -63,7 +63,7 @@ Conversion
- Bug in :class:`TimedeltaIndex` subtraction could incorrectly overflow when ``NaT`` is prese... |
Columns with datetimez are not returning arrays.
Closes #18372
- [X] closes #18372
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18416 | 2017-11-21T19:39:25Z | 2017-11-23T15:35:41Z | 2017-11-23T15:35:40Z | 2017-12-11T20:22:58Z |
DOC: escaping code examples properly in read_csv docstring | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index c15b878822522..558a1f6d76868 100755
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -246,8 +246,8 @@
of a line, the line will be ignored altogether. This parameter must be a
single character. Like empty lines (as long as ``skip_blank_line... | - [x] closes #18411
~~- [ ] tests added / passed~~
~~- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`~~
~~- [ ] whatsnew entry~~
| https://api.github.com/repos/pandas-dev/pandas/pulls/18412 | 2017-11-21T15:28:06Z | 2017-11-22T10:25:47Z | 2017-11-22T10:25:47Z | 2017-11-22T15:03:18Z |
DOC: clean up whatsnew 0.21.1 | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 0645cb265e5d9..7c5dc66ce4587 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -56,19 +56,13 @@ Documentation Changes
Bug Fixes
~~~~~~~~~
-- Bug in ``DataFrame.resample(...).apply(...)`` when the... | https://api.github.com/repos/pandas-dev/pandas/pulls/18408 | 2017-11-21T13:18:13Z | 2017-11-21T13:18:19Z | 2017-11-21T13:18:19Z | 2017-12-11T20:23:27Z | |
BUG: Fix Index.putmask makes stack overflow with an invalid mask | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 637ccf0603e0f..51fd3b1076ade 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -73,7 +73,7 @@ Indexing
- Bug in a boolean comparison of a ``datetime.datetime`` and a ``datetime64[ns]`` dtype Series ... | - [x] closes #18368
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18407 | 2017-11-21T12:32:59Z | 2017-11-25T21:01:22Z | 2017-11-25T21:01:22Z | 2017-12-11T20:22:49Z |
CLN: replace %s syntax with .format in tslibs/timedeltas | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index 3a1e9de2a6cf6..6ea30642625fe 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -150,7 +150,7 @@ cpdef convert_to_timedelta64(object ts, object unit):
ts = np.timedelta64(delta_to... | - [X] Progress towards #16130
- [X] tests passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` | https://api.github.com/repos/pandas-dev/pandas/pulls/18405 | 2017-11-21T11:08:18Z | 2017-11-22T00:19:20Z | 2017-11-22T00:19:20Z | 2017-11-22T00:28:31Z |
Read csv category fix | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 86dcc9dcefa09..558dd14f24b4f 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -82,6 +82,7 @@ I/O
- Bug in class:`~pandas.io.stata.StataReader` not converting date/time columns with display formatti... | - [x] closes #18186
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whats new entry
Summary:
- Fix the bug as suggested by @TomAugspurger in issue #18186
- Added a unit test which ensures fix is working.
| https://api.github.com/repos/pandas-dev/pandas/pulls/18402 | 2017-11-21T03:15:53Z | 2017-11-22T11:28:42Z | 2017-11-22T11:28:41Z | 2017-12-11T20:23:18Z |
Change UInt64Index._na_value from 0 to np.nan | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 90032a692fd15..ff710cc899ac7 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -52,6 +52,7 @@ Backwards incompatible API changes
- :func:`Series.fillna` now raises a ``TypeError`` instead of a ``V... | Prerequisite for #18300
- [X] closes #18398
- [X] closes #18400
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Summary:
- Changed `UInt64Index._na_value` from 0 to `np.nan`
- Added a `dtype` parameter to `_try_convert_to_int_index` to s... | https://api.github.com/repos/pandas-dev/pandas/pulls/18401 | 2017-11-21T01:14:40Z | 2017-11-24T20:18:04Z | 2017-11-24T20:18:04Z | 2017-12-04T20:43:19Z |
Pin correct names to wrapped Index comparison methods | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 1359a938e652d..944a2aadfeb3b 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -9,7 +9,7 @@
from pandas._libs.lib import is_datetime_array
from pandas._libs.tslibs import parsing
-from pandas.compat import range... | Currently:
```
>>> pd.Index.__eq__.__name__
'_evaluate_compare'
```
PR:
```
>>> pd.Index.__eq__.__name__
'__eq__'
```
Same for subclasses and other comparison methods.
On the side: use property decorator for `DatetimeIndex.freq` to avoid leaving `_get_freq` and `_set_freq` in the namespace.
- [ ] cl... | https://api.github.com/repos/pandas-dev/pandas/pulls/18397 | 2017-11-20T23:39:04Z | 2017-11-22T02:22:11Z | 2017-11-22T02:22:11Z | 2017-11-22T05:57:01Z |
Numpy bool msgpack bugfix | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 5829481cdb731..ab7ffecaebc4f 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -87,6 +87,7 @@ I/O
- :func:`read_parquet` now allows to specify the columns to read from a parquet file (:issue:`18154`... | This fixes issue #18390.
It allows for running DataFrame.to_msgpack() with dataframes containing fields of the numpy.bool_ datatype.
- [x] closes #18390
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/18395 | 2017-11-20T22:23:54Z | 2017-11-23T15:29:02Z | 2017-11-23T15:29:02Z | 2017-12-11T20:11:37Z |
Inclusion of new NAMED_COLORS for MS Excel | diff --git a/pandas/io/formats/excel.py b/pandas/io/formats/excel.py
index 2fc648d2952c4..81e8881f3f06b 100644
--- a/pandas/io/formats/excel.py
+++ b/pandas/io/formats/excel.py
@@ -277,7 +277,9 @@ def build_font(self, props):
NAMED_COLORS = {
'maroon': '800000',
+ 'brown': 'A52A2A',
'red... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18392 | 2017-11-20T19:46:40Z | 2018-01-24T01:35:20Z | 2018-01-24T01:35:20Z | 2018-01-24T01:35:22Z |
CLN/PERF: simplify tslib.get_time_micros | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index ea4f4728a0741..2c43bed4ad053 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -730,29 +730,6 @@ cpdef array_to_datetime(ndarray[object] values, errors='raise',
return oresult
-# -------------------------------------------... | `tslib.get_time_micros` implementation is way more complicated than it needs to be. Instead of calling `dt64_to_dtstruct` in a loop, this changes the function to one call to `np.mod`.
AFAIK the `np.mod` call is to the python function, not sure if numpy exposes a cython version of mod. Then again, the function is ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18389 | 2017-11-20T16:28:16Z | 2017-11-24T16:59:13Z | 2017-11-24T16:59:13Z | 2017-11-24T19:06:13Z |
CLN: Add teardowns for some benchmarks (#17616) | diff --git a/asv_bench/benchmarks/hdfstore_bench.py b/asv_bench/benchmarks/hdfstore_bench.py
index 7d490180e8af6..5aa8f76917797 100644
--- a/asv_bench/benchmarks/hdfstore_bench.py
+++ b/asv_bench/benchmarks/hdfstore_bench.py
@@ -40,10 +40,11 @@ def setup(self):
def teardown(self):
self.store.close()
+ ... | Added teardown functions for hdfstore, io and packers asv benchmarks.
- [x] closes #17616
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/18388 | 2017-11-20T15:29:21Z | 2017-11-23T19:41:04Z | 2017-11-23T19:41:04Z | 2017-11-23T19:43:02Z |
CLN: Remove unused cimports of float16 | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index e9ef9c4ffe24b..bb7f69f04b32d 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -20,7 +20,7 @@ from numpy cimport (ndarray,
NPY_FLOAT32, NPY_FLOAT64,
NPY_OBJECT,
int8_t, int... | Part of the "move towards cythonize" sequence.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18387 | 2017-11-20T15:06:11Z | 2017-11-22T02:05:09Z | 2017-11-22T02:05:09Z | 2017-12-08T19:40:10Z |
API: change datetimelike Index to raise IndexError instead ValueError | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 4a27bf54de695..d43d5bec7175f 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -150,6 +150,8 @@ Indexing
- Bug in :class:`Index`` construction from list of mixed type tuples (:issue:`18505`)
- Bug ... | I noticed this in the plotting PR that DatetimeIndex et al behave a bit strange on an invalid index:
```
In [41]: pd.Index([1, 2, 3])['no_int']
...
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
In [42]: pd.DatetimeIndex([1, 2, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18386 | 2017-11-20T14:53:11Z | 2017-12-01T01:06:59Z | 2017-12-01T01:06:59Z | 2017-12-01T01:07:03Z |
BUG: fillna maximum recursion depth exceeded in cmp (GH18159). | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index a9608594be547..73962efad61e7 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -56,6 +56,8 @@ Documentation Changes
Bug Fixes
~~~~~~~~~
+-
+
Conversion
^^^^^^^^^^
@@ -65,6 +67,7 @@ Conversion... | - [x] closes #18159
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18385 | 2017-11-20T13:08:57Z | 2017-12-09T00:27:05Z | 2017-12-09T00:27:05Z | 2017-12-12T02:38:30Z |
doc: fix typo in doc | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index 38d9baee834b3..c15b878822522 100755
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -63,7 +63,7 @@
object with a read() method (such as a file handle or StringIO)
The string could be a URL. Valid URL schemes include http, ftp, s3, and
fi... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18384 | 2017-11-20T09:56:32Z | 2017-11-20T11:09:02Z | 2017-11-20T11:09:02Z | 2017-11-20T11:09:08Z |
CLN: Replace comprehensions list/set/dict functions with corresponding symbols | diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py
index 7f95e8d06eb72..2ee5f5da7a84a 100644
--- a/asv_bench/benchmarks/frame_ctor.py
+++ b/asv_bench/benchmarks/frame_ctor.py
@@ -23,9 +23,9 @@ def setup(self):
self.some_dict = list(self.data.values())[0]
self.dict_lis... | - [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
xref @jreback's [comment](https://github.com/pandas-dev/pandas/pull/18335#discussion_r151851542) and @maxim-lian [comment](https://github.com/pandas-dev/pandas/pull/18335#discussion_r151843012), replace the following where appro... | https://api.github.com/repos/pandas-dev/pandas/pulls/18383 | 2017-11-20T08:18:28Z | 2017-11-24T19:27:14Z | 2017-11-24T19:27:14Z | 2017-11-25T00:15:56Z |
14350 | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 6dc730cae37f7..73ec9e0d5391a 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -26,6 +26,7 @@ Other Enhancements
- :func:`pandas.tseries.frequencies.to_offset` now accepts leading '+' signs e.g. '+1... | - [x] closes #14350
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18380 | 2017-11-20T04:00:49Z | 2017-11-20T11:10:06Z | 2017-11-20T11:10:06Z | 2017-11-20T11:42:59Z |
move a small set of non-scalar tests out of scalar.test_timestamp | diff --git a/pandas/tests/frame/test_indexing.py b/pandas/tests/frame/test_indexing.py
index d35b67b52d16a..33a3495dcd71e 100644
--- a/pandas/tests/frame/test_indexing.py
+++ b/pandas/tests/frame/test_indexing.py
@@ -594,6 +594,16 @@ def test_setitem_boolean_column(self):
assert_frame_equal(self.frame, expec... | Taking over from #18142 where scope got out of hand.
This PR is part of a series intended to separate non-scalar tests out of `tests.scalars`. | https://api.github.com/repos/pandas-dev/pandas/pulls/18377 | 2017-11-20T00:42:42Z | 2017-11-22T01:59:45Z | 2017-11-22T01:59:45Z | 2017-12-08T19:40:07Z |
implement assert_tzawareness_compat for DatetimeIndex | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 77de1851490b2..ea083cfb1cb15 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -342,6 +342,7 @@ Conversion
- Bug in :class:`Series`` with ``dtype='timedelta64[ns]`` where addition or subtraction of ... | closes #18162
ATM comparing tzaware `DatetimeIndex` with tznaive DTI fails to raise. This PR implements `_assert_tzawareness_compa`t (which currently exists in `_Timestamp`) in `DatetimeIndex` to fix that.
That in turn causes breakage in `Series.replace`. There's a small edit in `core.internals` to fix that, b... | https://api.github.com/repos/pandas-dev/pandas/pulls/18376 | 2017-11-20T00:21:05Z | 2018-01-06T17:12:40Z | 2018-01-06T17:12:40Z | 2018-02-11T21:59:20Z |
move shift_months to liboffsets, unify implementations of Q/M/Y offsets, | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index e4c065202a6ef..cabd792d69477 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -1761,10 +1761,6 @@ def monthrange(int64_t year, int64_t month):
return (dayofweek(year, month, 1), days)
-cdef inline int days_in_month(pandas_dat... | This moves `tslib.shift_months` to liboffsets.
After several algebra-simplifing PRs, here's the payoff. Nearly all of the logic in M/Q/Y offset subclasses is now identical, so can be moved into the parent classes.
`BusinessMonthEnd` gains an `onOffset` method (instead of inheriting from `DateOffset`)
The Year... | https://api.github.com/repos/pandas-dev/pandas/pulls/18375 | 2017-11-19T22:07:33Z | 2017-11-20T11:20:57Z | 2017-11-20T11:20:57Z | 2017-12-08T19:40:14Z |
CLN: Removed overridden Timedelta properties (#18242) | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 6dc730cae37f7..171db4a5a6bc4 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -77,7 +77,7 @@ Performance Improvements
- Added a keyword argument, ``cache``, to :func:`to_datetime` that improved the... | - [X] closes #18242
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18374 | 2017-11-19T21:09:57Z | 2017-11-20T11:12:35Z | 2017-11-20T11:12:35Z | 2017-11-20T13:07:22Z |
PERF: improve plotting performance by not stringifying all x data | diff --git a/asv_bench/benchmarks/plotting.py b/asv_bench/benchmarks/plotting.py
index dda684b35e301..16889b2f19e89 100644
--- a/asv_bench/benchmarks/plotting.py
+++ b/asv_bench/benchmarks/plotting.py
@@ -10,15 +10,37 @@ def date_range(start=None, end=None, periods=None, freq=None):
from pandas.tools.plotting impo... | Closes #18236
Currently when plotting all x / index data are converted to strings, while you typically only need a few tick labels. So when you have a lot of data, this cause the pandas plotter to be hugely slower than needed (and than a pure matplotlib one)
On master:
```
[ 33.33%] ··· Running plotting.Plott... | https://api.github.com/repos/pandas-dev/pandas/pulls/18373 | 2017-11-19T20:52:05Z | 2017-11-20T18:21:04Z | 2017-11-20T18:21:04Z | 2017-11-20T18:21:07Z |
remove get_value_box since it is redundant with libindex.get_value_at | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index d74673b17c8d9..f20a665578e00 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -47,6 +47,31 @@ def get_value_at(ndarray arr, object loc):
return util.get_value_at(arr, loc)
+cpdef object get_value_box(ndarray arr, object loc):... | `tslib.get_value_box` is effectively identical to `index.get_value_at` (figuring this out requires looking at `util.get_value_at`). Since the only use of `get_value_box` is in `core.index.base`, just get rid of it and use `libindex.get_value_at` there instead.
Fixup type declarations in `util.get_value_at`.
- [x... | https://api.github.com/repos/pandas-dev/pandas/pulls/18371 | 2017-11-19T18:37:02Z | 2017-11-20T11:15:27Z | 2017-11-20T11:15:27Z | 2017-12-08T19:40:14Z |
CLN: remove tseries.util.pivot_annual/isleapyear | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 6dc730cae37f7..419ce108e110d 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -66,7 +66,8 @@ Removal of prior version deprecations/changes
- Warnings against the obsolete usage ``Categorical(code... | ``pivot_annual`` and ``isleapyear`` in ``tseries.util`` were deprecated in v0.19.
This PR removes them from the code base. | https://api.github.com/repos/pandas-dev/pandas/pulls/18370 | 2017-11-19T18:13:49Z | 2017-11-22T00:07:06Z | 2017-11-22T00:07:05Z | 2017-11-27T23:59:13Z |
cut/paste _Timestamp+Timestamp to tslibs.timestamps | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 705336dfadf90..5e3eb1f00b18c 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -5,32 +5,23 @@
# distutils: define_macros=CYTHON_TRACE_NOGIL=0
cimport numpy as np
-from numpy cimport (int32_t, int64_t, import_array, ndarray,
- ... | Then remove unused imports in tslibs.
If/when this is merged, it'll be official: we've taken tslib from a 5500 line beast down to ~1k. | https://api.github.com/repos/pandas-dev/pandas/pulls/18369 | 2017-11-19T17:16:35Z | 2017-11-22T01:56:18Z | 2017-11-22T01:56:18Z | 2017-12-08T19:40:11Z |
Revert "explicitly set 'include' to numpy_incls (#18112)" | diff --git a/pandas/_libs/reshape.pyx b/pandas/_libs/reshape.pyx
index c4104b66e009f..db2e8b43d1ead 100644
--- a/pandas/_libs/reshape.pyx
+++ b/pandas/_libs/reshape.pyx
@@ -10,7 +10,7 @@ np.import_array()
from numpy cimport (ndarray,
int8_t, int16_t, int32_t, int64_t, uint8_t, uint16_t,
- ... | This reverts commit 54f2a5e91e90e35f7cbd15214297169831d6a6a6.
xref #18112
our 2.7 wheels started breaking with this: https://travis-ci.org/MacPython/pandas-wheels/builds/302788535
| https://api.github.com/repos/pandas-dev/pandas/pulls/18365 | 2017-11-19T01:55:41Z | 2017-11-19T14:57:20Z | 2017-11-19T14:57:20Z | 2017-11-19T14:58:18Z |
BUG: do not fail when stack()ing unsortable level | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 2c0ccd377492a..d641050adfda4 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -142,7 +142,8 @@ Sparse
Reshaping
^^^^^^^^^
--
+- Bug in :func:`DataFrame.stack` which fails trying to sort mixed ty... | - [x] closes #18310
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18363 | 2017-11-19T00:51:46Z | 2017-12-01T18:59:02Z | 2017-12-01T18:59:02Z | 2017-12-01T19:10:26Z |
TST: don't skip statsmodels tests on network builds | diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py
index 56bc29a7bca1e..0f0abd8cd3400 100644
--- a/pandas/tests/test_downstream.py
+++ b/pandas/tests/test_downstream.py
@@ -53,7 +53,6 @@ def test_xarray(df):
assert df.to_xarray() is not None
-@tm.network
def test_statsmodels():
... | https://api.github.com/repos/pandas-dev/pandas/pulls/18362 | 2017-11-19T00:43:29Z | 2017-11-19T01:26:30Z | 2017-11-19T01:26:30Z | 2017-11-19T01:26:30Z | |
BUG: prevent coercion to datetime64[ns] when a Series is initialized with both tz-naive and tz-aware | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 4a4d60b4dfbb2..245798d63386f 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -195,5 +195,5 @@ Other
^^^^^
- Improved error message when attempting to use a Python keyword as an identifier in a ... |
- [x] closes #16406
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18361 | 2017-11-18T23:06:07Z | 2017-11-23T16:05:16Z | 2017-11-23T16:05:16Z | 2017-11-24T00:46:48Z |
Move remaining conversion functions to tslibs.conversion | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index d74673b17c8d9..e4c188b28bb6e 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -13,7 +13,7 @@ cimport util
import numpy as np
-from tslib cimport _to_i8
+from tslibs.conversion cimport maybe_datetimelike_to_i8
from hashtable ci... | Slightly more efficient implementation of `_to_i8`.
Importantly (or at least satisfyingly) gets `pandas_datetime_to_datetimestruct` usage centralized in conversion. | https://api.github.com/repos/pandas-dev/pandas/pulls/18358 | 2017-11-18T16:46:15Z | 2017-11-19T20:20:51Z | 2017-11-19T20:20:51Z | 2017-12-08T19:40:16Z |
implement libmissing; untangles _libs dependencies | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index bb7f69f04b32d..a5aae6d6af656 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -32,8 +32,7 @@ from libc.math cimport sqrt, fabs
# this is our util.pxd
from util cimport numeric, get_nat
-cimport lib
-from pandas._libs import lib
+i... | In the status quo, `algos`, `hashtable`, `parsers`, and `period` depend on `lib`. On top of that `groupby`, `join`, and `index` depend on `algos` and `intervaltree` depends on `hashtable`. (In fairness, some of these dependency relationships are python imports, not cimports.)
`lib` depends on `tslib` which depends... | https://api.github.com/repos/pandas-dev/pandas/pulls/18357 | 2017-11-18T16:36:34Z | 2017-11-22T22:52:29Z | 2017-11-22T22:52:29Z | 2017-11-23T01:15:12Z |
BUG fixes tuple agg issue 18079 | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 78b8ca8d5a480..bd3fe7750a0a1 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -169,7 +169,7 @@ Plotting
Groupby/Resample/Rolling
^^^^^^^^^^^^^^^^^^^^^^^^
--
+- Bug when grouping by a single colu... | - [x] closes #18079
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18354 | 2017-11-18T04:21:32Z | 2017-11-26T23:42:49Z | 2017-11-26T23:42:49Z | 2017-11-27T00:16:06Z |
BUG: Keep float dtype in merge on int and float column | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 4a4d60b4dfbb2..1a6327554f61a 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -51,7 +51,7 @@ Backwards incompatible API changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- :func:`Series.fillna` now rai... | - [ ] closes #16572
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18352 | 2017-11-18T00:47:22Z | 2017-11-23T15:56:05Z | 2017-11-23T15:56:05Z | 2017-11-27T14:50:50Z |
CLN: replace %s syntax with .format in tests.io.formats/json/sas | diff --git a/pandas/tests/io/formats/test_css.py b/pandas/tests/io/formats/test_css.py
index c07856dc63602..e7adfe4883d98 100644
--- a/pandas/tests/io/formats/test_css.py
+++ b/pandas/tests/io/formats/test_css.py
@@ -69,25 +69,25 @@ def test_css_parse_invalid(invalid_css, remainder):
def test_css_side_shorthands(short... | - [x] Progress towards #16130
- [x] tests passed
- [x] passes git diff upstream/master -u -- "*.py" | flake8 --diff | https://api.github.com/repos/pandas-dev/pandas/pulls/18351 | 2017-11-18T00:46:52Z | 2017-11-19T00:30:46Z | 2017-11-19T00:30:46Z | 2017-11-19T22:28:52Z |
algebra cleanup in FY5253 and Easter offsets | diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py
index 615d703f66932..9c8727327d185 100644
--- a/pandas/tseries/offsets.py
+++ b/pandas/tseries/offsets.py
@@ -9,7 +9,6 @@
from pandas.core.common import AbstractMethodError
# import after tools, dateutil check
-from dateutil.relativedelta import rel... | Same types of cleanups you've gotten used to seeing elsewhere, now applied to FY5253 and Easter. This should be orthogonal to others.
| https://api.github.com/repos/pandas-dev/pandas/pulls/18350 | 2017-11-17T21:18:22Z | 2017-11-22T21:01:42Z | 2017-11-22T21:01:42Z | 2017-12-08T19:38:33Z |
parametrize more tests, move to test_liboffstes | diff --git a/pandas/tests/tseries/offsets/test_liboffsets.py b/pandas/tests/tseries/offsets/test_liboffsets.py
index e3ec6fdf2fbcc..321104222936b 100644
--- a/pandas/tests/tseries/offsets/test_liboffsets.py
+++ b/pandas/tests/tseries/offsets/test_liboffsets.py
@@ -6,12 +6,51 @@
import pytest
-import pandas as pd
+... | Some tests currently in test_offsets belong in test_liboffsets, this moves them.
There is a test_shift_month in test_offsets and another in test_liboffsets. This combines them.
Continuing the process of making the big lists of tests in test_offsets use pytest.mark.parametrize. Is there any downside to doing thi... | https://api.github.com/repos/pandas-dev/pandas/pulls/18346 | 2017-11-17T15:23:15Z | 2017-11-19T00:48:51Z | 2017-11-19T00:48:51Z | 2017-12-08T19:38:36Z |
CI: remove pandas-gbq | diff --git a/ci/requirements-3.6.sh b/ci/requirements-3.6.sh
index dfc123c88f24b..f5c3dbf59a29d 100644
--- a/ci/requirements-3.6.sh
+++ b/ci/requirements-3.6.sh
@@ -4,4 +4,4 @@ source activate pandas
echo "[install 3.6 downstream deps]"
-conda install -n pandas -c conda-forge pandas-gbq pandas-datareader xarray ge... | https://api.github.com/repos/pandas-dev/pandas/pulls/18343 | 2017-11-17T12:10:54Z | 2017-11-17T12:33:55Z | 2017-11-17T12:33:55Z | 2017-12-08T18:51:39Z | |
Revert "Revert "MAINT: Remove Long and WidePanel (#15748)" (#15802)" | diff --git a/asv_bench/benchmarks/pandas_vb_common.py b/asv_bench/benchmarks/pandas_vb_common.py
index c0d24afae4219..e255cd94f265b 100644
--- a/asv_bench/benchmarks/pandas_vb_common.py
+++ b/asv_bench/benchmarks/pandas_vb_common.py
@@ -2,10 +2,7 @@
from importlib import import_module
import numpy as np
-try:
- ... | With https://github.com/statsmodels/statsmodels/issues/3580 now resolved, we can safely revert #15802 | https://api.github.com/repos/pandas-dev/pandas/pulls/18341 | 2017-11-17T09:12:22Z | 2018-05-16T13:32:20Z | 2018-05-16T13:32:20Z | 2018-05-19T23:25:15Z |
BUG: Fix IntervalIndex constructor and copy with non-default closed | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 0ab536f2898c7..83aa2d96f565c 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -62,6 +62,8 @@ Bug Fixes
- Bug in ``pd.Series.rolling.skew()`` and ``rolling.kurt()`` with all equal values has floatin... | - [X] closes #18334
- [X] closes #18339
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Lumped the two issues together since they're dealing with the same thing, and the fixes are identical/small. Rewrote relevant tests to be parametrized ov... | https://api.github.com/repos/pandas-dev/pandas/pulls/18340 | 2017-11-17T07:50:41Z | 2017-11-20T00:25:29Z | 2017-11-20T00:25:29Z | 2017-12-04T20:43:26Z |
!I fix for BUG: resample with tz-aware: Values falls after last bin #15549 | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 83aa2d96f565c..f7b54d10508f9 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -62,6 +62,7 @@ Bug Fixes
- Bug in ``pd.Series.rolling.skew()`` and ``rolling.kurt()`` with all equal values has floatin... | - [ ] closes #15549
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18337 | 2017-11-17T03:21:38Z | 2017-11-21T13:14:14Z | 2017-11-21T13:14:14Z | 2017-11-21T13:14:17Z |
CLN: Lint for lists instead of generators in built-in Python functions | diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py
index dec4fcba0eb5e..7f95e8d06eb72 100644
--- a/asv_bench/benchmarks/frame_ctor.py
+++ b/asv_bench/benchmarks/frame_ctor.py
@@ -132,7 +132,7 @@ def setup(self, offset, n_steps):
offset = getattr(offsets, offset)
self.... | - [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Continuation of #18276 plus a lint check for list comprehension in built-in Python functions. The grep will only catch list comprehensions on single lines though. I'm all ears for greps that can catch multi-line list comprehensi... | https://api.github.com/repos/pandas-dev/pandas/pulls/18335 | 2017-11-17T02:20:45Z | 2017-11-19T15:05:35Z | 2017-11-19T15:05:35Z | 2017-11-22T19:21:38Z |
TST: add downstream deps in 3.6 build | diff --git a/ci/requirements-3.6.sh b/ci/requirements-3.6.sh
new file mode 100644
index 0000000000000..dfc123c88f24b
--- /dev/null
+++ b/ci/requirements-3.6.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+source activate pandas
+
+echo "[install 3.6 downstream deps]"
+
+conda install -n pandas -c conda-forge pandas-gbq pandas-datar... | https://api.github.com/repos/pandas-dev/pandas/pulls/18333 | 2017-11-17T00:52:21Z | 2017-11-17T11:28:38Z | 2017-11-17T11:28:38Z | 2017-12-11T20:24:09Z | |
CLN: replace %s syntax with .format in core.indexing and core.internals | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index e242e928687ff..ae799afdb4135 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1842,8 +1842,8 @@ def _convert_to_indexer(self, obj, axis=None, is_setter=False):
elif self._has_valid_type(obj, axis):
return ob... | - [x] Progress towards #16130
- [x] tests added / passed
- [x] passes git diff upstream/master -u -- "*.py" | flake8 --diff | https://api.github.com/repos/pandas-dev/pandas/pulls/18331 | 2017-11-16T23:53:41Z | 2017-11-19T00:34:04Z | 2017-11-19T00:34:04Z | 2017-11-19T22:28:45Z |
ENH: allow get_dummies to accept dtype argument | diff --git a/doc/source/reshaping.rst b/doc/source/reshaping.rst
index 1209c4a8d6be8..1b81d83bb76c7 100644
--- a/doc/source/reshaping.rst
+++ b/doc/source/reshaping.rst
@@ -240,7 +240,7 @@ values will be set to ``NaN``.
df3
df3.unstack()
-.. versionadded: 0.18.0
+.. versionadded:: 0.18.0
Alternatively, uns... | - [x] closes #18330 (there's no issue for this one)
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Update in version 0.19.0 made `get_dummies` return uint8 values instead of floats (#8725). While I agree with the argument that `get_dummies` sho... | https://api.github.com/repos/pandas-dev/pandas/pulls/18330 | 2017-11-16T21:29:01Z | 2017-11-22T23:03:17Z | 2017-11-22T23:03:16Z | 2017-11-22T23:03:29Z |
Follow-Up: Unify apply and onOffset implementations | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 2b896bcc930a7..f38aca21a0438 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -357,6 +357,7 @@ class _BaseOffset(object):
_typ = "dateoffset"
_normalize_cache = True
_cacheable = Fals... | This follows up on #18280, #18278, and #18263.
`get_day_of_month` is extended to handle `business_start` and `business_end` in addition to `start` and `end`.
`_day_opt` attributes are added to YearFoo, QuarterFoo, and MonthFoo offsets. After some more algebraic simplification (done in a separate PR), their apply... | https://api.github.com/repos/pandas-dev/pandas/pulls/18329 | 2017-11-16T18:47:45Z | 2017-11-19T18:50:16Z | 2017-11-19T18:50:16Z | 2017-12-08T19:38:34Z |
modernize syntax in Timestamp | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index a32f04fe7b156..5edfb0ea58e30 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -981,11 +981,10 @@ cdef class _Timestamp(datetime):
pass
tz = ", tz='{0}'".format(zone) if zone is not None else ""
- freq = ... | Small cleanups to `Timestamp`+`_Timestamp`, use `@property` instead of older syntax.
The only substantive change is in `__add__`, where `result = Timestamp(normalize_date(result))` is changed to `result = result.normalize()`. The latter has the benefits
1) is robust for tzaware timestamps,
2) does not require `... | https://api.github.com/repos/pandas-dev/pandas/pulls/18327 | 2017-11-16T17:48:23Z | 2017-11-19T15:08:18Z | 2017-11-19T15:08:18Z | 2017-11-19T16:23:13Z |
CI: revert back to dateutil released as many changes | diff --git a/ci/requirements-3.6_NUMPY_DEV.build.sh b/ci/requirements-3.6_NUMPY_DEV.build.sh
index fd79142c5cebb..9145bf1d3481c 100644
--- a/ci/requirements-3.6_NUMPY_DEV.build.sh
+++ b/ci/requirements-3.6_NUMPY_DEV.build.sh
@@ -12,7 +12,8 @@ PRE_WHEELS="https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl... | xref #18141 | https://api.github.com/repos/pandas-dev/pandas/pulls/18325 | 2017-11-16T13:13:03Z | 2017-11-16T17:28:06Z | 2017-11-16T17:28:06Z | 2017-11-16T17:29:24Z |
Revert "DOC: Remove vendored IPython.sphinext (#18193)" | diff --git a/.gitignore b/.gitignore
index 0c2058ffcdd71..ff0a6aef47163 100644
--- a/.gitignore
+++ b/.gitignore
@@ -106,4 +106,3 @@ doc/build/html/index.html
doc/tmp.sv
doc/source/styled.xlsx
doc/source/templates/
-doc/source/savefig/
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 3ac41b0e7e0c9..c8189b8... | This reverts commit ca737aca8b73b10b617f7fcc7da35545f9ec0a89.
This reverts https://github.com/pandas-dev/pandas/pull/18193. The problem is there is something wrong with the upstream version such that errors in the code don't get reported. | https://api.github.com/repos/pandas-dev/pandas/pulls/18320 | 2017-11-16T08:39:46Z | 2017-11-17T09:02:26Z | 2017-11-17T09:02:26Z | 2018-02-12T12:39:47Z |
MAINT: Blacklist np.array_equal in tests | diff --git a/ci/lint.sh b/ci/lint.sh
index c26b5f00d5a48..71d8c5c7e1621 100755
--- a/ci/lint.sh
+++ b/ci/lint.sh
@@ -72,7 +72,13 @@ if [ "$LINT" ]; then
echo "Linting *.c and *.h DONE"
echo "Check for invalid testing"
- grep -r -E --include '*.py' --exclude testing.py '(numpy|np)\.testing' pandas
+
+ ... | Follow-up to #18087. | https://api.github.com/repos/pandas-dev/pandas/pulls/18318 | 2017-11-16T05:33:39Z | 2017-11-16T18:42:41Z | 2017-11-16T18:42:41Z | 2017-11-17T04:54:39Z |
DOC: ecosystem: dask-ml | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index ac8216d572ddd..f7d1edff15cfb 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -225,7 +225,13 @@ Out-of-core
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dask is a flexible parallel computing library for analytics. Da... | ### Dask-ml
> Dask-ML enables parallel and distributed machine learning using Dask alongside existing machine learning libraries like Scikit-Learn.
- Src: https://github.com/dask/dask-ml
- Docs: https://dask-ml.readthedocs.io/en/latest/
...
- XGBoost, TensorFlow, scikit-learn | https://api.github.com/repos/pandas-dev/pandas/pulls/18317 | 2017-11-16T02:44:37Z | 2017-11-16T11:15:41Z | 2017-11-16T11:15:41Z | 2017-12-11T20:23:34Z |
CLN: replace %s syntax with .format in core.panel | diff --git a/pandas/core/panel.py b/pandas/core/panel.py
index d2b513367fc78..327180b6a6e84 100644
--- a/pandas/core/panel.py
+++ b/pandas/core/panel.py
@@ -42,9 +42,9 @@
klass="Panel",
axes_single_arg="{0, 1, 2, 'items', 'major_axis', 'minor_axis'}",
optional_mapper='', optional_axis='', optional_labels... | - [x] Progress towards #16130
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Note, there's still a couple usages in this file in the `Appender` decorators, I'm planning on going through all `appender`/`shared_docs` usages in the near future to clean these up too. | https://api.github.com/repos/pandas-dev/pandas/pulls/18315 | 2017-11-16T00:13:44Z | 2017-11-16T11:34:28Z | 2017-11-16T11:34:28Z | 2017-11-16T11:36:09Z |
BUG: #12815 Always use np.nan for missing values of object dtypes | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 6dc730cae37f7..ed8d41738c62c 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -48,6 +48,7 @@ Other API Changes
- :class:`CacheableOffset` and :class:`WeekDay` are no longer available in the ``panda... | - [x] closes #12815
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Handles the issue of unstacked object columns filling missing values with `None` instead of `np.nan` by modifying `pd.core.dtypes.cast.maybe_promote()` to use a `fill_value` of ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18313 | 2017-11-15T20:19:51Z | 2017-11-21T00:41:13Z | 2017-11-21T00:41:12Z | 2017-11-21T03:10:26Z |
import from np_datetime instead of src/datetime | diff --git a/pandas/_libs/period.pyx b/pandas/_libs/period.pyx
index bd21fb97ede20..272e6f7d38d87 100644
--- a/pandas/_libs/period.pyx
+++ b/pandas/_libs/period.pyx
@@ -19,31 +19,29 @@ from pandas.compat import PY2
cimport cython
from tslibs.np_datetime cimport (pandas_datetimestruct,
- ... | There are a handful of things where there is an option to cimport from either tslibs.np_datetime or src/datetime.pxd. This PR updates imports use tslibs.np_datetime where possible.
Exposes NPY_NAT in nattype.pxd so other modules can cimport it from there instead of using util.get_nat(). Thematically `nattype` is t... | https://api.github.com/repos/pandas-dev/pandas/pulls/18312 | 2017-11-15T20:12:28Z | 2017-11-16T00:01:24Z | 2017-11-16T00:01:24Z | 2017-11-16T01:01:18Z |
BUG: cast to correct dtype in Index.drop() | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 24f3e4433411e..0fc862210fc6e 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -301,6 +301,7 @@ Indexing
- Bug in :func:`MultiIndex.remove_unused_levels` which would fill nan values (:issue:`18417`)... | - [x] closes #18304
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18309 | 2017-11-15T15:53:00Z | 2017-12-29T00:53:35Z | 2017-12-29T00:53:35Z | 2017-12-29T08:35:01Z |
API: Restore implicit converter registration | diff --git a/ci/check_imports.py b/ci/check_imports.py
index a83436e7d258c..d6f24ebcc4d3e 100644
--- a/ci/check_imports.py
+++ b/ci/check_imports.py
@@ -9,7 +9,6 @@
'ipython',
'jinja2'
'lxml',
- 'matplotlib',
'numexpr',
'openpyxl',
'py',
diff --git a/doc/source/api.rst b/doc/source/api.... | Closes #18301
TODO:
- [ ] find best home for the import
- [ ] update deprecation message | https://api.github.com/repos/pandas-dev/pandas/pulls/18307 | 2017-11-15T14:48:12Z | 2017-12-07T15:04:36Z | 2017-12-07T15:04:35Z | 2017-12-11T00:18:23Z |
BUG: Fix IntervalIndex.insert to allow inserting NaN | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 5549ba4e8f735..09c8367ff9747 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -77,6 +77,7 @@ Other API Changes
- :func:`Series.truncate` and :func:`DataFrame.truncate` will raise a ``ValueError`` i... | - [X] closes #18295
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18300 | 2017-11-15T07:12:41Z | 2017-11-25T14:45:34Z | 2017-11-25T14:45:34Z | 2017-11-25T19:14:49Z |
update imports; remove unused | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index f5d8a0da0112b..d74673b17c8d9 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -22,14 +22,11 @@ from pandas._libs.tslib import Timestamp, Timedelta
from datetime import datetime, timedelta, date
from cpython cimport PyTuple_Check, ... | General cleanup. flake8 doesn't catch unused cimports.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18298 | 2017-11-15T06:26:00Z | 2017-11-17T00:37:10Z | 2017-11-17T00:37:10Z | 2017-12-08T19:38:40Z |
BUG: Accept dict or Series in fillna for categorical Series | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index e868c73914b6e..d5a136c5ab0c7 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -28,13 +28,14 @@ Other Enhancements
- :class:`pandas.io.formats.style.Styler` now has method ``hide_index()`` to determ... | - [ ] closes #17033
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18293 | 2017-11-14T21:57:39Z | 2017-11-22T02:33:56Z | 2017-11-22T02:33:56Z | 2017-11-27T14:50:10Z |
#18285 parquet io docs | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 36f216601b491..c94d5bc75d4fc 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -4427,8 +4427,10 @@ Several caveats.
- This is a newer library, and the format, though stable, is not guaranteed to be backward compatible
to the earlier versions.
-- The... | - [x] closes #18285
- [x] tests ~added /~ passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] ~whatsnew entry~ (N/A)
| https://api.github.com/repos/pandas-dev/pandas/pulls/18292 | 2017-11-14T21:05:49Z | 2017-11-14T22:50:58Z | 2017-11-14T22:50:58Z | 2017-11-15T18:10:33Z |
simplify algebra in Year offset apply methods | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 2d8ce4c59fedc..54f3f16700b65 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -428,3 +428,105 @@ cpdef datetime shift_month(datetime stamp, int months, object day_opt=None):
else:
rais... | This PR is careful to only touch YearEnd and YearBegin classes, so should not overlap with #18263 or #18278. But like 18278, once the algebra is simplified, it looks an awful lot like 18263.
The bad news is that the process of simplifying the dynamically-defined `_increment, `_decrement, `_rollf` functions is no fu... | https://api.github.com/repos/pandas-dev/pandas/pulls/18280 | 2017-11-14T05:39:35Z | 2017-11-16T00:21:41Z | 2017-11-16T00:21:41Z | 2017-11-16T00:52:23Z |
Simplify algebra in Week and SemiMonth offsets | diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py
index 4dc26f4dd69e2..5f94c0cf5a638 100644
--- a/pandas/tseries/offsets.py
+++ b/pandas/tseries/offsets.py
@@ -1093,10 +1093,7 @@ def _apply(self, n, other):
n -= 1
elif other.day > self.day_of_month:
other = other.... | This PR is careful to only touch Week-base and SemiMonth-based offsets, i.e. has no overlap with #18263. It does, however, simplify the algebra such that the end result looks a lot like 18263.
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18278 | 2017-11-14T05:31:15Z | 2017-11-15T11:26:26Z | 2017-11-15T11:26:26Z | 2017-12-08T19:38:41Z |
CLN: Remove unnecessary uses of pd. in tests | diff --git a/pandas/tests/indexing/test_chaining_and_caching.py b/pandas/tests/indexing/test_chaining_and_caching.py
index 25e572ee09a6b..d76c53e7f36db 100644
--- a/pandas/tests/indexing/test_chaining_and_caching.py
+++ b/pandas/tests/indexing/test_chaining_and_caching.py
@@ -318,9 +318,9 @@ def random_text(nobs=100):
... | - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- Mostly edits along the lines of `pd.Series` -> `Series` for things that were already imported and had redundant uses of `pd`.
- I cleaned some of the `import` statements, but I didn't import anything new, though that could be done in the futur... | https://api.github.com/repos/pandas-dev/pandas/pulls/18277 | 2017-11-14T05:12:50Z | 2017-11-15T11:27:55Z | 2017-11-15T11:27:55Z | 2020-11-06T02:08:58Z |
CLN: Use generators instead of lists in built-in Python functions | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index c8c5f86820b76..6a92815ef84de 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -1484,7 +1484,7 @@ def get_blkno_indexers(int64_t[:] blknos, bint group=True):
if len(slices) == 1:
yield blkno, slice(slices[0][0], s... | - [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Pass generators in built-in Python functions instead of passing in a list, e.g `any([value for value in iterator])` --> `any(value for value in iterator)` | https://api.github.com/repos/pandas-dev/pandas/pulls/18276 | 2017-11-14T03:35:04Z | 2017-11-15T11:29:32Z | 2017-11-15T11:29:32Z | 2017-12-20T02:04:16Z |
ASV/CLN: cleanup period benchmarks | diff --git a/asv_bench/benchmarks/period.py b/asv_bench/benchmarks/period.py
index df3c2bf3e4b46..15d7655293ea3 100644
--- a/asv_bench/benchmarks/period.py
+++ b/asv_bench/benchmarks/period.py
@@ -3,141 +3,128 @@
class PeriodProperties(object):
- def setup(self):
- self.per = Period('2012-06-01', freq='M... | Fix one benchmark that wasnt getting run because of a name typo
Remove redundant Period benchmarks.
Cleanup a few benchmarks using `params`.
#noci
(is that how that works?) | https://api.github.com/repos/pandas-dev/pandas/pulls/18275 | 2017-11-14T02:27:33Z | 2017-11-23T08:43:10Z | 2017-11-23T08:43:10Z | 2017-12-08T19:40:05Z |
DOC: add docstring for fillna (#18018) | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 4cc59f5297058..a0f5472493344 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -809,9 +809,10 @@ def duplicated(self, keep='first'):
return duplicated_int64(ids, keep)
- @Appender(ibase._index_sh... | - [ ] closes #18018
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18269 | 2017-11-13T20:20:11Z | 2017-11-13T21:03:56Z | 2017-11-13T21:03:56Z | 2017-11-13T21:03:57Z |
DOC: update Series.combine/DataFrame.combine doc strings | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index f3137c1edf2af..a7f8049a53af8 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4029,6 +4029,8 @@ def combine(self, other, func, fill_value=None, overwrite=True):
----------
other : DataFrame
func : function
+ ... | This PR updates ``Series.combine``/``DataFrame.combine`` doc strings. In particular, it adds some short examples to the doc strings. | https://api.github.com/repos/pandas-dev/pandas/pulls/18268 | 2017-11-13T20:16:11Z | 2017-11-14T11:32:45Z | 2017-11-14T11:32:45Z | 2017-12-11T20:38:19Z |
DOC: updated .combine_first doc strings | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index f3137c1edf2af..b478b977a041b 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4125,16 +4125,24 @@ def combine_first(self, other):
----------
other : DataFrame
+ Returns
+ -------
+ combined : DataFram... | This PR updates ``Series.combine_first``/``DataFrame.combine_first`` doc strings. In Particular, it add some short examples to the doc strings. | https://api.github.com/repos/pandas-dev/pandas/pulls/18266 | 2017-11-13T18:46:20Z | 2017-11-14T09:43:09Z | 2017-11-14T09:43:09Z | 2017-12-11T08:09:19Z |
cleaned up imports | diff --git a/pandas/core/api.py b/pandas/core/api.py
index 1f46aaa40e9eb..8a624da362976 100644
--- a/pandas/core/api.py
+++ b/pandas/core/api.py
@@ -23,9 +23,9 @@
from pandas.core.frame import DataFrame
from pandas.core.panel import Panel, WidePanel
from pandas.core.panel4d import Panel4D
-from pandas.core.reshape.r... | This is a continuation of #18148 and does the following
- puts the `reshape` imports from `pandas.core.api` to `pandas.core.reshape.api`
- uses `pandas.core.dtypes.generic.ABCMultiIndex` inplace of `MultiIndex` in `melt.py`
- uses `from pandas import DataFrame` in `melt.py` inside functions
- imports directly fr... | https://api.github.com/repos/pandas-dev/pandas/pulls/18264 | 2017-11-13T17:47:04Z | 2017-11-23T15:50:38Z | 2017-11-23T15:50:38Z | 2017-11-23T16:19:37Z |
simplify+unify offset.apply logic | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 2d8ce4c59fedc..6071241f98b9b 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -139,12 +139,45 @@ def apply_index_wraps(func):
# ---------------------------------------------------------------------... | Implement _get_lastbday mirroring _get_firstbday.
Implement bstart and bend cases in shift month. Use these to simplify a bunch of the BusinessFoo offsets.
| https://api.github.com/repos/pandas-dev/pandas/pulls/18263 | 2017-11-13T15:29:02Z | 2017-11-16T11:13:56Z | 2017-11-16T11:13:56Z | 2017-12-08T19:38:39Z |
DEPR: deprecate (Sparse)Series.from_array | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 943b6bb84fb47..f06a507c6318c 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -51,7 +51,7 @@ Other API Changes
Deprecations
~~~~~~~~~~~~
--
+- ``Series.from_array`` and ``SparseSeries.from_array... | Closes #18213.
It's a bit annoying that I have to keep it as internal method. On the other hand this might signal that `from_array` actually has some use case .. | https://api.github.com/repos/pandas-dev/pandas/pulls/18258 | 2017-11-13T10:50:54Z | 2017-11-17T01:11:44Z | 2017-11-17T01:11:44Z | 2018-02-23T07:50:22Z |
CLN/DEPR: remove setter for MultiIndex levels/labels properties | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index ccaa408603333..8afdd1b2e22b3 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -62,7 +62,7 @@ Removal of prior version deprecations/changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Warning... | Noticed this in another PR, this doesn't seem to be listed in our deprecations master issue https://github.com/pandas-dev/pandas/issues/6581. But it is already deprecated since 0.13 (https://github.com/pandas-dev/pandas/pull/4039) | https://api.github.com/repos/pandas-dev/pandas/pulls/18256 | 2017-11-13T10:21:05Z | 2017-11-13T23:31:21Z | 2017-11-13T23:31:21Z | 2017-11-13T23:31:21Z |
TST: conform tests for datetutil > 2.6.1 | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 90e5ac864e96f..b9d0087b50306 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1,8 +1,10 @@
import pytest
+from distutils.version import LooseVersion
import numpy
import pandas
import pandas.util.testing as tm
+import dateutil
def pytest_a... | xref #18141 | https://api.github.com/repos/pandas-dev/pandas/pulls/18253 | 2017-11-13T00:25:21Z | 2017-11-13T11:08:44Z | 2017-11-13T11:08:44Z | 2017-11-13T11:08:44Z |
COMPAT: avoid invalid buffer comparisions | diff --git a/pandas/_libs/src/inference.pyx b/pandas/_libs/src/inference.pyx
index f2edf48a6b829..c432c40c8f6b3 100644
--- a/pandas/_libs/src/inference.pyx
+++ b/pandas/_libs/src/inference.pyx
@@ -613,7 +613,7 @@ cdef class Validator:
self.dtype = dtype
self.skipna = skipna
- cdef bint validate(s... | closes #18064
| https://api.github.com/repos/pandas-dev/pandas/pulls/18252 | 2017-11-12T23:45:43Z | 2017-11-13T13:06:29Z | 2017-11-13T13:06:29Z | 2018-06-15T07:13:10Z |
CI: move clipboard tests to an allowed-failure test | diff --git a/.travis.yml b/.travis.yml
index 42b4ef0396fc8..0f43e4cf54faa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -52,10 +52,6 @@ matrix:
- dist: trusty
env:
- JOB="3.5" TEST_ARGS="--skip-slow --skip-network" COVERAGE=true
- addons:
- apt:
- packages:
- - xsel
... | CI: change 2.7-build_test -> 3.6-build_test | https://api.github.com/repos/pandas-dev/pandas/pulls/18251 | 2017-11-12T23:01:51Z | 2017-11-13T11:02:46Z | 2017-11-13T11:02:46Z | 2017-11-13T11:03:46Z |
DOC: Error msg using Python keyword in numexpr query #18221 | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 61679b14a8592..9c44081b64134 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -158,6 +158,6 @@ Categorical
Other
^^^^^
--
+- Improved error message when attempting to use a Python keyword as an ... | - [X] closes #18221
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18248 | 2017-11-12T21:11:07Z | 2017-11-13T13:05:47Z | 2017-11-13T13:05:47Z | 2018-03-09T23:51:58Z |
MAINT: asv with py3 on windows | diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json
index 62f1c090a7462..59c05400d06b0 100644
--- a/asv_bench/asv.conf.json
+++ b/asv_bench/asv.conf.json
@@ -46,12 +46,14 @@
"numexpr": [],
"pytables": [null, ""], // platform dependent, see excludes below
"tables": [null, ""],
- ... | Since benchmarking on python 3, no longer want to install `libpython`
| https://api.github.com/repos/pandas-dev/pandas/pulls/16139 | 2017-04-26T02:06:16Z | 2017-04-26T13:20:36Z | 2017-04-26T13:20:36Z | 2017-04-26T13:25:41Z |
Make various minor corrections to cheatsheet | diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet.pdf b/doc/cheatsheet/Pandas_Cheat_Sheet.pdf
index d504926d22580..0492805a1408b 100644
Binary files a/doc/cheatsheet/Pandas_Cheat_Sheet.pdf and b/doc/cheatsheet/Pandas_Cheat_Sheet.pdf differ
diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet.pptx b/doc/cheatsheet/Pandas_Cheat_S... | Changes made:
- Fixed SubHeading `Make New Variables` to `Make New Columns` -- because these operations create new columns.
- Fixed # of distinct values in a column to use the pandas method `.nunique()` rather than `len(df['w'].unique())`.
- For clarity, renamed the `Length` column selection to `w` under the S... | https://api.github.com/repos/pandas-dev/pandas/pulls/16136 | 2017-04-25T23:24:42Z | 2017-04-27T13:59:00Z | 2017-04-27T13:59:00Z | 2017-04-27T13:59:13Z |
BUG: sefault in concat of CategoricalIndex | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index c07760a94d3f1..c9c22de9141fe 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -1629,6 +1629,7 @@ Indexing
- Bug in the display of ``.info()`` where a qualifier (+) would always be displayed with a ... | - [x] closes #16111
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/16133 | 2017-04-25T19:04:23Z | 2017-04-25T22:55:22Z | 2017-04-25T22:55:22Z | 2017-04-25T22:55:22Z |
BUG/API: Catch exceptions in _ipython_display_ | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 74d3053821e39..f078cbb435d25 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -43,6 +43,7 @@
import pandas.core.algorithms as algos
import pandas.core.common as com
import pandas.core.missing as missing
+from pandas.errors import U... | We raise an UnserializeableWarning when we fail to generate
the table schema and do not publish a `table_schema` repr.
closes https://github.com/pandas-dev/pandas/issues/15996 | https://api.github.com/repos/pandas-dev/pandas/pulls/16132 | 2017-04-25T18:03:13Z | 2017-04-25T23:55:20Z | 2017-04-25T23:55:20Z | 2017-05-01T15:50:28Z |
PERF: use StringHashtable in data algos | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 3df82b6c13259..a745ec616eda8 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -216,10 +216,7 @@ def _get_data_algo(values, func_map):
# its cheaper to use a String Hash Table than Object
if lib.infer_dt... | xref #16107 | https://api.github.com/repos/pandas-dev/pandas/pulls/16128 | 2017-04-25T10:26:52Z | 2017-04-25T11:16:34Z | 2017-04-25T11:16:34Z | 2017-04-25T11:17:29Z |
BUG: fix error for reset_index() with index.name in MultiIndex columns | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 945922b5f9ba8..c07760a94d3f1 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -1623,6 +1623,7 @@ Indexing
- Bug in ``Series.iloc`` where a ``Categorical`` object for list-like indexes input was ret... | - [x] closes #16120
- [x] tests added / passed
- [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/16126 | 2017-04-25T09:17:15Z | 2017-04-25T10:35:14Z | 2017-04-25T10:35:14Z | 2017-04-25T10:35:54Z |
REGR: bug in moments when using bottleneck | diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py
index 5ce302967de24..e9be43b184537 100644
--- a/pandas/core/nanops.py
+++ b/pandas/core/nanops.py
@@ -381,6 +381,7 @@ def nanstd(values, axis=None, skipna=True, ddof=1):
@bottleneck_switch(ddof=1)
def nanvar(values, axis=None, skipna=True, ddof=1):
+ val... | closes #16116
| https://api.github.com/repos/pandas-dev/pandas/pulls/16124 | 2017-04-25T02:08:58Z | 2017-04-25T07:56:35Z | 2017-04-25T07:56:34Z | 2017-04-25T07:57:44Z |
REGR: Bug in indexing with a CategoricalIndex | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 0b66b90afec67..c46593d9fe6ac 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -1630,7 +1630,8 @@ Indexing
- Bug in the display of ``.info()`` where a qualifier (+) would always be displayed with a ... | closes #16115
closes #16131
| https://api.github.com/repos/pandas-dev/pandas/pulls/16123 | 2017-04-25T01:53:51Z | 2017-04-26T15:15:04Z | 2017-04-26T15:15:04Z | 2017-04-26T16:05:20Z |
MAINT: Rename assertRaisesRegexp to assert_raises_regex | diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index 6ec06f75de06d..cc14282934f16 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -29,9 +29,8 @@
import pandas.core.computation.expr as expr
import pandas.util.testing as tm
f... | Title is self-explanatory.
xref <a href="https://github.com/pandas-dev/pandas/pull/16089#issuecomment-296327919">#16089 (comment)</a> | https://api.github.com/repos/pandas-dev/pandas/pulls/16119 | 2017-04-24T22:32:43Z | 2017-04-26T15:42:18Z | 2017-04-26T15:42:18Z | 2017-04-26T16:25:58Z |
MAINT: Remove self.assertRaisesRegexp from testing | diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py
index 2d673b2dac259..8ca8ddded3073 100644
--- a/pandas/tests/groupby/test_groupby.py
+++ b/pandas/tests/groupby/test_groupby.py
@@ -1874,16 +1874,16 @@ def test_groupby_args(self):
def j():
frame.groupby()
-... | Title is self-explanatory.
Partially addresses #15990. | https://api.github.com/repos/pandas-dev/pandas/pulls/16113 | 2017-04-24T17:33:14Z | 2017-04-24T19:59:43Z | 2017-04-24T19:59:43Z | 2017-04-24T20:05:05Z |
REGR: assure .unique of mixed strings does not stringize | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 8437861bea19e..3df82b6c13259 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -161,7 +161,11 @@ def _ensure_arraylike(values):
"""
if not isinstance(values, (np.ndarray, ABCCategorical,
... | closes #16107
this *might* slow things down (because of the inferring), so will have to make a fix for that. | https://api.github.com/repos/pandas-dev/pandas/pulls/16108 | 2017-04-24T12:32:17Z | 2017-04-25T01:53:13Z | 2017-04-25T01:53:13Z | 2017-04-25T01:54:37Z |
MAINT: Remove assertIs from testing | diff --git a/pandas/tests/dtypes/test_common.py b/pandas/tests/dtypes/test_common.py
index 1017f93b8241c..86233c5d2b192 100644
--- a/pandas/tests/dtypes/test_common.py
+++ b/pandas/tests/dtypes/test_common.py
@@ -26,7 +26,7 @@ def test_datetimetz_dtype(self):
for dtype in ['datetime64[ns, US/Eastern]',
... | Title is self-explanatory.
Partially addresses #15990. | https://api.github.com/repos/pandas-dev/pandas/pulls/16105 | 2017-04-24T02:39:24Z | 2017-04-24T10:04:41Z | 2017-04-24T10:04:41Z | 2017-04-24T15:48:26Z |
PERF: maybe_convert_numeric speedup | diff --git a/pandas/_libs/src/inference.pyx b/pandas/_libs/src/inference.pyx
index f7dbae4ab736e..d87a0641291b1 100644
--- a/pandas/_libs/src/inference.pyx
+++ b/pandas/_libs/src/inference.pyx
@@ -96,7 +96,7 @@ cdef class Seen(object):
encountered when trying to perform type conversions.
"""
- cdef publi... | xref #16043
Probably more to be done, but picks up some easy performance on the int path. For some reason I'm having trouble running asv, here are some timings.
### setup
```
ints = np.array(list(range(1000000)), dtype=object)
floats = np.array([float(x) for x in range(1000000)], dtype=object)
ints_with_fl... | https://api.github.com/repos/pandas-dev/pandas/pulls/16104 | 2017-04-23T22:54:10Z | 2017-04-25T01:55:29Z | 2017-04-25T01:55:29Z | 2017-04-25T08:30:41Z |
MAINT: Remove assertIsNone from testing | diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index eacbd2b390154..6ec06f75de06d 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -1336,7 +1336,7 @@ def test_multi_line_expression(self):
c = a + b
d = c + b""... | Title is self-explanatory.
Partially addresses #15990.
| https://api.github.com/repos/pandas-dev/pandas/pulls/16102 | 2017-04-23T21:10:23Z | 2017-04-23T23:19:42Z | 2017-04-23T23:19:42Z | 2017-04-24T01:25:30Z |
MAINT: Remove assertIn from testing | diff --git a/pandas/tests/frame/test_alter_axes.py b/pandas/tests/frame/test_alter_axes.py
index f32e001ea984a..1a3de7b463a19 100644
--- a/pandas/tests/frame/test_alter_axes.py
+++ b/pandas/tests/frame/test_alter_axes.py
@@ -138,7 +138,7 @@ def test_set_index_nonuniq(self):
'E': np.random.randn... | Title is self-explanatory.
Partially addresses #15990.
| https://api.github.com/repos/pandas-dev/pandas/pulls/16101 | 2017-04-23T19:32:24Z | 2017-04-23T20:38:02Z | 2017-04-23T20:38:02Z | 2017-04-23T20:39:04Z |
TST: fix various deprecation warnings in tests suite | diff --git a/pandas/tests/frame/test_quantile.py b/pandas/tests/frame/test_quantile.py
index 738ddb89db652..1a5ba3ccad400 100644
--- a/pandas/tests/frame/test_quantile.py
+++ b/pandas/tests/frame/test_quantile.py
@@ -431,7 +431,7 @@ def test_quantile_empty(self):
# res = df.quantile(0.5)
# datetimes... | https://api.github.com/repos/pandas-dev/pandas/pulls/16100 | 2017-04-23T13:57:10Z | 2017-04-23T14:18:29Z | 2017-04-23T14:18:29Z | 2017-04-23T14:30:25Z | |
API: expose dtypes in pandas.api.types | diff --git a/pandas/api/types/__init__.py b/pandas/api/types/__init__.py
index dcf010dcf4bc2..8bda0c75f8540 100644
--- a/pandas/api/types/__init__.py
+++ b/pandas/api/types/__init__.py
@@ -1,6 +1,10 @@
""" public toolkit API """
from pandas.core.dtypes.api import * # noqa
+from pandas.core.dtypes.dtypes import (Ca... | xref #16015
xref https://github.com/apache/arrow/pull/585
xref https://github.com/pandas-dev/pandas/issues/16042
xref https://github.com/pandas-dev/pandas/pull/15541#issuecomment-286008496 | https://api.github.com/repos/pandas-dev/pandas/pulls/16099 | 2017-04-23T13:24:32Z | 2017-04-24T11:43:12Z | 2017-04-24T11:43:12Z | 2017-04-24T11:44:24Z |
MAINT: Remove assertNotIn from testing | diff --git a/pandas/tests/frame/test_alter_axes.py b/pandas/tests/frame/test_alter_axes.py
index f925022b6bd7f..f32e001ea984a 100644
--- a/pandas/tests/frame/test_alter_axes.py
+++ b/pandas/tests/frame/test_alter_axes.py
@@ -500,16 +500,16 @@ def test_rename_nocopy(self):
def test_rename_inplace(self):
... | Title is self-explanatory.
Partially addresses #15990. | https://api.github.com/repos/pandas-dev/pandas/pulls/16096 | 2017-04-22T08:48:02Z | 2017-04-23T13:57:46Z | 2017-04-23T13:57:46Z | 2017-04-23T18:18:18Z |
API: raise notImplementedError on to_json(orient='table') for a DataFrame with a MultiIndex | diff --git a/pandas/io/json/json.py b/pandas/io/json/json.py
index 7149ab497a00d..28ea8298cee9e 100644
--- a/pandas/io/json/json.py
+++ b/pandas/io/json/json.py
@@ -6,7 +6,7 @@
from pandas._libs.tslib import iNaT
from pandas.compat import StringIO, long, u
from pandas import compat, isnull
-from pandas import Series... | xref #15996
| https://api.github.com/repos/pandas-dev/pandas/pulls/16095 | 2017-04-22T01:52:43Z | 2017-04-22T02:18:12Z | 2017-04-22T02:18:12Z | 2017-04-22T12:22:16Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.