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 |
|---|---|---|---|---|---|---|---|
CLN: Remove Categorical.from_array | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index cd727c728eb3d..495d0beaf3faa 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -149,6 +149,7 @@ Removal of prior version deprecations/changes
- ``pd.ordered_merge`` has been removed (deprecated sinc... | Deprecated in 0.19.0
xref #13854. | https://api.github.com/repos/pandas-dev/pandas/pulls/18642 | 2017-12-05T07:50:38Z | 2017-12-05T11:15:22Z | 2017-12-05T11:15:22Z | 2017-12-05T16:54:07Z |
CLN: ASV HDFStore benchmark | diff --git a/asv_bench/benchmarks/hdfstore_bench.py b/asv_bench/benchmarks/hdfstore_bench.py
index 5aa8f76917797..d7b3be25a18b9 100644
--- a/asv_bench/benchmarks/hdfstore_bench.py
+++ b/asv_bench/benchmarks/hdfstore_bench.py
@@ -1,34 +1,40 @@
-from .pandas_vb_common import *
-import os
+import numpy as np
+from pandas ... | - Ran flake8 and replaced star imports
An `HDFStore.info()` benchmark was added in #16666, but the benchmark fails (even on master). I can create a new issue for this unless there's an obvious fix I am not seeing.
```
asv dev -b ^hdfstore_bench· Discovering benchmarks
· Running 18 total benchmarks (1 commits *... | https://api.github.com/repos/pandas-dev/pandas/pulls/18641 | 2017-12-05T06:00:31Z | 2017-12-06T10:18:14Z | 2017-12-06T10:18:14Z | 2017-12-06T17:59:13Z |
Cleanup & De-duplication for custom offset classes | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 251af50ab12ce..29e14103dfe20 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -307,27 +307,6 @@ class CacheableOffset(object):
_cacheable = True
-class BeginMixin(object):
- # helper for... | The diff looks a little bit mangled. This PR does two things.
1) Centralize frequently-repeated calendar `__init__` in a new _CustomMixin
2) Merge a bunch of shared CustomBusinessMonthEnd and CustomBusinessMonthBegin logic into a parent class.
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `git ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18640 | 2017-12-05T00:18:27Z | 2017-12-06T00:52:42Z | 2017-12-06T00:52:42Z | 2017-12-06T04:19:49Z |
Explicit LooseVersion comps | diff --git a/pandas/_libs/sparse.pyx b/pandas/_libs/sparse.pyx
index bbdd5f0d8334c..bb8b0ed14e1d9 100644
--- a/pandas/_libs/sparse.pyx
+++ b/pandas/_libs/sparse.pyx
@@ -12,8 +12,8 @@ from distutils.version import LooseVersion
# numpy versioning
_np_version = np.version.short_version
-_np_version_under1p10 = LooseVe... | - [X] closes #18633
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/18637 | 2017-12-04T21:20:47Z | 2017-12-06T11:18:37Z | 2017-12-06T11:18:37Z | 2017-12-06T12:40:54Z |
ENH: DataFrame.pivot accepts a list of values | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 151ab8456c1d7..18013666d0b82 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -326,6 +326,7 @@ Other Enhancements
- ``Resampler`` objects now have a functioning :attr:`~pandas.core.resample.Resampl... | - [x] closes https://github.com/pandas-dev/pandas/issues/17160
- [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/18636 | 2017-12-04T21:13:33Z | 2018-03-26T07:24:02Z | 2018-03-26T07:24:01Z | 2018-03-26T08:14:26Z |
DOC: explain the `mode.chained_assignment` option | diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst
index 2f9f7a04def19..2f3dbb9746066 100644
--- a/doc/source/indexing.rst
+++ b/doc/source/indexing.rst
@@ -1833,15 +1833,27 @@ that you've done this:
Yikes!
+.. _indexing.evaluation_order:
+
Evaluation order matters
~~~~~~~~~~~~~~~~~~~~~~~~
-Further... | - [x] closes #xxxx (n/a)
- [x] tests added / passed (yes, Sphinx compiles without errors)
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry (n/a)
Make the explanation of the `mode.chained_assignment` option link to the explanation of chained indexing and assignment. Explain... | https://api.github.com/repos/pandas-dev/pandas/pulls/18635 | 2017-12-04T20:34:39Z | 2017-12-07T15:46:08Z | 2017-12-07T15:46:08Z | 2017-12-11T20:20:50Z |
CLN: Replaced package list with find_packages | diff --git a/ci/environment-dev.yaml b/ci/environment-dev.yaml
index 57748fef1a2e5..c72abd0c19516 100644
--- a/ci/environment-dev.yaml
+++ b/ci/environment-dev.yaml
@@ -10,5 +10,5 @@ dependencies:
- python-dateutil>=2.5.0
- python=3
- pytz
- - setuptools
+ - setuptools>=3.3
- sphinx
diff --git a/ci/requir... | - [X] closes #18535
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
As far as local testing goes, I built source distributions using py27 and py36. Compared to HEAD, the generated distributions were practically identical. Technically they were ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18632 | 2017-12-04T16:53:45Z | 2017-12-08T11:12:59Z | 2017-12-08T11:12:59Z | 2017-12-12T15:41:31Z |
ENH: support non default indexes in writing to Parquet | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 54e7a11c5f2b1..2cbd64bf5186b 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -4504,11 +4504,8 @@ dtypes, including extension dtypes such as datetime with tz.
Several caveats.
-- The format will NOT write an ``Index``, or ``MultiIndex`` for the
- `... | - [x] closes #18581
- [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/18629 | 2017-12-04T13:43:05Z | 2017-12-11T18:57:17Z | 2017-12-11T18:57:16Z | 2017-12-12T02:38:30Z |
BUG: fix construction of Series from dict with nested lists | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 09bd09b06d9b9..2d5fce1335f62 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -761,6 +761,7 @@ Datetimelike API Changes
- ``pandas.tseries.frequencies.get_freq_group()`` and ``pandas.tseries.freque... | - [x] closes #18625
- [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/18626 | 2017-12-04T10:40:22Z | 2018-12-14T15:52:16Z | null | 2018-12-14T15:52:16Z |
BUG: Don't overflow in DataFrame init | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 495d0beaf3faa..f2500bb29d0be 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -186,7 +186,7 @@ Conversion
^^^^^^^^^^
- Bug in :class:`Index` constructor with `dtype='uint64'` where int-like floa... | For integers larger than what uint64 can handle (or smaller than what int64 can handle), we gracefully default to the object dtype instead of overflowing.
Closes #18584. | https://api.github.com/repos/pandas-dev/pandas/pulls/18624 | 2017-12-04T10:16:07Z | 2017-12-05T22:54:44Z | 2017-12-05T22:54:44Z | 2017-12-06T02:35:38Z |
BLD: Bump Cython version from 0.23 to 0.24 | diff --git a/ci/requirements-2.7.build b/ci/requirements-2.7.build
index d1cc61df0a77c..e24baa98d956e 100644
--- a/ci/requirements-2.7.build
+++ b/ci/requirements-2.7.build
@@ -3,4 +3,4 @@ python-dateutil=2.5.0
pytz=2013b
nomkl
numpy
-cython=0.23
+cython=0.24
diff --git a/ci/requirements-2.7_COMPAT.build b/ci/requir... | - [X] closes #18613
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
For the whatsnew:
- Used the same whatsnew message as was used during the last cython version bump in 0.20
- Moved some previous entries that were under the main "Backwards incompatible API changes" s... | https://api.github.com/repos/pandas-dev/pandas/pulls/18623 | 2017-12-04T08:33:06Z | 2017-12-04T20:13:32Z | 2017-12-04T20:13:32Z | 2017-12-04T20:17:22Z |
CLN: Remove SparseList from pandas API | diff --git a/doc/source/sparse.rst b/doc/source/sparse.rst
index 89efa7b4be3ee..2e224f103a95e 100644
--- a/doc/source/sparse.rst
+++ b/doc/source/sparse.rst
@@ -85,15 +85,6 @@ can be converted back to a regular ndarray by calling ``to_dense``:
sparr.to_dense()
-.. _sparse.list:
-
-SparseList
-----------
-
-The ... | Deprecated in 0.19.0.
xref #14007.
| https://api.github.com/repos/pandas-dev/pandas/pulls/18621 | 2017-12-04T02:15:50Z | 2017-12-04T11:00:55Z | 2017-12-04T11:00:55Z | 2017-12-05T07:50:13Z |
add (partial) linting to asvs | diff --git a/asv_bench/benchmarks/gil.py b/asv_bench/benchmarks/gil.py
index 78a94976e732d..50e52bd6cc494 100644
--- a/asv_bench/benchmarks/gil.py
+++ b/asv_bench/benchmarks/gil.py
@@ -3,9 +3,9 @@
from pandas.core.algorithms import take_1d
try:
- from cStringIO import StringIO
+ from cStringIO import StringIO... | 1) Add linting,
2) fix a bunch of lint warnings,
3) add ignore/excludes so that it passes for now. | https://api.github.com/repos/pandas-dev/pandas/pulls/18620 | 2017-12-04T01:55:00Z | 2017-12-04T10:58:42Z | null | 2017-12-08T19:38:16Z |
timestamp/timedelta test cleanup | diff --git a/pandas/tests/scalar/test_timedelta.py b/pandas/tests/scalar/test_timedelta.py
index 17c818779c76d..001f6c1fdbef4 100644
--- a/pandas/tests/scalar/test_timedelta.py
+++ b/pandas/tests/scalar/test_timedelta.py
@@ -15,6 +15,28 @@
class TestTimedeltaArithmetic(object):
_multiprocess_can_split_ = True
+... | More informative names in timedeltas tests
remove/merge redundant tests in timestamps. Separate some big test classes thematically.
Use pytest.parametrize in a few places | https://api.github.com/repos/pandas-dev/pandas/pulls/18619 | 2017-12-04T01:20:17Z | 2017-12-04T11:21:50Z | 2017-12-04T11:21:50Z | 2017-12-08T19:38:19Z |
handle DST appropriately in Timestamp.replace | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 92564285bb36a..a670bf2348bfc 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -381,3 +381,4 @@ Other
^^^^^
- Improved error message when attempting to use a Python keyword as an identifier in a ... | ```
ts = pd.Timestamp('2017-12-03 16:03:24', tz='US/Eastern')
# Timestamp('2017-12-03 16:03:24-0500', tz='US/Eastern')
ts2 = ts.replace(month=6) # <-- across DST boundary
# master --> Timestamp('2017-06-03 16:03:24-0500', tz='US/Eastern')
# PR --> Timestamp('2017-06-03 16:03:24-0400', tz='US/Easter... | https://api.github.com/repos/pandas-dev/pandas/pulls/18618 | 2017-12-04T00:59:44Z | 2018-01-05T23:37:26Z | 2018-01-05T23:37:26Z | 2018-01-23T04:40:39Z |
DOC: Removing keep=False from docs on nlargest/nsmallest | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ff42e39d9dbdd..f377fa1f5731a 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3769,7 +3769,7 @@ def nlargest(self, n, columns, keep='first'):
Number of items to retrieve
columns : list or str
Column name or... | - [x] closes #18559
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/18617 | 2017-12-03T23:39:33Z | 2017-12-04T11:27:30Z | 2017-12-04T11:27:30Z | 2017-12-11T20:21:06Z |
CLN: Remove io.data and io.wb | diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template
index f5c65e175b0db..7c7457df8ea93 100644
--- a/doc/source/index.rst.template
+++ b/doc/source/index.rst.template
@@ -137,7 +137,6 @@ See the package overview for more detail about what's in the library.
visualization
style
io
- ... | Deprecated in 0.17.0.
xref #13735.
| https://api.github.com/repos/pandas-dev/pandas/pulls/18612 | 2017-12-03T21:21:31Z | 2017-12-05T00:23:55Z | 2017-12-05T00:23:55Z | 2017-12-05T07:50:02Z |
CLN: ASV groupby benchmarks | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index 13b5cd2b06032..3abf2338e1d94 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -1,85 +1,108 @@
-from .pandas_vb_common import *
from string import ascii_letters, digits
from itertools import produc... | - Ran flake8 and replaced star imports
- Moved `series_value_counts` to `series_methods.py`
- Used `params` with `param_names` and `setup_cache` where possible.
```
asv dev -b ^groupby
[ 0.00%] ··· Setting up /home/matt/Projects/pandas-mroeschke/asv_bench/benchmarks/groupby.py:267
[ 1.19%] ··· Running gr... | https://api.github.com/repos/pandas-dev/pandas/pulls/18611 | 2017-12-03T18:30:06Z | 2017-12-05T09:18:56Z | 2017-12-05T09:18:56Z | 2017-12-05T17:47:43Z |
json_normalize: Make code more pythonic and avoid modification of meta if mutable | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 3d4850b334ff9..a9608594be547 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -90,6 +90,7 @@ I/O
- Bug in parsing integer datetime-like columns with specified format in ``read_sql`` (:issue:`17855`... | - [x] closes itself #18610
- [x] tests added / passed
- [x] passes `git diff master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
- Update json_normalize to prevent modifying `meta` parameter.
- Make the code more Pythonic too. | https://api.github.com/repos/pandas-dev/pandas/pulls/18610 | 2017-12-03T13:54:03Z | 2017-12-04T12:55:54Z | 2017-12-04T12:55:54Z | 2017-12-11T20:21:03Z |
BUG: duplicate indexing with embedded non-orderables (#17610) | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 0579a80aad28e..5bb8dc28dcd87 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -294,6 +294,8 @@ Indexing
- Bug in tz-aware :class:`DatetimeIndex` where addition/subtraction with a :class:`TimedeltaI... | - [x] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
closes #17610 | https://api.github.com/repos/pandas-dev/pandas/pulls/18609 | 2017-12-03T13:04:57Z | 2017-12-21T15:28:51Z | null | 2017-12-21T15:57:35Z |
Fix bool float no coercion | diff --git a/pandas/core/internals.py b/pandas/core/internals.py
index f553e1a02c9d6..957b293ac3156 100644
--- a/pandas/core/internals.py
+++ b/pandas/core/internals.py
@@ -1051,7 +1051,7 @@ def f(m, v, i):
return [self.make_block(new_values)]
- def coerce_to_target_dtype(self, other):
+ def coerce_t... | - [ x] closes #18549
- [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/18607 | 2017-12-03T06:31:37Z | 2018-03-16T22:08:29Z | null | 2018-03-16T22:08:29Z |
Fix dtype coercion | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 09b504cac5ed4..571dc2fe1ae55 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -169,7 +169,7 @@ Conversion
^^^^^^^^^^
- Bug in :class:`Index` constructor with `dtype='uint64'` where int-like floa... | - [x] closes #18549
- [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/18605 | 2017-12-03T02:00:11Z | 2017-12-03T05:39:41Z | null | 2023-05-11T01:16:52Z |
ENH: Raise error for 'sheet' arg in read_excel | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 7362e11b22189..5d6ed50ca3f26 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -377,7 +377,7 @@ I/O
^^^
- :func:`read_html()` no longer ignores all-whitespace ``<tr>`` within ``<thead>`` when con... | - [ ] closes #17994
I was also thinking about the possibility of raising a warning instead, and do something like:
```
if sheet in kwds:
sheet_name = sheet
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/18604 | 2017-12-02T22:09:03Z | 2018-07-07T18:56:41Z | 2018-07-07T18:56:40Z | 2018-07-07T18:56:41Z |
DOC: Give python3 precedence over py2 in the install notes | diff --git a/doc/source/install.rst b/doc/source/install.rst
index 7c1fde119ceaa..95331271f95be 100644
--- a/doc/source/install.rst
+++ b/doc/source/install.rst
@@ -141,28 +141,24 @@ and can take a few minutes to complete.
Installing using your Linux distribution's package manager.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | Currently the install notes show python 2 more prominently than Python 3. I suggest reversing that.
The argument is that pandas has pledged to drop support for Python 2 in 2020, and that the general transition to python 3 is now well under way (Django has gone py3 only and numpy will only develop new feature for Pyt... | https://api.github.com/repos/pandas-dev/pandas/pulls/18603 | 2017-12-02T20:12:36Z | 2017-12-06T23:20:36Z | 2017-12-06T23:20:36Z | 2017-12-11T20:19:37Z |
STYLE: Use decorator syntax instead of legacy syntax for defining properties in Cython | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index fa2e1271f4649..f8371d4855803 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -220,34 +220,31 @@ cdef class IndexEngine:
def __sizeof__(self):
return self.sizeof()
- property is_unique:
+ @property
+ def is_un... | - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
See the [Cython docs](http://cython.readthedocs.io/en/latest/src/userguide/extension_types.html#properties) for a comparison of the decorator syntax and legacy syntax. I only found a few instances of the legacy syntax; looks like most of the Cytho... | https://api.github.com/repos/pandas-dev/pandas/pulls/18602 | 2017-12-02T19:48:38Z | 2017-12-06T11:27:35Z | 2017-12-06T11:27:35Z | 2017-12-06T15:43:15Z |
DEPR/CLN: Remove freq parameters from df.rolling/expanding/ewm | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 495d0beaf3faa..67e428e096cdb 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -150,6 +150,8 @@ Removal of prior version deprecations/changes
- The ``SparseList`` class has been removed (:issue:`140... | -- [x ] tests added / passed
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x ] whatsnew entry
The ``freq`` parameter of df.rolling/expanding/ewm was deprecated in 0.18 (#11603). This PR removes the parameter from the code base.
After this PR, I will remove the ``how`` parameter and la... | https://api.github.com/repos/pandas-dev/pandas/pulls/18601 | 2017-12-02T18:19:55Z | 2017-12-06T01:13:53Z | 2017-12-06T01:13:53Z | 2017-12-11T08:08:49Z |
BUG: Fix initialization of DataFrame from dict with NaN as key | diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py
index 21b20cb123ed6..9def910df0bab 100644
--- a/asv_bench/benchmarks/frame_ctor.py
+++ b/asv_bench/benchmarks/frame_ctor.py
@@ -16,11 +16,11 @@ class FromDicts(object):
def setup(self):
N, K = 5000, 50
- index = ... | - [x] closes #18455
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This does not solve the [MI example](https://github.com/pandas-dev/pandas/issues/18455#issuecomment-346700652) in #18455, but that should be included in #18485 . | https://api.github.com/repos/pandas-dev/pandas/pulls/18600 | 2017-12-02T14:27:59Z | 2018-04-01T17:47:06Z | 2018-04-01T17:47:05Z | 2018-04-01T17:48:17Z |
BLD Added --strict and -r sxX to test scripts | diff --git a/test.bat b/test.bat
index 2424f62b8dbfe..e07c84f257a69 100644
--- a/test.bat
+++ b/test.bat
@@ -1,3 +1,3 @@
:: test on windows
-pytest --strict --skip-slow --skip-network pandas -n 2 %*
+pytest --skip-slow --skip-network pandas -n 2 -r sxX --strict %*
diff --git a/test.sh b/test.sh
index 23c7ff52d2ce9..... | - no related issue in issue tracker
- no tests added because it was a minor build script change)
- modified shell script, no python syntax check required
- [] whatsnew entry
Altered pytest output to show summaries for xFailed, xPassed and skipped
Added --strict to align these convenience scripts with ci
it will... | https://api.github.com/repos/pandas-dev/pandas/pulls/18598 | 2017-12-01T19:12:57Z | 2017-12-01T19:15:23Z | 2017-12-01T19:15:23Z | 2017-12-01T19:15:25Z |
Add test for GH 18523 and add _tz_compare() to compare timezone of DatetimeIndex | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 196c881f97526..fb3fdafce9c85 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -1127,6 +1127,28 @@ def join(self, other, how='left', level=None, return_indexers=False,
return Index.join(... | - [x] closes #18523
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Add a new private function `_tz_compare` which compares timezones of DatetimeIndex.
@jreback
| https://api.github.com/repos/pandas-dev/pandas/pulls/18596 | 2017-12-01T18:24:39Z | 2018-02-24T17:27:54Z | null | 2018-02-24T17:27:54Z |
BLD: updated conda recipe to be conda-bld 3plus compliant | diff --git a/.travis.yml b/.travis.yml
index 0f43e4cf54faa..3663894922dfe 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -51,7 +51,7 @@ matrix:
- python-gtk2
- dist: trusty
env:
- - JOB="3.5" TEST_ARGS="--skip-slow --skip-network" COVERAGE=true
+ - JOB="3.6_CONDA_BUILD_TEST" TEST_ARG... | - [x] closes #18002
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I did local testing of the build. Assuming the CI will catch any errors? | https://api.github.com/repos/pandas-dev/pandas/pulls/18592 | 2017-12-01T14:36:11Z | 2017-12-15T02:19:24Z | null | 2017-12-15T02:19:24Z |
EHN: Add index parameter to to_json | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 32b548e5f32f1..f3dac20758441 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -136,6 +136,7 @@ Other Enhancements
- :func:`DataFrame.corrwith` now silently drops non-numeric columns when passed a S... | - [ ] closes #17394
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Examples:
```
In [1]: df = pd.DataFrame([[1, 2, 3], [4, 5, 6]], columns=['a', 'b', 'c'])
In [2]: df.to_json(orient='split', index=True)
Out[2]:
{"columns":["a","b","c"],... | https://api.github.com/repos/pandas-dev/pandas/pulls/18591 | 2017-12-01T14:33:43Z | 2017-12-10T15:26:29Z | 2017-12-10T15:26:29Z | 2017-12-10T16:13:21Z |
BUG: Unwanted conversion from timedelta to float (#18493) | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index bebfd0ab50e90..3d4850b334ff9 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -74,6 +74,7 @@ Indexing
- Bug where a ``MultiIndex`` with more than a million records was not raising ``AttributeError`... | - [ ] closes #18493
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/18586 | 2017-12-01T08:50:04Z | 2017-12-02T17:43:02Z | 2017-12-02T17:43:01Z | 2017-12-11T20:21:11Z |
CLN/DOC: Interval and IntervalIndex classes | diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx
index 39b26c61172ed..822df1ce2b968 100644
--- a/pandas/_libs/interval.pyx
+++ b/pandas/_libs/interval.pyx
@@ -14,30 +14,46 @@ import numbers
_VALID_CLOSED = frozenset(['left', 'right', 'both', 'neither'])
-cdef class IntervalMixin:
- property cl... | Progress towards #16130
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Changes shouldn't impact the behavior of `Interval` or `IntervalIndex`:
- Restructured the `IntervalMixin` class, as it was using legacy syntax for defining properties ([see here](http://cython.readthedocs.io/en/latest/src... | https://api.github.com/repos/pandas-dev/pandas/pulls/18585 | 2017-12-01T05:12:58Z | 2017-12-01T11:30:30Z | 2017-12-01T11:30:30Z | 2017-12-01T18:06:14Z |
API/BUG: .apply will correctly infer output shape when axis=1 | diff --git a/doc/source/basics.rst b/doc/source/basics.rst
index 18da53506f018..fb9e5a6cc75cb 100644
--- a/doc/source/basics.rst
+++ b/doc/source/basics.rst
@@ -793,8 +793,14 @@ The :meth:`~DataFrame.apply` method will also dispatch on a string method name.
df.apply('mean')
df.apply('mean', axis=1)
-Depending... | closes #16353
closes #17348
closes #17437
closes #18573
closes #17970
closes #17892
closes #17602
closes #15628
closes #18775
closes #18901
closes #18919
This fixes apply to work correctly when the returned shape mismatches the original. It will try to set the indices if it possible. Setting to a list-... | https://api.github.com/repos/pandas-dev/pandas/pulls/18577 | 2017-11-30T14:08:17Z | 2018-02-07T13:06:48Z | 2018-02-07T13:06:47Z | 2018-02-07T14:20:44Z |
BUG: Series.rank modifies inplace with NaT | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index c2da0c420f643..3e9e2bf329674 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -315,7 +315,7 @@ Reshaping
- Bug in :func:`DataFrame.stack` which fails trying to sort mixed type levels under Python... | - [x] closes #18521
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Looks like `_ensure_data` converts NaT to -9223372036854775808 then that gets converted back to datetime64. | https://api.github.com/repos/pandas-dev/pandas/pulls/18576 | 2017-11-30T13:20:00Z | 2017-12-14T11:30:35Z | 2017-12-14T11:30:35Z | 2017-12-14T11:30:45Z |
CLN: ASV remove uncessary selfs and add setups | diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py
index 7ffb180b49e09..45d62163ae80b 100644
--- a/asv_bench/benchmarks/algorithms.py
+++ b/asv_bench/benchmarks/algorithms.py
@@ -11,6 +11,8 @@
except:
pass
+from .pandas_vb_common import setup # noqa
+
class Factorize... | @jorisvandenbossche Added `setup` with #noqa to the other benchmarks I edited and removed uncessesary `self`s | https://api.github.com/repos/pandas-dev/pandas/pulls/18575 | 2017-11-30T04:34:56Z | 2017-11-30T08:13:59Z | 2017-11-30T08:13:59Z | 2017-11-30T18:28:20Z |
DEPR: deprecate .asobject property | diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py
index 7697c3b9d3840..a607168ea0457 100644
--- a/asv_bench/benchmarks/index_object.py
+++ b/asv_bench/benchmarks/index_object.py
@@ -12,7 +12,7 @@ def setup(self):
if (self.rng.dtype == object):
self.idx_rng = ... | This PR supersedes #18477.
closes #18237
- [ x] xref #18262
- [x ] tests added / passed
- [ x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ x] whatsnew entry
Deprecate ``Series.asobject`` and ``DatetimeIndexOpsMixin.asobject`` as per discussion in #18262. ``DatetimeIndexOpsMixin`` is a... | https://api.github.com/repos/pandas-dev/pandas/pulls/18572 | 2017-11-30T01:09:08Z | 2017-12-04T10:49:25Z | 2017-12-04T10:49:25Z | 2017-12-04T11:23:32Z |
Add HDFS reading | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 1a777c3e0b15f..b010af5cee074 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -78,7 +78,7 @@ Basic
filepath_or_buffer : various
Either a path to a file (a :class:`python:str`, :class:`python:pathlib.Path`,
- or :class:`py:py._path.local.LocalPath`... | - Add HDFS reading using `libhdfs3`
- [x] closes #18199
- [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/18568 | 2017-11-29T18:43:31Z | 2018-03-16T22:07:16Z | null | 2023-05-11T01:16:51Z |
remove unused args etal from np_datetime.c | diff --git a/pandas/_libs/src/datetime/np_datetime.c b/pandas/_libs/src/datetime/np_datetime.c
index cb4f9d3efdcd0..edc9c0f8f903d 100644
--- a/pandas/_libs/src/datetime/np_datetime.c
+++ b/pandas/_libs/src/datetime/np_datetime.c
@@ -318,26 +318,19 @@ int cmp_pandas_datetimestruct(const pandas_datetimestruct *a,
/*
*... | What #18565 does for np_datetime_strings.c, this does for np_datetime.c
Getting rid of `meta` also gets rid of a potential problem noted in a comment that `meta->num` could potentially cause an overflow. Since `meta->num` is 1 in all pandas usages, that pitfall doesn't apply. | https://api.github.com/repos/pandas-dev/pandas/pulls/18567 | 2017-11-29T17:36:03Z | 2017-12-04T11:37:27Z | 2017-12-04T11:37:27Z | 2017-12-08T19:38:20Z |
Remove unused arguments from np_datetime_strings | diff --git a/pandas/_libs/src/datetime.pxd b/pandas/_libs/src/datetime.pxd
index 6e5d8b82c118f..d919fca09c006 100644
--- a/pandas/_libs/src/datetime.pxd
+++ b/pandas/_libs/src/datetime.pxd
@@ -7,9 +7,6 @@ from cpython cimport PyUnicode_Check, PyUnicode_AsASCIIString
cdef extern from "numpy/ndarrayobject.h":
ctype... | Same deal as #18546. This completes the pure-cleaning phase for np_datetime_strings.
| https://api.github.com/repos/pandas-dev/pandas/pulls/18565 | 2017-11-29T16:56:17Z | 2017-12-06T01:39:25Z | 2017-12-06T01:39:24Z | 2017-12-08T19:38:16Z |
ENH: Support TZ Aware IntervalIndex | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 4c716bf15d923..f55c6f696544e 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -132,6 +132,7 @@ Other Enhancements
- :func:`pandas.read_clipboard` updated to use qtpy, falling back to PyQt5 and then... | - [X] closes #18537
- [X] closes #18538
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Updates to `Interval`:
- Disallowed `Interval` objects with mixed time zones
- Minor docstring updates
Updates to `IntervalIndex`:
- Disallowed `Inter... | https://api.github.com/repos/pandas-dev/pandas/pulls/18558 | 2017-11-29T04:48:12Z | 2017-12-08T11:26:07Z | 2017-12-08T11:26:06Z | 2017-12-08T15:47:55Z |
Update imports, use nogil version of sqrt | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 61d543cd7303a..df8f7bab51dbe 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -27,7 +27,7 @@ from numpy cimport (ndarray,
cdef double NaN = <double> np.NaN
cdef double nan = NaN
-from libc.math cimport sqrt, fabs
+from libc.math c... | https://api.github.com/repos/pandas-dev/pandas/pulls/18557 | 2017-11-29T02:04:26Z | 2017-12-04T11:38:40Z | 2017-12-04T11:38:40Z | 2017-12-08T19:38:18Z | |
Cleanup cimports | diff --git a/pandas/_libs/src/inference.pyx b/pandas/_libs/src/inference.pyx
index 6e964077dd56e..cb192fcced318 100644
--- a/pandas/_libs/src/inference.pyx
+++ b/pandas/_libs/src/inference.pyx
@@ -3,7 +3,7 @@ from decimal import Decimal
cimport util
cimport cython
from tslibs.nattype import NaT
-from tslib cimport c... | https://api.github.com/repos/pandas-dev/pandas/pulls/18556 | 2017-11-29T02:02:48Z | 2017-12-03T22:57:19Z | 2017-12-03T22:57:19Z | 2017-12-03T23:03:03Z | |
CLN: Move period.pyx to tslibs/period.pyx | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index 03596d7d091e0..fa2e1271f4649 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -17,7 +17,8 @@ from tslibs.conversion cimport maybe_datetimelike_to_i8
from hashtable cimport HashTable
-from pandas._libs import algos, period as peri... | - [x] Closes #18543,
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Is a whatsnew entry needed here? | https://api.github.com/repos/pandas-dev/pandas/pulls/18555 | 2017-11-28T23:41:47Z | 2017-12-03T18:00:23Z | 2017-12-03T18:00:22Z | 2017-12-03T22:59:43Z |
BUG: Fix TimeFormatter behavior with fractional seconds | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 9dc10a09378f8..624a77b33fd41 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -297,6 +297,7 @@ Plotting
^^^^^^^^
- :func: `DataFrame.plot` now raises a ``ValueError`` when the ``x`` or ``y`` arg... | - [x] closes #18478
- [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/18552 | 2017-11-28T19:37:16Z | 2017-12-21T15:31:57Z | null | 2017-12-21T15:31:58Z |
bugfix for FY5253 case with bunched yearends | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index ae272282040b8..fd23f0b4335b6 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -264,3 +264,5 @@ Other
- Fixed a bug where creating a Series from an array that contains both tz-naive and tz-aware val... | Also achieves coverage for one of the uncovered branches in `FY5253.apply`
- [x] closes #14774
- [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/18550 | 2017-11-28T17:14:39Z | 2017-12-06T11:15:31Z | 2017-12-06T11:15:31Z | 2017-12-06T16:02:48Z |
Update pandas.read_gbq docs to point to pandas-gbq | diff --git a/doc/source/install.rst b/doc/source/install.rst
index b8968e18aecb0..7c1fde119ceaa 100644
--- a/doc/source/install.rst
+++ b/doc/source/install.rst
@@ -259,7 +259,8 @@ Optional Dependencies
`xsel <http://www.vergenet.net/~conrad/software/xsel/>`__, or
`xclip <https://github.com/astrand/xclip/>`__: ne... | The `pandas-gbq` package must be installed to use `pandas.read_gbq`.
Also, with soon-to-be-release version 0.3.0 of `pandas-gbq` the Google
Cloud client library is used instead of the Google API library.
Also, standard SQL is no longer beta. In fact it is highly recommended
over using legacy SQL.
- `N/A` - clo... | https://api.github.com/repos/pandas-dev/pandas/pulls/18548 | 2017-11-28T16:48:12Z | 2017-12-01T01:05:16Z | 2017-12-01T01:05:16Z | 2017-12-11T20:21:22Z |
Remove arg that is only ever used as NPY_UNSAFE_CASTING | diff --git a/pandas/_libs/src/datetime.pxd b/pandas/_libs/src/datetime.pxd
index 0624779e50497..6e5d8b82c118f 100644
--- a/pandas/_libs/src/datetime.pxd
+++ b/pandas/_libs/src/datetime.pxd
@@ -7,13 +7,6 @@ from cpython cimport PyUnicode_Check, PyUnicode_AsASCIIString
cdef extern from "numpy/ndarrayobject.h":
ctyp... | Several functions from src/datetime are only ever called with the casting rule NPY_UNSAFE_CASTING. By getting rid of that dummy argument, the remaining code gets simplified quite a bit.
This PR removes that argument, then removes code that this renders unreachable or unused. It also removes several commented-out f... | https://api.github.com/repos/pandas-dev/pandas/pulls/18546 | 2017-11-28T16:02:42Z | 2017-11-29T12:02:06Z | 2017-11-29T12:02:06Z | 2017-12-08T19:38:20Z |
standalone implementation of ccalendar | diff --git a/pandas/_libs/tslibs/ccalendar.pxd b/pandas/_libs/tslibs/ccalendar.pxd
new file mode 100644
index 0000000000000..a1bbeea1cb69a
--- /dev/null
+++ b/pandas/_libs/tslibs/ccalendar.pxd
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# cython: profile=False
+
+from cython cimport Py_ssize_t
+
+from numpy cimport int6... | For the moment only updated cimports in `fields`.
- [ ] 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/18540 | 2017-11-28T03:51:32Z | 2017-12-07T11:08:45Z | 2017-12-07T11:08:45Z | 2017-12-07T15:57:37Z |
Fastpaths for Timestamp properties | diff --git a/asv_bench/benchmarks/timestamp.py b/asv_bench/benchmarks/timestamp.py
index fc5e6dc8c06d6..9d7d6d2998a8b 100644
--- a/asv_bench/benchmarks/timestamp.py
+++ b/asv_bench/benchmarks/timestamp.py
@@ -1,4 +1,3 @@
-from .pandas_vb_common import *
from pandas import to_timedelta, Timestamp
import pytz
import d... | Addresses a bunch of the TimestampProperties regressions in #18532 . ASV vs 0.21.0
```
asv continuous -f 1.1 -E virtualenv 81372093 HEAD -b TimestampProperties
[...]
before after ratio
[81372093] [5fc79fb0]
+ 5.73±0.02μs 10.5±0.03μs 1.84 timestamp.TimestampProp... | https://api.github.com/repos/pandas-dev/pandas/pulls/18539 | 2017-11-28T03:12:42Z | 2017-11-29T00:22:40Z | 2017-11-29T00:22:40Z | 2017-12-08T19:38:24Z |
CLN: ASV frame_methods benchmark | diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py
index 5fad7b682c2ed..d577ebc20a31c 100644
--- a/asv_bench/benchmarks/frame_ctor.py
+++ b/asv_bench/benchmarks/frame_ctor.py
@@ -124,3 +124,18 @@ def setup(self, offset, n_steps):
def time_frame_ctor(self, offset, n_steps):
... | - Added `np.random.seed(1234)` in setup classes where random data is created xref #8144
- Ran flake8 and replaced star imports
- Moved `GetItemSingleColumn`, `AssignTimeseriesIndex`, and `InsertColumns` to `indexing.py`, and `StringSlice` to `strings.py`
- Refactored to use `params` where relevant
```
$asv... | https://api.github.com/repos/pandas-dev/pandas/pulls/18536 | 2017-11-28T01:09:23Z | 2017-11-29T10:50:47Z | 2017-11-29T10:50:47Z | 2017-11-30T00:21:47Z |
DOC: improve DataFrame/SeriesGroupBy.apply doc string | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index ba180cc98cb08..2ca7af771cb24 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -77,6 +77,119 @@
pandas.Panel.%(name)s
"""
+_apply_docs = dict(
+ template="""
+ Apply function ``func`` group-wise and combine the resul... | - [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
The doc strings for the ``apply`` method on GroupBy objects are currently IMO difficult to "translate" into working code. This PR proposes making the doc string more practical, including:
* split the doc string up for dataframe and series GroupBy... | https://api.github.com/repos/pandas-dev/pandas/pulls/18534 | 2017-11-27T23:55:36Z | 2017-11-28T11:29:40Z | 2017-11-28T11:29:40Z | 2017-12-11T20:09:58Z |
Removed unused funcs from _libs | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index a5aae6d6af656..61d543cd7303a 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -212,51 +212,6 @@ cpdef numeric median(numeric[:] arr):
kth_smallest(arr, n // 2 - 1)) / 2
-# -------------- Min, Max subsequence
-
-@c... | See coverage report: https://github.com/pandas-dev/pandas/pull/18512#issuecomment-347281660
This just removes a handful of unused functions. LMK if some should be kept around just-in-case.
Not included in the never-used group but worth mentioning: lib.fast_unique, lib.convert_timestamps, and lib.string_array_rep... | https://api.github.com/repos/pandas-dev/pandas/pulls/18533 | 2017-11-27T23:15:48Z | 2017-11-28T11:24:28Z | 2017-11-28T11:24:28Z | 2017-12-08T19:38:25Z |
DEPR: Deprecate from_items | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 1890636bc8e1a..4e59f2d0f844a 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -329,7 +329,7 @@ Deprecations
- :func:`read_excel` has deprecated the ``skip_footer`` parameter. Use ``skipfooter`` ins... | - [ ] closes #17320
- [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/18529 | 2017-11-27T20:56:17Z | 2018-01-31T12:15:15Z | 2018-01-31T12:15:15Z | 2018-09-14T01:40:59Z |
CLN: ASV FromDictwithTimestamp | diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py
index 5f465a91d38d3..6761d48d25919 100644
--- a/asv_bench/benchmarks/frame_ctor.py
+++ b/asv_bench/benchmarks/frame_ctor.py
@@ -2,8 +2,9 @@
import pandas.util.testing as tm
from pandas import DataFrame, Series, MultiIndex, Timestamp,... | - [x] closes #18511
Also removed unnecessary `self`s and simplified method names
```
$ asv run -q -b ^frame_ctor
[ 0.00%] ·· Benchmarking conda-py3.6-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-pytest-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt
[ 16.67%] ··· Running frame_ctor.FromDicts.time_dict ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18527 | 2017-11-27T18:23:05Z | 2017-12-10T16:27:12Z | 2017-12-10T16:27:12Z | 2017-12-11T02:38:19Z |
BUG: Fix marker for high memory | diff --git a/ci/run_circle.sh b/ci/run_circle.sh
index 0e46d28ab6fc4..435985bd42148 100755
--- a/ci/run_circle.sh
+++ b/ci/run_circle.sh
@@ -5,5 +5,5 @@ export PATH="$MINICONDA_DIR/bin:$PATH"
source activate pandas
-echo "pytest --junitxml=$CIRCLE_TEST_REPORTS/reports/junit.xml $@ pandas"
-pytest --junitxml=$CIRCL... | Added strict flag to catch this in the future
xref https://github.com/pandas-dev/pandas/pull/18427#discussion_r153277727 | https://api.github.com/repos/pandas-dev/pandas/pulls/18526 | 2017-11-27T18:22:37Z | 2017-11-28T11:16:24Z | 2017-11-28T11:16:24Z | 2017-12-20T16:10:56Z |
BUG: Fix groupby over a CategoricalIndex in axis=1 | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index e307e605687bf..bebfd0ab50e90 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -137,6 +137,7 @@ Categorical
- Error messages in the testing module have been improved when items have different ``Cate... | - [x] closes #18432
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] add whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/18525 | 2017-11-27T18:02:01Z | 2017-11-30T15:11:43Z | 2017-11-30T15:11:43Z | 2017-12-11T20:19:10Z |
check for datetime+period addition | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 52ca05d9a76a9..beac39cd7c9a0 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -207,4 +207,5 @@ Other
- Improved error message when attempting to use a Python keyword as an identifier in a numexpr... | - [x] closes #17983
- [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/18524 | 2017-11-27T17:45:27Z | 2017-11-29T13:24:01Z | 2017-11-29T13:24:01Z | 2017-11-29T18:07:39Z |
implement shift_quarters --> apply_index for quarters and years | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 6f5ad2ae45f50..251af50ab12ce 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -17,8 +17,6 @@ np.import_array()
from util cimport is_string_object, is_integer_object
-from pandas._libs.tslib imp... | `tslibs.offsets.shift_quarters` should look like the the lovechild of `offsets.shift_months` and `QuarterOffset.apply`. It may be possible to de-duplicate some of that* at some point.
We get `apply_index` methods for all four `YearOffset` subclasses and all four `QuarterOffset` subclasses. (Previously there were i... | https://api.github.com/repos/pandas-dev/pandas/pulls/18522 | 2017-11-27T16:29:17Z | 2017-11-27T21:41:03Z | 2017-11-27T21:41:03Z | 2017-12-08T19:38:27Z |
API: empty map should not infer | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 1a08a1353a605..09b504cac5ed4 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -107,7 +107,7 @@ Other API Changes
- :class:`CacheableOffset` and :class:`WeekDay` are no longer available in the ``pan... | closes #18509
| https://api.github.com/repos/pandas-dev/pandas/pulls/18517 | 2017-11-27T12:07:54Z | 2017-12-02T17:34:37Z | 2017-12-02T17:34:37Z | 2017-12-04T10:23:47Z |
BUG: Index constructor support tupleization for mixed levels | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 8e6382c18343e..988da470eda35 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -147,6 +147,7 @@ Indexing
- Bug in :func:`DataFrame.groupby` where tuples were interpreted as lists of keys rather than... | - [x] closes #18505
- [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/18514 | 2017-11-27T08:45:15Z | 2017-11-28T09:35:38Z | 2017-11-28T09:35:38Z | 2017-11-28T11:13:34Z |
make get_firstbday, get_lastbday nogil | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 654c51f0ca842..6f5ad2ae45f50 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -24,7 +24,7 @@ from frequencies cimport get_freq_code
from nattype cimport NPY_NAT
from np_datetime cimport (pandas_da... | These are only used in `tslibs.offsets` and in tests, _and_ every use is preceeded by a call to `monthrange`. But because `monthrange` returns a tuple, it cannot be declared `nogil`. This PR removes the call to `monthrange` in favor of the two separate calls that go into `monthrange` (actually only one is needed for ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18512 | 2017-11-27T06:19:54Z | 2017-11-27T11:26:48Z | 2017-11-27T11:26:48Z | 2017-11-27T21:37:20Z |
Split test_categorical into subpackage (#18497) | diff --git a/pandas/tests/categorical/__init__.py b/pandas/tests/categorical/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/categorical/common.py b/pandas/tests/categorical/common.py
new file mode 100644
index 0000000000000..9462482553ed8
--- /dev/null
+++ b/pandas/tests/c... | - [X] closes #18497
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Speaking to the methodology here, I created separate files mirroring what was provided in the other test packages. Within each file, there is one class for standard categorical ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18508 | 2017-11-26T23:54:12Z | 2017-12-08T00:25:37Z | 2017-12-08T00:25:36Z | 2017-12-12T15:41:30Z |
Add nrows parameter to pandas.read_excel() | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index c3a0e3599a0f9..32b548e5f32f1 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -135,7 +135,7 @@ Other Enhancements
- Improved wording of ``ValueError`` raised in :func:`read_csv` when the ``usecols`... | - [x] closes #16645
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I was working on this a few months back, but got busy. Apologies. I'm free until January so thought I'd pick this back up.
### Changes
* Added code for `nrows` parameter (w... | https://api.github.com/repos/pandas-dev/pandas/pulls/18507 | 2017-11-26T18:32:18Z | 2017-12-09T15:12:35Z | 2017-12-09T15:12:35Z | 2018-01-20T04:25:12Z |
TST: move gbq back to 3.5 build and remove from BUILD_TEST | diff --git a/ci/requirements-3.5.pip b/ci/requirements-3.5.pip
index 0d9e44cf39fa4..c9565f2173070 100644
--- a/ci/requirements-3.5.pip
+++ b/ci/requirements-3.5.pip
@@ -1 +1,2 @@
xarray==0.9.1
+pandas_gbq
diff --git a/ci/requirements-3.6_BUILD_TEST.pip b/ci/requirements-3.6_BUILD_TEST.pip
index a0fc77c40bc00..f4617133... | https://api.github.com/repos/pandas-dev/pandas/pulls/18506 | 2017-11-26T16:22:57Z | 2017-11-26T21:46:51Z | 2017-11-26T21:46:51Z | 2017-12-11T20:22:28Z | |
fix missing arg in timestamp asvs | diff --git a/asv_bench/benchmarks/timestamp.py b/asv_bench/benchmarks/timestamp.py
index b8ef309e6a464..fc5e6dc8c06d6 100644
--- a/asv_bench/benchmarks/timestamp.py
+++ b/asv_bench/benchmarks/timestamp.py
@@ -13,55 +13,55 @@ class TimestampProperties(object):
def setup(self, tz):
self.ts = Timestamp('2017... | Pretty good bet that I broke this a little while ago... | https://api.github.com/repos/pandas-dev/pandas/pulls/18503 | 2017-11-26T05:06:32Z | 2017-11-26T15:08:20Z | 2017-11-26T15:08:20Z | 2017-11-27T12:26:21Z |
CLN: ASV eval benchmark | diff --git a/asv_bench/benchmarks/eval.py b/asv_bench/benchmarks/eval.py
index 6f33590ee9e33..fd18b3f21cf45 100644
--- a/asv_bench/benchmarks/eval.py
+++ b/asv_bench/benchmarks/eval.py
@@ -1,4 +1,4 @@
-from .pandas_vb_common import *
+import numpy as np
import pandas as pd
try:
import pandas.core.computation.exp... | - Added `np.random.seed(1234)` in setup classes where random data is created xref #8144
- Ran flake8 and replaced star imports
- Removed some initialization of variables within the `time_*` methods
```
asv run -b ^eval
[ 0.00%] ·· Benchmarking conda-py3.6-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-py... | https://api.github.com/repos/pandas-dev/pandas/pulls/18500 | 2017-11-26T03:32:09Z | 2017-11-26T15:00:32Z | 2017-11-26T15:00:32Z | 2017-11-27T17:31:13Z |
CLN: ASV frame_ctor benchmark | diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py
index 2ee5f5da7a84a..5fad7b682c2ed 100644
--- a/asv_bench/benchmarks/frame_ctor.py
+++ b/asv_bench/benchmarks/frame_ctor.py
@@ -1,32 +1,33 @@
-from .pandas_vb_common import *
+import numpy as np
+import pandas.util.testing as tm
+from ... | - Added `np.random.seed(1234)` in setup classes where random data is created xref #8144
- Ran flake8 and replaced star imports (but `from pandas.core.datetools import *` might need to be kept for compat?)
- `time_frame_ctor_nested_dict_int64` was using `self.data` instead of `self.data2`
- Moved the class `fra... | https://api.github.com/repos/pandas-dev/pandas/pulls/18499 | 2017-11-26T03:16:41Z | 2017-11-26T15:01:54Z | 2017-11-26T15:01:54Z | 2017-11-27T03:21:45Z |
Construction of Series from dict containing NaN as key | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 4a27bf54de695..411583404a32d 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -68,6 +68,7 @@ Other API Changes
- :func:`Series.astype` and :func:`Index.astype` with an incompatible dtype will now... | - [x] closes #18480
closes #18515
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This is also a prerequisite for fixing #18455 (which is a prerequisite for fixing #18460 ). The workaround to #18485 is annoying, but it is easy to remove it wh... | https://api.github.com/repos/pandas-dev/pandas/pulls/18496 | 2017-11-26T01:52:58Z | 2017-12-01T19:02:43Z | 2017-12-01T19:02:42Z | 2017-12-01T20:14:42Z |
Improved description of seaborn | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index f7d1edff15cfb..8ed647c2a19bc 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -53,6 +53,18 @@ the latest web technologies. Its goal is to provide elegant, concise constructio
graphics in the style of Protovis/D3, while delive... | The pandas docs send a surprising amount of traffic towards seaborn, but
I've never thought that the existing description communicates the
goals/advantages of seaborn all that well. Please consider this revised
copy.
I also swapped the ordering of seaborn/py-ggplot, because it looks like
that package has stalled... | https://api.github.com/repos/pandas-dev/pandas/pulls/18495 | 2017-11-26T01:24:22Z | 2017-11-26T15:13:25Z | 2017-11-26T15:13:25Z | 2017-12-11T20:22:34Z |
parametrize offsets tests | diff --git a/asv_bench/benchmarks/offset.py b/asv_bench/benchmarks/offset.py
new file mode 100644
index 0000000000000..ea826e8270ace
--- /dev/null
+++ b/asv_bench/benchmarks/offset.py
@@ -0,0 +1,239 @@
+# -*- coding: utf-8 -*-
+from datetime import datetime
+
+import numpy as np
+
+import pandas as pd
+from pandas impo... | This began as part of #18489 and quickly became huge and tedious. Merits separating out and getting out of the way.
- Move Year, Quarter, and Month offset test cases to a dedicated file
- Implement pytest.mark.parametrize in very-nearly all the remaining places. | https://api.github.com/repos/pandas-dev/pandas/pulls/18494 | 2017-11-26T00:43:35Z | 2017-11-26T15:06:09Z | 2017-11-26T15:06:09Z | 2017-12-08T19:40:00Z |
CI: remove pandas-gbq from 3.5 build to avoid conflicts with 3.6 build-test | diff --git a/ci/requirements-3.5.pip b/ci/requirements-3.5.pip
index 6e4f7b65f9728..0d9e44cf39fa4 100644
--- a/ci/requirements-3.5.pip
+++ b/ci/requirements-3.5.pip
@@ -1,2 +1 @@
xarray==0.9.1
-pandas-gbq
| https://api.github.com/repos/pandas-dev/pandas/pulls/18492 | 2017-11-25T23:21:07Z | 2017-11-26T00:30:34Z | 2017-11-26T00:30:34Z | 2017-12-11T20:22:37Z | |
COMPAT: map infers all-nan / empty correctly | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 4ae3d9be04aa7..9f59ea2f2a1f0 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -75,7 +75,7 @@ Other API Changes
- :class:`CacheableOffset` and :class:`WeekDay` are no longer available in the ``panda... | xref #18482 | https://api.github.com/repos/pandas-dev/pandas/pulls/18491 | 2017-11-25T23:05:08Z | 2017-11-26T15:14:52Z | 2017-11-26T15:14:52Z | 2017-11-27T01:39:00Z |
Implement business_start/end cases for shift_months | diff --git a/asv_bench/benchmarks/offset.py b/asv_bench/benchmarks/offset.py
index ea826e8270ace..849776bf9a591 100644
--- a/asv_bench/benchmarks/offset.py
+++ b/asv_bench/benchmarks/offset.py
@@ -38,6 +38,25 @@ def time_apply_series(self, param):
self.ser + self.offset
+class OnOffset(object):
+ goal_t... | Unifies `apply_index` implementations for MonthEnd/MonthBegin, plus extends them to BMonthEnd and BMonthBegin.
Unifies `onOffset` implementations for QuarterEnd/BQuarterEnd, plus extends them to QuarterBegin/BQuarterBegin.
Implements a `cdef` version of `monthrange`. | https://api.github.com/repos/pandas-dev/pandas/pulls/18489 | 2017-11-25T21:27:20Z | 2017-11-27T00:59:27Z | 2017-11-27T00:59:27Z | 2017-12-08T19:38:27Z |
Fix tzaware dates mismatch but no exception raised | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 637ccf0603e0f..db1f685cb16f7 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -64,7 +64,7 @@ Conversion
- Bug in :class:`DatetimeIndex` subtracting datetimelike from DatetimeIndex could fail to ove... | - [x] closes #18431
- [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/18488 | 2017-11-25T19:31:14Z | 2017-11-26T15:19:14Z | 2017-11-26T15:19:14Z | 2017-12-11T20:11:08Z |
BUG: Fix the un-pickleable plot with DatetimeIndex | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 637ccf0603e0f..33c4aa72c7fd6 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -93,7 +93,7 @@ I/O
Plotting
^^^^^^^^
--
+- Bug in ``DataFrame.plot()`` and ``Series.plot()`` with :class:`DatetimeIn... | - [x] closes #18439
- [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/18486 | 2017-11-25T17:30:22Z | 2017-12-06T11:26:47Z | 2017-12-06T11:26:47Z | 2017-12-11T20:20:54Z |
BUG: Fix inaccurate rolling.var calculation | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 51fd3b1076ade..976f3524e3c71 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -103,7 +103,7 @@ Groupby/Resample/Rolling
- Bug in ``DataFrame.resample(...).apply(...)`` when there is a callable that... | - [x] closes #18430
- [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/18481 | 2017-11-25T13:37:59Z | 2017-11-25T21:13:15Z | 2017-11-25T21:13:14Z | 2017-12-11T20:22:45Z |
CLN: ASV ctors benchmark | diff --git a/asv_bench/benchmarks/ctors.py b/asv_bench/benchmarks/ctors.py
index b5694a3a21502..2c9c382e2db86 100644
--- a/asv_bench/benchmarks/ctors.py
+++ b/asv_bench/benchmarks/ctors.py
@@ -1,24 +1,28 @@
-from .pandas_vb_common import *
+import numpy as np
+from pandas import DataFrame, Series, Index, DatetimeIndex,... | I think this these asvs should be enhanced or reorganized to other files in the future, but in the meantime:
- Added `np.random.seed(1234)` in setup classes where random data is created xref #8144
- Ran flake8 and replaced star imports
```
$ asv run -q -b ^ctors
[ 0.00%] ·· Benchmarking conda-py3.6-Cython-m... | https://api.github.com/repos/pandas-dev/pandas/pulls/18479 | 2017-11-25T01:57:55Z | 2017-11-25T14:31:39Z | 2017-11-25T14:31:38Z | 2017-11-25T18:23:37Z |
DEPR: deprecate publicfacing .asobject | diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py
index 7697c3b9d3840..bbd60e0d5cd81 100644
--- a/asv_bench/benchmarks/index_object.py
+++ b/asv_bench/benchmarks/index_object.py
@@ -12,7 +12,7 @@ def setup(self):
if (self.rng.dtype == object):
self.idx_rng = ... | - [ x] xref #18262
- [x ] tests added / passedPR
- [ x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ x] whatsnew entry
Deprecate ``Series.asobject`` and ``DateTimeIndex.asobject`` as public-facing attributes and make them private as per discussion in #18262.
@ManrajGrover please note that... | https://api.github.com/repos/pandas-dev/pandas/pulls/18477 | 2017-11-24T23:17:17Z | 2017-11-30T01:10:04Z | null | 2017-12-11T08:08:56Z |
TYPO: IntervalIndex.symmetric_differnce -> IntervalIndex.symmetric_difference | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 4ae3d9be04aa7..be23e31279d0c 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -114,7 +114,7 @@ Performance Improvements
- The overriden ``Timedelta`` properties of days, seconds and microseconds ha... | - [X] closes #18475
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Before this, `IntervalIndex.symmetric_difference` hit the base class implementation, and appeared to generally be working, albeit without full error handling and with worse perf... | https://api.github.com/repos/pandas-dev/pandas/pulls/18476 | 2017-11-24T22:59:55Z | 2017-11-26T15:05:20Z | 2017-11-26T15:05:19Z | 2017-12-04T20:43:03Z |
Make khash its own extension | diff --git a/pandas/_libs/src/khash.pxd b/pandas/_libs/khash.pxd
similarity index 98%
rename from pandas/_libs/src/khash.pxd
rename to pandas/_libs/khash.pxd
index ba9a3c70097b2..b1d965c3618cd 100644
--- a/pandas/_libs/src/khash.pxd
+++ b/pandas/_libs/khash.pxd
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+# cython: profil... | The path towards cythonize continues. | https://api.github.com/repos/pandas-dev/pandas/pulls/18472 | 2017-11-24T21:24:41Z | 2017-11-29T12:58:12Z | 2017-11-29T12:58:12Z | 2017-12-08T19:38:26Z |
WIP: Pass missing tz arg in _parsed_string_to_bounds | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 111ba0c92aa9b..e6614e289cbbd 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -1338,28 +1338,28 @@ def _parsed_string_to_bounds(self, reso, parsed):
59, 9... | The WIP part is finding a test case that fails under the status quo.
| https://api.github.com/repos/pandas-dev/pandas/pulls/18471 | 2017-11-24T20:31:31Z | 2017-11-28T11:36:48Z | null | 2018-01-23T04:40:59Z |
VIS: let PeriodConverter handle datetime64 data | diff --git a/pandas/plotting/_converter.py b/pandas/plotting/_converter.py
index 2a45e20dda4cc..66ee7fa98491f 100644
--- a/pandas/plotting/_converter.py
+++ b/pandas/plotting/_converter.py
@@ -244,7 +244,7 @@ def _convert_1d(values, units, axis):
if not hasattr(axis, 'freq'):
raise TypeError('Axis... | xref https://github.com/pandas-dev/pandas/issues/9053 (but doesn't solve it) | https://api.github.com/repos/pandas-dev/pandas/pulls/18468 | 2017-11-24T15:14:27Z | 2018-01-23T11:20:10Z | 2018-01-23T11:20:10Z | 2018-01-23T11:20:13Z |
Revert "CI: temp skip geopandas downstream tests (GH18456)" | diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py
index 1ec25bc8bb295..0f0abd8cd3400 100644
--- a/pandas/tests/test_downstream.py
+++ b/pandas/tests/test_downstream.py
@@ -92,7 +92,6 @@ def test_pandas_datareader():
pandas_datareader.get_data_google('AAPL')
-@pytest.mark.skip(reaso... | Reverts pandas-dev/pandas#18457
Closes https://github.com/pandas-dev/pandas/issues/18456 | https://api.github.com/repos/pandas-dev/pandas/pulls/18466 | 2017-11-24T10:16:55Z | 2017-11-24T11:47:05Z | 2017-11-24T11:47:05Z | 2017-11-24T13:27:15Z |
CLN: ASV categoricals benchmark | diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py
index a5bb5e790dec1..df41a2afad1f8 100644
--- a/asv_bench/benchmarks/categoricals.py
+++ b/asv_bench/benchmarks/categoricals.py
@@ -1,4 +1,6 @@
-from .pandas_vb_common import *
+import numpy as np
+import pandas as pd
+import panda... | - Split classes from `Categoricals/2/3` --> `Concat`, `ValueCounts`, `Rank`, `Repr`, `SetCategories`, and `Constructor`
- Utilized `params` and `param_names` for `ValueCounts`
- Added `np.random.seed(1234)` in setup classes where random data is created xref #8144
- Ran flake8 and replaced star imports
```
... | https://api.github.com/repos/pandas-dev/pandas/pulls/18465 | 2017-11-24T07:55:01Z | 2017-11-25T14:37:00Z | 2017-11-25T14:37:00Z | 2017-11-25T18:25:05Z |
Propogating NaN values when using str.split (#18450) | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 637ccf0603e0f..576b22fb990b1 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -138,9 +138,13 @@ Categorical
- ``CategoricalIndex`` can now correctly take a ``pd.api.types.CategoricalDtype`` as its ... | - [X] closes #18450
- [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/18462 | 2017-11-24T02:49:25Z | 2017-11-25T21:51:14Z | 2017-11-25T21:51:14Z | 2017-12-11T20:22:40Z |
Improve DatetimeIndex.time performance | diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py
index b3996739e33f7..fe282df25e9c5 100644
--- a/asv_bench/benchmarks/timeseries.py
+++ b/asv_bench/benchmarks/timeseries.py
@@ -85,7 +85,7 @@ def time_dti_tz_factorize(self):
self.dti_tz.factorize()
def time_dti_time(se... | xref #18058
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Speed up DatetimeIndex.time in a similar way to DatetimeIndex.date. Not sure whether the timezone information should be passed to `ints_to_pydatetime()` or not. | https://api.github.com/repos/pandas-dev/pandas/pulls/18461 | 2017-11-24T02:39:30Z | 2017-12-10T16:22:45Z | 2017-12-10T16:22:45Z | 2017-12-10T19:49:20Z |
BUG: avoid unnecessary casting when unstacking index with unused levels | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index dc305f36f32ec..dc3df2f16c6b3 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -444,6 +444,8 @@ Reshaping
^^^^^^^^^
- Bug in :func:`DataFrame.stack` which fails trying to sort mixed type levels u... | closes #17845
closes #18562
- [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/18460 | 2017-11-23T23:08:03Z | 2018-01-16T00:18:49Z | 2018-01-16T00:18:48Z | 2018-01-17T16:43:24Z |
CLN/DEPR: remove pd.ordered_merge | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 92d9123d2cf4c..9716aab69143d 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -95,6 +95,7 @@ Removal of prior version deprecations/changes
- The ``levels`` and ``labels`` attributes of a ``MultiInd... | - [ x] xref #13358
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ x] whatsnew entry
``pd.ordered_merge`` was deprecated in #13358 (pandas v.0.19). This PR removes it from the code base. | https://api.github.com/repos/pandas-dev/pandas/pulls/18459 | 2017-11-23T22:50:44Z | 2017-11-24T20:03:18Z | 2017-11-24T20:03:18Z | 2017-11-24T20:32:20Z |
DEPR: Deprecate NDFrame.as_matrix | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 7229bd38fffa9..f1354161f1608 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -87,7 +87,7 @@ Deprecations
~~~~~~~~~~~~
- ``Series.from_array`` and ``SparseSeries.from_array`` are deprecated. Use... | - [x ] xref #18262
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ x] whatsnew entry
Deprecating ``NDFrame.as_matrix`` as per discussion in #18262. | https://api.github.com/repos/pandas-dev/pandas/pulls/18458 | 2017-11-23T22:21:30Z | 2017-11-26T15:04:04Z | 2017-11-26T15:04:04Z | 2017-11-26T15:07:25Z |
CI: temp skip geopandas downstream tests (GH18456) | diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py
index 0f0abd8cd3400..1ec25bc8bb295 100644
--- a/pandas/tests/test_downstream.py
+++ b/pandas/tests/test_downstream.py
@@ -92,6 +92,7 @@ def test_pandas_datareader():
pandas_datareader.get_data_google('AAPL')
+@pytest.mark.skip(reaso... | xref https://github.com/pandas-dev/pandas/issues/18456 | https://api.github.com/repos/pandas-dev/pandas/pulls/18457 | 2017-11-23T21:45:44Z | 2017-11-23T21:46:10Z | 2017-11-23T21:46:10Z | 2017-11-23T21:46:15Z |
PERF: refactor Series().str.get_dummies | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 90032a692fd15..76e37fb60c2a1 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -107,6 +107,7 @@ Performance Improvements
- The overriden ``Timedelta`` properties of days, seconds and microseconds ha... | - [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
No issue to link. No new tests.
Since `str_get_dummies` always receives just `Series` of strings, it's safe to transform it to python-native data structures and cut back some performance overhead. Works ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18454 | 2017-11-23T21:22:53Z | 2017-11-25T14:29:18Z | null | 2017-11-25T14:29:18Z |
Remove unused from datetime.pxd, check for fastpath in ensure_datetime64ns | diff --git a/pandas/_libs/src/datetime.pxd b/pandas/_libs/src/datetime.pxd
index 3fc3625a06634..0624779e50497 100644
--- a/pandas/_libs/src/datetime.pxd
+++ b/pandas/_libs/src/datetime.pxd
@@ -5,7 +5,6 @@ from cpython cimport PyUnicode_Check, PyUnicode_AsASCIIString
cdef extern from "numpy/ndarrayobject.h":
- c... | Still a hodgepodge, but a somewhat smaller hodgepodge.
| https://api.github.com/repos/pandas-dev/pandas/pulls/18453 | 2017-11-23T16:59:55Z | 2017-11-24T20:05:55Z | 2017-11-24T20:05:55Z | 2017-11-24T20:33:55Z |
BLD: since we already use setuptools, let's remove the optional logic… | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 09b504cac5ed4..c88074258cd00 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -245,4 +245,5 @@ Other
- Fixed a bug where creating a Series from an array that contains both tz-naive and tz-aware val... | … in setup.py (GH18113).
- [x] closes #18113
- [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/18448 | 2017-11-23T12:57:50Z | 2017-12-03T18:04:25Z | null | 2017-12-03T18:05:19Z |
More tslibs TODOS: small optimizations, trim namespaces | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index 8fdded0bcb07a..8ae13afd5afb6 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -7,7 +7,7 @@ from cpython cimport (PyObject_RichCompareBool, PyObject_RichCompare,
import numpy as np
ci... | A few methods of `Timedelta` and `Timestamp` that don't need to be user-facing are changed from `cpdef` to `cdef`. To make the wheels turn, `Timestamp` methods that _call_ those methods are moved from `Timestamp` to `_Timestamp`.
Stronger typing for `_Timestamp. _get_start_end_field` and a couple others.
`@cytho... | https://api.github.com/repos/pandas-dev/pandas/pulls/18446 | 2017-11-23T04:12:57Z | 2017-11-25T16:59:33Z | null | 2017-12-08T19:40:03Z |
CLN: ASV binary ops benchmark | diff --git a/asv_bench/benchmarks/binary_ops.py b/asv_bench/benchmarks/binary_ops.py
index 0ca21b929ea17..429965c06cb48 100644
--- a/asv_bench/benchmarks/binary_ops.py
+++ b/asv_bench/benchmarks/binary_ops.py
@@ -1,4 +1,5 @@
-from .pandas_vb_common import *
+import numpy as np
+from pandas import DataFrame, Series, dat... | - Utilized `params` of timezones in the `Timeseries` class instead of creating a subclass of `TimeseriesTZ`
- Division was being tested instead of modulo in `time_frame_int_mod` and `time_frame_float_mod`
- Added `np.random.seed(1234)` in setup classes where random data is created xref #8144
- Renamed `time_ti... | https://api.github.com/repos/pandas-dev/pandas/pulls/18444 | 2017-11-23T03:46:09Z | 2017-11-25T14:37:53Z | 2017-11-25T14:37:53Z | 2017-12-20T02:04:44Z |
Cross off a few tslibs-TODOs | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 956aeaf39b021..2ec4b5cf19b72 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -929,19 +929,6 @@ def write_csv_rows(list data, ndarray data_index,
# ------------------------------------------------------------------------------
# Groupby-rel... | This is a hodge-podge addressing a few of the items in #17652. Individual commits should be item-specific(ish).
- remove unused lib.arrmap
- de-privatize _checknull_with_nat
- fix a couple of C warnings caused by timedelta_struct
- remove Period._comparables
| https://api.github.com/repos/pandas-dev/pandas/pulls/18443 | 2017-11-23T03:42:00Z | 2017-11-25T15:10:24Z | 2017-11-25T15:10:24Z | 2017-12-08T19:40:01Z |
CLN: ASV attrs_caching benchmark | diff --git a/asv_bench/benchmarks/attrs_caching.py b/asv_bench/benchmarks/attrs_caching.py
index b7610037bed4d..3c091be7a8424 100644
--- a/asv_bench/benchmarks/attrs_caching.py
+++ b/asv_bench/benchmarks/attrs_caching.py
@@ -1,4 +1,5 @@
-from .pandas_vb_common import *
+import numpy as np
+from pandas import DataFrame
... | - Added `np.random.seed(1234)` in setup classes where random data is created xref #8144
- Ran flake 8 and replaced star imports (with pep8 in mind, I think we should avoid `from .pandas_vb_common import *`)
```
$asv run -q -b ^attrs_caching
[ 33.33%] ··· Running attrs_caching.CacheReadonly.time_cache_readonly ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18441 | 2017-11-23T02:53:19Z | 2017-11-23T15:54:43Z | 2017-11-23T15:54:43Z | 2017-11-24T00:41:33Z |
BUG: in Python3 MultiIndex.from_tuples cannot take "zipped" tuples | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 4bdff1355874e..a32035d0d906f 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -140,6 +140,7 @@ Indexing
- Bug in :func:`Series.truncate` which raises ``TypeError`` with a monotonic ``PeriodIndex`` ... | MultiIndex.from_tuples accept zipped tuples in python 3. Ensures compatibility
between 2 and 3.
- [x] closes #18434
- [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/18440 | 2017-11-23T02:43:00Z | 2017-11-25T20:56:49Z | 2017-11-25T20:56:49Z | 2017-11-25T22:13:05Z |
REF: smarter NaN handling in remove_unused_levels() | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index cc99505b53bf5..81d892fba0fe2 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1365,31 +1365,29 @@ def remove_unused_levels(self):
new_labels = []
changed = False
- for idx, (lev, lab... | - [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Sorry for the bad timing @jreback , only after you merged #18426 this simpler way to proceed came to my mind.
| https://api.github.com/repos/pandas-dev/pandas/pulls/18438 | 2017-11-23T00:05:02Z | 2017-11-23T15:47:48Z | 2017-11-23T15:47:48Z | 2017-11-23T21:41:28Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.