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 |
|---|---|---|---|---|---|---|---|
PERF: sort_values speedup for multiple columns with random numeric values | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index 4cecf12a27042..4bdf033d6d5c6 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -2,7 +2,7 @@
import numpy as np
import pandas.util.testing as tm
from pandas import (DataFram... | Continue work on #17141.
Speedup achieved for sorting by multiple columns: lexsort over multiple columns
replaced with mergesort of columns in reverse order than specified in "by"
argument of DataFrame.sort_values().
Issues:
- only works for numerical data
- only random enough data achieve sorting speedup (no fac... | https://api.github.com/repos/pandas-dev/pandas/pulls/19237 | 2018-01-14T08:03:40Z | 2018-03-25T11:38:27Z | null | 2018-03-25T11:38:27Z |
CI: Check ASV for failed benchmarks | diff --git a/.travis.yml b/.travis.yml
index bd5cac8955c8d..4cbe7f86bd2fa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -73,6 +73,10 @@ matrix:
env:
- JOB="3.6_NUMPY_DEV" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
# In allow_failures
+ - dist: trusty
+ env:
+ ... | closes #19518
xref #19104
Not sure if this should belong in `ci/lint.sh`, but testing the possibility of running the asv benchmarks on ci for failed benchmarks. | https://api.github.com/repos/pandas-dev/pandas/pulls/19236 | 2018-01-14T07:25:32Z | 2018-02-08T01:17:25Z | 2018-02-08T01:17:25Z | 2018-02-08T07:36:06Z |
Doc: Adds example of joining a series to a dataframe. | diff --git a/doc/source/merging.rst b/doc/source/merging.rst
index ebade853313ab..6c8061f5cbdfd 100644
--- a/doc/source/merging.rst
+++ b/doc/source/merging.rst
@@ -714,6 +714,31 @@ either the left or right tables, the values in the joined table will be
labels=['left', 'right'], vertical=False);
plt.clos... | - [X] closes: #12550
| https://api.github.com/repos/pandas-dev/pandas/pulls/19235 | 2018-01-14T03:12:59Z | 2018-11-03T05:28:27Z | null | 2018-11-03T05:28:27Z |
Adding missing sphinx dependencies to build the documentation | diff --git a/ci/environment-dev.yaml b/ci/environment-dev.yaml
index c72abd0c19516..d11bee97dbe5e 100644
--- a/ci/environment-dev.yaml
+++ b/ci/environment-dev.yaml
@@ -4,8 +4,11 @@ channels:
- conda-forge
dependencies:
- Cython
+ - ipython
+ - matplotlib
- NumPy
- moto
+ - nbsphinx
- pytest>=3.1
... | Seems like the documentation fails to build in a clean environement (with `make.py html`) because sphinx and its sphinx ipython directive have some dependencies that are not in the dev requirements. These dependencies are.
* ipython
* nbsphinx
* matplotlib
Next are the crashes:
```
Traceback (most recent call... | https://api.github.com/repos/pandas-dev/pandas/pulls/19234 | 2018-01-14T01:07:39Z | 2018-01-14T01:40:23Z | null | 2018-01-14T01:40:23Z |
COMPAT: properly handle objects of datetimelike in astype_nansafe | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 672e60c9dcde5..5155662d2f97d 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -649,10 +649,12 @@ def astype_nansafe(arr, dtype, copy=True):
if issubclass(dtype.type, text_type):
# in Py3 that's str, in Py... | re-close #19116
| https://api.github.com/repos/pandas-dev/pandas/pulls/19232 | 2018-01-13T23:07:50Z | 2018-01-14T14:10:23Z | 2018-01-14T14:10:23Z | 2018-01-14T14:10:49Z |
ENH: Add IntervalDtype support to IntervalIndex.astype | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index a0205a8d64cb7..6fe15133914da 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -202,6 +202,7 @@ Other Enhancements
- ``Resampler`` objects now have a functioning :attr:`~pandas.core.resample.Resampl... | - [X] closes #19197
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Summary:
- Added support for `IntervalIndex.astype(IntervalDtype(...))`
- Allows for subtype conversion, e.g. `interval[int64]` --> `interval[float64]`
- Created a... | https://api.github.com/repos/pandas-dev/pandas/pulls/19231 | 2018-01-13T21:46:52Z | 2018-01-14T21:27:25Z | 2018-01-14T21:27:25Z | 2018-01-15T18:26:12Z |
Fix no raise dup index when using drop with axis=0 | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 14949267fc37d..450afa01a576e 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -272,6 +272,7 @@ Other API Changes
- :class:`IntervalIndex` and ``IntervalDtype`` no longer support categorical, object... | - [x] closes #19186
- [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/19230 | 2018-01-13T19:58:42Z | 2018-01-18T00:53:08Z | 2018-01-18T00:53:07Z | 2018-01-18T16:59:24Z |
DOC: Exposed arguments in plot.kde | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 66e88e181ac0f..5feebe3ba2a22 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -536,7 +536,7 @@ Plotting
- :func: `DataFrame.plot` now raises a ``ValueError`` when the ``x`` or ``y`` argument is i... | The documentation for `plot.kde` did not show the `bw_method` and `ind` arguments, which are specific to `plot.kde` (and `plot.density`, which refers to the same method).
There is also a change in the actual code, and a corresponding test added. I added an option for `ind` to be an integer number of sample points, i... | https://api.github.com/repos/pandas-dev/pandas/pulls/19229 | 2018-01-13T18:47:14Z | 2018-02-02T12:50:47Z | 2018-02-02T12:50:47Z | 2018-02-02T12:50:54Z |
BUG/TST: assure conversions of datetimelikes for object, numeric dtypes | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 3a3c2bf0c5ae4..a0205a8d64cb7 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -385,6 +385,11 @@ Conversion
- Bug in localization of a naive, datetime string in a ``Series`` constructor with a ``dat... | closes #19223
closes #12425 | https://api.github.com/repos/pandas-dev/pandas/pulls/19224 | 2018-01-13T15:43:16Z | 2018-01-13T18:18:43Z | 2018-01-13T18:18:42Z | 2018-01-13T19:50:00Z |
move DatetimeBlock and DatetimeTZBlock adjacent to DatetimeLikeBlockMixin | diff --git a/pandas/core/internals.py b/pandas/core/internals.py
index 5a4778ae4e629..af65c1c57e0e2 100644
--- a/pandas/core/internals.py
+++ b/pandas/core/internals.py
@@ -1948,35 +1948,52 @@ def get_values(self, dtype=None):
return self.values
-class TimeDeltaBlock(DatetimeLikeBlockMixin, IntBlock):
+cla... | Pure cut/paste. | https://api.github.com/repos/pandas-dev/pandas/pulls/19221 | 2018-01-13T07:26:55Z | 2018-01-13T16:11:01Z | null | 2018-02-11T21:59:17Z |
Adding (DEPRECATED) prefix to deprecated objects summary in the documentation | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 43c7c23c5e20d..8509460f8ca4e 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -16,6 +16,7 @@
import re
import inspect
import importlib
+from sphinx.ext.autosummary import _import_by_name
import warnings
@@ -47,6 +48,10 @@
])
+# numpydoc ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
In #18934, @jorisvandenbossche pointed out that replacing a "manual" DEPRECATED comment at the beginning of the docstrings by the `.. deprecated::` sphinx directive had a drawbac... | https://api.github.com/repos/pandas-dev/pandas/pulls/19220 | 2018-01-13T02:30:19Z | 2018-04-14T13:35:25Z | 2018-04-14T13:35:25Z | 2018-04-15T12:10:57Z |
API: Add compression argument to Series.to_csv | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index a0205a8d64cb7..61d79c943c0e4 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -271,6 +271,7 @@ Other API Changes
- :class:`IntervalIndex` and ``IntervalDtype`` no longer support categorical, object... | - [ ] closes #18958
- [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/19216 | 2018-01-13T00:05:22Z | 2018-01-15T14:11:25Z | 2018-01-15T14:11:24Z | 2018-01-16T19:10:19Z |
Doc: Adds example of exploding lists into columns instead of storing in dataframe cells | diff --git a/doc/source/gotchas.rst b/doc/source/gotchas.rst
index bc490877e190d..b2854670739f4 100644
--- a/doc/source/gotchas.rst
+++ b/doc/source/gotchas.rst
@@ -332,3 +332,91 @@ using something similar to the following:
See `the NumPy documentation on byte order
<https://docs.scipy.org/doc/numpy/user/basics.bytes... | - [X] closes #17027
| https://api.github.com/repos/pandas-dev/pandas/pulls/19215 | 2018-01-12T23:56:49Z | 2018-10-09T04:47:45Z | null | 2018-10-09T04:47:46Z |
Clarify equals method docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index cef1e551f948e..6d1cbdc3785cd 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1047,8 +1047,9 @@ def __invert__(self):
def equals(self, other):
"""
- Determines if two NDFrame objects contain the same elements. ... | Make explicit that equals method requires that columns have the same dtypes but not that indices have the same types (e.g. `pd.DataFrame({1:[0], 0:[1]}).equals(pd.DataFrame({1.0:[0], 0.0:[1]}))` returns `True` while `pd.DataFrame({1:[0], 0:[1]}, dtype='float32').equals(pd.DataFrame({1:[0], 0:[1]}, dtype='float64'))` re... | https://api.github.com/repos/pandas-dev/pandas/pulls/19213 | 2018-01-12T19:36:22Z | 2018-08-22T13:46:52Z | null | 2018-08-22T13:46:52Z |
DOC: list default compression for to_parquet | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a8c4053850548..974d5bc1ff113 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1670,8 +1670,8 @@ def to_parquet(self, fname, engine='auto', compression='snappy',
Parquet reader library to use. If 'auto', then the option
... | follow-up on GH19131
| https://api.github.com/repos/pandas-dev/pandas/pulls/19212 | 2018-01-12T19:30:10Z | 2018-01-13T14:47:36Z | 2018-01-13T14:47:36Z | 2018-01-13T14:47:50Z |
DOC: Fix documentation for read_csv's mangle_dupe_cols (GH19203) | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 3e1619d6e1578..b15d3918eb569 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -149,7 +149,7 @@ squeeze : boolean, default ``False``
prefix : str, default ``None``
Prefix to add to column numbers when no header, e.g. 'X' for X0, X1, ...
mangle_dupe_c... | - [ x] closes #19203 | https://api.github.com/repos/pandas-dev/pandas/pulls/19208 | 2018-01-12T14:32:43Z | 2018-01-15T14:17:42Z | 2018-01-15T14:17:42Z | 2018-01-15T14:17:50Z |
CLN: flake8 cleanup of core.internals | diff --git a/pandas/core/internals.py b/pandas/core/internals.py
index 5a4778ae4e629..0eda1cf0c5f75 100644
--- a/pandas/core/internals.py
+++ b/pandas/core/internals.py
@@ -191,6 +191,13 @@ def fill_value(self):
def mgr_locs(self):
return self._mgr_locs
+ @mgr_locs.setter
+ def mgr_locs(self, new_... | - [ ] 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/19202 | 2018-01-12T06:29:15Z | 2018-01-13T18:56:00Z | null | 2018-02-11T21:59:16Z |
DOC: Update ASV benchmark example in contributing.rst | diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst
index dc07104f64c65..cdbbad6eb75d6 100644
--- a/doc/source/contributing.rst
+++ b/doc/source/contributing.rst
@@ -858,9 +858,9 @@ takes a regular expression. For example, this will only run tests from a
If you want to only run a specific group of ... | Updating the ASV example based on the cleaning that was done in `asv_bench/benchmarks/groupby.py` | https://api.github.com/repos/pandas-dev/pandas/pulls/19201 | 2018-01-12T06:02:19Z | 2018-01-12T08:40:48Z | 2018-01-12T08:40:48Z | 2018-01-12T18:00:32Z |
CI: move conda build tests back to allowed failures | diff --git a/.travis.yml b/.travis.yml
index ca1dfcae43e76..bd5cac8955c8d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -49,6 +49,7 @@ matrix:
apt:
packages:
- python-gtk2
+ # In allow_failures
- dist: trusty
env:
- JOB="3.5_CONDA_BUILD_TEST" TEST_ARGS="--skip-slow... | https://api.github.com/repos/pandas-dev/pandas/pulls/19196 | 2018-01-12T00:18:47Z | 2018-01-12T00:30:19Z | 2018-01-12T00:30:19Z | 2018-01-13T19:49:31Z | |
Hand written ISO parser for Timedelta construction | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index 8dba8c15f0b81..b2c9c464c7cbf 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
# cython: profile=False
import collections
-import re
import sys
... | - [X] closes #19103
- [X] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
```
Running 16 total benchmarks (2 commits * 1 environments * 8 benchmarks)
[ 0.00%] · For pandas commit hash 76475dd8:
[ 0.00%] ·· Building for conda-py3.6-Cython-matplot... | https://api.github.com/repos/pandas-dev/pandas/pulls/19191 | 2018-01-11T21:06:39Z | 2018-01-12T11:36:14Z | 2018-01-12T11:36:14Z | 2018-02-27T01:32:15Z |
CLN: unify logic for form_blocks and make_blocks | diff --git a/pandas/core/internals.py b/pandas/core/internals.py
index 5a4778ae4e629..079f3113dc2da 100644
--- a/pandas/core/internals.py
+++ b/pandas/core/internals.py
@@ -2914,35 +2914,52 @@ def sparse_reindex(self, new_index):
placement=self.mgr_locs)
+def get_block_typ... | In the background part of the intention here is to make things like #19174 easier.
- [x] closes #19179
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/19189 | 2018-01-11T18:57:46Z | 2018-01-18T11:09:49Z | 2018-01-18T11:09:49Z | 2018-02-11T21:59:01Z |
DOC: Improve DataFrame.select_dtypes examples | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a8c4053850548..43df2c48fcf58 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2417,17 +2417,18 @@ def select_dtypes(self, include=None, exclude=None):
Notes
-----
- * To select all *numeric* types use the numpy dty... | Greetings,
This is a minor change in the ``DataFrame.select_dtypes`` doc.
- Add formatting (such as in `np.number`), to illustrate better it is a piece of code.
- Add decimal place to the third column of the example to proper address it is a float column (maybe in the past float numbers didn't show decimal places ... | https://api.github.com/repos/pandas-dev/pandas/pulls/19188 | 2018-01-11T18:53:16Z | 2018-01-12T00:30:38Z | 2018-01-12T00:30:38Z | 2018-01-12T15:48:19Z |
CI: move location of setting non-blocking IO | diff --git a/.travis.yml b/.travis.yml
index 5cc6547968b7d..ca1dfcae43e76 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -95,6 +95,9 @@ matrix:
before_install:
- echo "before_install"
+ # set non-blocking IO on travis
+ # https://github.com/travis-ci/travis-ci/issues/8920#issuecomment-352661024
+ - python -c 'i... | https://api.github.com/repos/pandas-dev/pandas/pulls/19184 | 2018-01-11T11:42:53Z | 2018-01-11T13:21:54Z | 2018-01-11T13:21:54Z | 2018-01-11T13:22:25Z | |
CLN: Remove pandas.util | tools/hashing.py | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 92eeed89ada2a..dc305f36f32ec 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -317,6 +317,7 @@ Removal of prior version deprecations/changes
- The options ``display.line_with`` and ``display.height... | Deprecated in v0.20.0
xref #16223
| https://api.github.com/repos/pandas-dev/pandas/pulls/19181 | 2018-01-11T10:11:58Z | 2018-01-11T11:32:14Z | 2018-01-11T11:32:14Z | 2018-01-11T16:43:17Z |
remove unreachable states, assert they are unreachable just in case | diff --git a/pandas/core/internals.py b/pandas/core/internals.py
index ba90503e3bf40..5a4778ae4e629 100644
--- a/pandas/core/internals.py
+++ b/pandas/core/internals.py
@@ -2933,10 +2933,8 @@ def make_block(values, placement, klass=None, ndim=None, dtype=None,
elif dtype == np.bool_:
klass = BoolB... | No luck so far in tracking down the issue where this was discussed.
- [ ] 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/19180 | 2018-01-11T02:59:16Z | 2018-01-12T00:33:09Z | 2018-01-12T00:33:09Z | 2018-02-11T21:59:18Z |
BUG: assign doesnt cast SparseDataFrame to DataFrame | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index acab9d0bbebf8..72f63a4da0f4d 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -822,6 +822,7 @@ Sparse
- Bug in which creating a ``SparseDataFrame`` from a dense ``Series`` or an unsupported type ra... | The problem here is that a SparseDataFrame that calls assign should cast
to a DataFrame mainly because SparseDataFrames are a special case.
- [x] closes #19163
- [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/19178 | 2018-01-11T02:46:38Z | 2018-02-12T12:06:12Z | 2018-02-12T12:06:12Z | 2018-02-12T12:06:26Z |
Fixed issue with read_json and partially missing MI names | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 3e1619d6e1578..59870ef9e7b0f 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -2228,9 +2228,10 @@ round-trippable manner.
new_df
new_df.dtypes
-Please note that the string `index` is not supported with the round trip
-format, as it is used by d... | - [X] closes #19130
- [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/19177 | 2018-01-11T01:02:49Z | 2018-01-16T00:47:24Z | 2018-01-16T00:47:23Z | 2018-02-27T01:32:16Z |
COMPAT: make astype to datetime/timedelta types more robust | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 5fcb5f09dfae7..4b1cb9c20e465 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -690,7 +690,7 @@ def astype_nansafe(arr, dtype, copy=True):
raise ValueError('Cannot convert non-finite values (NA or inf) to '... | closes #19116 | https://api.github.com/repos/pandas-dev/pandas/pulls/19176 | 2018-01-11T00:37:39Z | 2018-01-11T11:09:13Z | 2018-01-11T11:09:13Z | 2018-01-11T11:09:34Z |
Doc: Add warning to treat group chunks as immutable | diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst
index fecc336049a40..188ca80fbcd11 100644
--- a/doc/source/groupby.rst
+++ b/doc/source/groupby.rst
@@ -941,11 +941,15 @@ that is itself a series, and possibly upcast the result to a DataFrame:
.. warning::
- In the current implementation apply calls ... | - [X] closes #14180
| https://api.github.com/repos/pandas-dev/pandas/pulls/19175 | 2018-01-10T21:42:01Z | 2018-12-02T00:25:58Z | null | 2018-12-02T00:25:58Z |
ENH: Extending Pandas with custom types | diff --git a/.gitignore b/.gitignore
index 0d4e8c6fb75a6..657234a985111 100644
--- a/.gitignore
+++ b/.gitignore
@@ -108,3 +108,4 @@ doc/tmp.sv
doc/source/styled.xlsx
doc/source/templates/
env/
+.mypy_cache
diff --git a/doc/source/developer.rst b/doc/source/developer.rst
index b8bb2b2fcbe2f..9d6d0b8c2ff5a 100644
---... | Adds an interface for 3rd party libraries to define custom array types. When
pandas encounters these objects, we'll resist the temptation to cast them to
`object` dtype.
This isn't near being ready yet, but I wanted to make a PR to get some thoughts
on the general approach / scope. I wouldn't recommend reviewing ... | https://api.github.com/repos/pandas-dev/pandas/pulls/19174 | 2018-01-10T20:30:06Z | 2018-01-30T20:40:49Z | null | 2018-05-02T13:09:41Z |
Split and parametrize test_operators | diff --git a/pandas/tests/frame/test_operators.py b/pandas/tests/frame/test_operators.py
index fd1eb23643c2b..0bc4a7df6a55b 100644
--- a/pandas/tests/frame/test_operators.py
+++ b/pandas/tests/frame/test_operators.py
@@ -28,6 +28,53 @@
_check_mixed_int)
+class TestDataFrameAr... | Orthogonal to #19166 since this does not touch `TestTimedeltaSeriesArithmetic`.
Fix (some) flake8 complaints about 1-letter variable names. | https://api.github.com/repos/pandas-dev/pandas/pulls/19173 | 2018-01-10T19:23:33Z | 2018-01-15T14:52:33Z | 2018-01-15T14:52:33Z | 2018-01-15T19:54:27Z |
CI: pin 2.7 build to numpy 1.13 for the moment | diff --git a/ci/requirements-2.7.build b/ci/requirements-2.7.build
index e24baa98d956e..17d34f3895c64 100644
--- a/ci/requirements-2.7.build
+++ b/ci/requirements-2.7.build
@@ -2,5 +2,5 @@ python=2.7*
python-dateutil=2.5.0
pytz=2013b
nomkl
-numpy
+numpy=1.13*
cython=0.24
diff --git a/ci/requirements-3.6_DOC.build b... | xref #19138 | https://api.github.com/repos/pandas-dev/pandas/pulls/19169 | 2018-01-10T10:53:32Z | 2018-01-10T12:23:38Z | 2018-01-10T12:23:38Z | 2018-01-10T12:23:38Z |
BUG: Creating Index with the `names` argument | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index a5949c62ad913..907c91a742573 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -113,14 +113,18 @@ class Index(IndexOpsMixin, PandasObject):
dtype : NumPy dtype (default: object)
copy : bool
Make a... | - [x] closes #19082
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/19168 | 2018-01-10T10:11:51Z | 2018-02-24T17:30:42Z | null | 2018-02-24T17:30:43Z |
Parametrize tests for Series[timedelta64] integer arithmetic | diff --git a/pandas/tests/series/test_operators.py b/pandas/tests/series/test_operators.py
index dda2918bf7615..783fcddac1280 100644
--- a/pandas/tests/series/test_operators.py
+++ b/pandas/tests/series/test_operators.py
@@ -28,6 +28,11 @@
from .common import TestData
+@pytest.fixture
+def tdser():
+ return Ser... | Breaks up a few big tests, parametrizes, covers cases much more thoroughly including identifying a few new xfails.
- [ ] 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/19166 | 2018-01-10T06:44:58Z | 2018-01-12T11:42:18Z | 2018-01-12T11:42:18Z | 2018-02-11T21:59:16Z |
CLN: ASV Timestamp | diff --git a/asv_bench/benchmarks/timestamp.py b/asv_bench/benchmarks/timestamp.py
index 62abaca17d22f..8c435c435aed3 100644
--- a/asv_bench/benchmarks/timestamp.py
+++ b/asv_bench/benchmarks/timestamp.py
@@ -1,10 +1,10 @@
+import datetime
+
from pandas import Timestamp
import pytz
-import datetime
class Timesta... | Just rearranged the import order and added some contructor benchmarks in a TODO comment:
```
[ 0.00%] ·· Building for existing-py_home_matt_anaconda_envs_pandas_dev_bin_python
[ 0.00%] ·· Benchmarking existing-py_home_matt_anaconda_envs_pandas_dev_bin_python
[ 3.57%] ··· Running ....TimestampAcrossDst.time_rep... | https://api.github.com/repos/pandas-dev/pandas/pulls/19164 | 2018-01-10T05:55:54Z | 2018-01-10T13:00:50Z | 2018-01-10T13:00:50Z | 2018-01-10T17:44:25Z |
Doc: Add example of merging a Series with a Dataframe | diff --git a/doc/source/merging.rst b/doc/source/merging.rst
index ebade853313ab..6c8061f5cbdfd 100644
--- a/doc/source/merging.rst
+++ b/doc/source/merging.rst
@@ -714,6 +714,31 @@ either the left or right tables, the values in the joined table will be
labels=['left', 'right'], vertical=False);
plt.clos... | - [X] closes #12550
| https://api.github.com/repos/pandas-dev/pandas/pulls/19160 | 2018-01-09T20:46:12Z | 2018-01-14T03:39:36Z | null | 2018-01-14T03:40:46Z |
CI: fix botocore to last known good version | diff --git a/ci/install_travis.sh b/ci/install_travis.sh
index 272e7f2e05d14..dfe83aaaf657f 100755
--- a/ci/install_travis.sh
+++ b/ci/install_travis.sh
@@ -113,7 +113,7 @@ if [ -e ${REQ} ]; then
fi
time conda install -n pandas pytest>=3.1.0
-time pip install pytest-xdist moto
+time pip install pytest-xdist moto bo... | https://api.github.com/repos/pandas-dev/pandas/pulls/19154 | 2018-01-09T12:28:24Z | 2018-01-09T12:53:10Z | null | 2018-01-09T12:53:10Z | |
No SettingWithCopyWarning on groupby results | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index d7a3f0d077302..79479d081e72f 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -425,6 +425,7 @@ Groupby/Resample/Rolling
- Bug when grouping by a single column and aggregating with a class like ``... | The dataframe referred to in the warning is a result of an
internal slicing operation and should not lead to a warning
in userspace.
- [x] closes #19151
- [ ] 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/19152 | 2018-01-09T07:10:22Z | 2018-01-09T12:05:20Z | null | 2023-05-11T01:17:07Z |
CLN: ASV timedelta | diff --git a/asv_bench/benchmarks/timedelta.py b/asv_bench/benchmarks/timedelta.py
index 1897b0287ed19..3fe75b3c34299 100644
--- a/asv_bench/benchmarks/timedelta.py
+++ b/asv_bench/benchmarks/timedelta.py
@@ -1,12 +1,11 @@
import datetime
import numpy as np
-import pandas as pd
-
-from pandas import to_timedelta, T... | Cleaned up some setups and used `setup_cache` where applicable. Although the `time_from_iso_format` benchmark failed here, it looks like it passed in #19065.
```
[ 0.00%] ··· Setting up /home/matt/Projects/pandas-mroeschke/asv_bench/benchmarks/timedelta.py:111
[ 4.55%] ··· Running timedelta.DatetimeAccessor.tim... | https://api.github.com/repos/pandas-dev/pandas/pulls/19150 | 2018-01-09T05:45:00Z | 2018-01-09T12:54:03Z | 2018-01-09T12:54:03Z | 2018-01-09T17:45:27Z |
Followup Cleanup DTI test_arithmetic, ASV | diff --git a/asv_bench/benchmarks/timestamp.py b/asv_bench/benchmarks/timestamp.py
index 62abaca17d22f..8e05df4a05453 100644
--- a/asv_bench/benchmarks/timestamp.py
+++ b/asv_bench/benchmarks/timestamp.py
@@ -36,9 +36,6 @@ def setup(self, tz, freq):
def time_tz(self, tz, freq):
self.ts.tz
- def time_... | Remove ASV for Timestamp.offset since that attribute has been removed.
tests.indexes.datetimes.test_arithmetic has a giant offsets test that this splits up into reasonably sized pieces.
- one piece of that test currently only runs if `klass is Series`, but that sub-test is now valid for DatetimeIndex too, so this ... | https://api.github.com/repos/pandas-dev/pandas/pulls/19149 | 2018-01-09T05:14:39Z | 2018-01-10T13:02:11Z | 2018-01-10T13:02:11Z | 2018-01-23T04:40:34Z |
CLN: ASV timeseries | diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py
index fe282df25e9c5..ea2f077f980d0 100644
--- a/asv_bench/benchmarks/timeseries.py
+++ b/asv_bench/benchmarks/timeseries.py
@@ -1,358 +1,330 @@
+from datetime import timedelta
+
+import numpy as np
+from pandas import to_datetime, date... | - [x] closes #8144 (benchmarks now have random seed where appropriate)
Split up the some benchmarks and utilized `param`s where available. I think `to_datetime(...,cache=True)` is tagged for v0.23 so that's probably why the `ToDatetimeCache` benchmarks don't work yet?
```
[ 0.00%] ·· Building for existing-py_h... | https://api.github.com/repos/pandas-dev/pandas/pulls/19148 | 2018-01-09T04:55:16Z | 2018-01-09T12:53:43Z | 2018-01-09T12:53:43Z | 2018-01-09T17:45:10Z |
Fix incorrect exception raised by Series[datetime64] + int | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index e40318bd65db2..880f9b73d6bc8 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -309,6 +309,7 @@ Other API Changes
- ``IntervalDtype`` now returns ``True`` when compared against ``'interval'`` regard... | Series[datetime64] +/- int is currently raising a ValueError when it should be raising a TypeError. This was introduced in #19024.
In the process of fixing this bug, this also goes most of the way towards fixing #19123 by raising on add/sub with integer arrays.
Setup:
```
dti = pd.date_range('2016-01-01', peri... | https://api.github.com/repos/pandas-dev/pandas/pulls/19147 | 2018-01-09T04:32:23Z | 2018-01-17T00:14:02Z | 2018-01-17T00:14:02Z | 2018-02-11T21:59:09Z |
simplify CBMonth.apply to remove roll_monthday | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 585c904a601ed..1dea41801003d 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -847,29 +847,6 @@ cpdef int roll_convention(int other, int n, int compare):
return n
-cpdef int roll_monthday(d... | The implementations of CustomBusinessMonthBegin.apply and CustomBusinessMonthEnd.apply are merged.
Simplify CustomBusinessMonth.apply so that it uses liboffsets.roll_convention instead of liboffsets.roll_monthday (the latter being much more of a footgun). This is the last place where roll_monthday was used, so this... | https://api.github.com/repos/pandas-dev/pandas/pulls/19146 | 2018-01-09T02:12:42Z | 2018-01-10T12:58:24Z | 2018-01-10T12:58:24Z | 2018-01-23T04:40:34Z |
Fix URL in FutureWarning for .loc[list-of-labels] with missing labels | diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst
index 4ebc8b82aaa47..750b260c7f228 100644
--- a/doc/source/indexing.rst
+++ b/doc/source/indexing.rst
@@ -640,6 +640,7 @@ For getting *multiple* indexers, using ``.get_indexer``:
dfd.iloc[[0, 2], dfd.columns.get_indexer(['A', 'B'])]
+.. _deprecate_lo... | - [X] closes #19143
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/19145 | 2018-01-09T01:40:11Z | 2018-01-09T12:54:27Z | 2018-01-09T12:54:27Z | 2018-01-09T19:23:16Z |
Fix offset __inits__, apply_index dtypes | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 8a760c5e5b0de..c903c3bfd122a 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -381,7 +381,9 @@ Conversion
- Fixed bug where comparing :class:`DatetimeIndex` failed to raise ``TypeError`` when attem... | This PR does two main things:
1) Change the default kwargs for offset `__init__` methods so that the defaults are valid; ATM `WeekOfMonth()` and `LastWeekOfMonth()` will both raise `ValueError`.
2) ATM `Week.apply_index` adds an int64 array to a `DatetimeIndex`. This happens to have the desired output because t... | https://api.github.com/repos/pandas-dev/pandas/pulls/19142 | 2018-01-08T22:22:25Z | 2018-01-12T11:45:21Z | 2018-01-12T11:45:21Z | 2018-02-11T22:01:15Z |
Doc: Example of merging Dataframe and Series | diff --git a/doc/source/gotchas.rst b/doc/source/gotchas.rst
index 5da0f4fd07819..7ed0b1c800183 100644
--- a/doc/source/gotchas.rst
+++ b/doc/source/gotchas.rst
@@ -332,3 +332,97 @@ using something similar to the following:
See `the NumPy documentation on byte order
<https://docs.scipy.org/doc/numpy/user/basics.bytes... | - [ ] closes #12550 | https://api.github.com/repos/pandas-dev/pandas/pulls/19140 | 2018-01-08T20:55:10Z | 2018-01-12T22:18:26Z | null | 2023-05-11T01:17:06Z |
Make TimedeltaIndex +/- pd.NaT return TimedeltaIndex | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 14949267fc37d..9df7563d3b869 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -273,6 +273,7 @@ Other API Changes
- The default ``Timedelta`` constructor now accepts an ``ISO 8601 Duration`` string ... | - [x] closes #19124
- [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/19139 | 2018-01-08T17:45:00Z | 2018-01-16T00:02:43Z | 2018-01-16T00:02:43Z | 2018-01-23T04:40:29Z |
CI: Pin NumPy in 3.6 build | diff --git a/ci/requirements-3.6.build b/ci/requirements-3.6.build
index 1c4b46aea3865..94e1152450d87 100644
--- a/ci/requirements-3.6.build
+++ b/ci/requirements-3.6.build
@@ -2,5 +2,5 @@ python=3.6*
python-dateutil
pytz
nomkl
-numpy
+numpy=1.13.*
cython
| Closes #19137 | https://api.github.com/repos/pandas-dev/pandas/pulls/19138 | 2018-01-08T15:15:55Z | 2018-01-08T16:41:39Z | 2018-01-08T16:41:39Z | 2018-01-09T11:32:05Z |
BUG: read_parquet, to_parquet for s3 destinations | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index dc305f36f32ec..a0ce50b881915 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -415,6 +415,7 @@ I/O
- Bug in :func:`read_sas` where a file with 0 variables gave an ``AttributeError`` incorrectly. No... | - [x] closes #19134
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
closes #19134 | https://api.github.com/repos/pandas-dev/pandas/pulls/19135 | 2018-01-08T12:51:32Z | 2018-01-18T00:49:18Z | 2018-01-18T00:49:18Z | 2018-01-18T09:38:20Z |
DOC: Add documentation regarding no compression in to_parquet | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 62993a3d168db..a8c4053850548 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1670,8 +1670,8 @@ def to_parquet(self, fname, engine='auto', compression='snappy',
Parquet reader library to use. If 'auto', then the option
... | https://api.github.com/repos/pandas-dev/pandas/pulls/19131 | 2018-01-08T07:12:25Z | 2018-01-08T19:32:10Z | 2018-01-08T19:32:10Z | 2018-01-09T04:35:25Z | |
Parametrized test_json_table_schema module | diff --git a/pandas/tests/io/json/test_json_table_schema.py b/pandas/tests/io/json/test_json_table_schema.py
index 76748f30e639b..fc3790287d7da 100644
--- a/pandas/tests/io/json/test_json_table_schema.py
+++ b/pandas/tests/io/json/test_json_table_schema.py
@@ -88,82 +88,82 @@ def test_multiindex(self):
class TestTab... | - [X] closes #19070
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Could potentially consolidate all of the ``dtype`` tests further but didn't want to rock the boat too much | https://api.github.com/repos/pandas-dev/pandas/pulls/19128 | 2018-01-08T04:09:37Z | 2018-01-08T19:30:13Z | 2018-01-08T19:30:13Z | 2018-02-27T01:32:15Z |
TST: Add test for setting with loc on DataFrame with one row | diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py
index fb5f094f9462b..433b0d87ac005 100644
--- a/pandas/tests/indexing/test_loc.py
+++ b/pandas/tests/indexing/test_loc.py
@@ -420,6 +420,13 @@ def test_loc_setitem_consistency(self):
df.loc[:, 'date'] = 1.0
tm.assert_fr... | - [X] closes #15494
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Issue appears to be have been fixed for a while, since 0.21.x at least, just added a test to ensure there's no regression.
| https://api.github.com/repos/pandas-dev/pandas/pulls/19127 | 2018-01-08T02:57:48Z | 2018-01-10T00:17:29Z | 2018-01-10T00:17:29Z | 2018-01-15T18:26:24Z |
Fix and test TimedeltaIndex.__rfloordiv__ bug | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 07e633ded942a..d7a3f0d077302 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -376,7 +376,8 @@ Conversion
- Bug in :class:`Series` with ``dtype='timedelta64[ns]`` where addition or subtraction of `... | I thought we were ready to get rid of _TimeOp, but doing so turned up a couple of new bugs.
Setup:
```
scalar_td = pd.Timedelta('10m7s')
tdi = TimedeltaIndex(['00:05:03', '00:05:03', pd.NaT], freq=None)
```
Before:
```
>>> tdi.__rfloordiv__(scalar_td)
Float64Index([0.0, 0.0, nan], dtype='float64')
```
... | https://api.github.com/repos/pandas-dev/pandas/pulls/19125 | 2018-01-07T20:24:11Z | 2018-01-07T22:22:33Z | 2018-01-07T22:22:33Z | 2018-01-07T22:26:39Z |
BUG: Avoid using realpath to make list_future_warnings.sh compatible on macosx | diff --git a/scripts/list_future_warnings.sh b/scripts/list_future_warnings.sh
index e100f305267c1..0c4046bbb5f49 100755
--- a/scripts/list_future_warnings.sh
+++ b/scripts/list_future_warnings.sh
@@ -28,7 +28,7 @@ EXCLUDE+="^pandas/util/_depr_module.py$|" # generic deprecate module that raise
EXCLUDE+="^pandas/util/... | …with Mac
- [ ] closes #xxxx
- [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/19122 | 2018-01-07T17:02:52Z | 2018-01-07T22:14:15Z | null | 2018-01-07T22:14:23Z |
DEPR: Removing previously deprecated flavor parameter from SQLiteData… | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 07e633ded942a..11ac1a37e05a0 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -314,6 +314,7 @@ Removal of prior version deprecations/changes
- The ``Panel4D`` and ``PanelND`` classes have been remo... | …base (#6581)
- [X] related to #6581
- [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/19121 | 2018-01-07T16:02:53Z | 2018-01-10T12:58:38Z | 2018-01-10T12:58:38Z | 2018-01-10T12:58:40Z |
DEPR: Removing previously deprecated Categorical.labels (#6581) | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index ca48b5525369b..45c259a1cdf0b 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -314,6 +314,7 @@ Removal of prior version deprecations/changes
- The ``Panel4D`` and ``PanelND`` classes have been remo... | - [X] related to #6581
- [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/19120 | 2018-01-07T15:58:56Z | 2018-01-10T13:00:26Z | 2018-01-10T13:00:25Z | 2018-01-10T13:00:28Z |
DEPR: Removing previously deprecated datetools module (#6581) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 42e286f487a7d..2d0bd9aa0de39 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -391,7 +391,7 @@ Removal of prior version deprecations/changes
- The ``LongPanel`` and ``WidePanel`` classes have bee... | - [X] related to #6581
- [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/19119 | 2018-01-07T15:55:41Z | 2018-08-02T10:45:04Z | 2018-08-02T10:45:04Z | 2018-08-02T10:45:09Z |
DEPR: Changing default of str.extract(expand=False) to str.extract(expand=True) | diff --git a/doc/source/text.rst b/doc/source/text.rst
index 2b6459b581c1e..1e620acb1f88a 100644
--- a/doc/source/text.rst
+++ b/doc/source/text.rst
@@ -218,7 +218,8 @@ Extract first match in each subject (extract)
``DataFrame``, depending on the subject and regular expression
pattern (same behavior as pre-0.18... | …o str.extract(expand=True) (#6581)
- [X] related to #6581
- [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/19118 | 2018-01-07T15:52:01Z | 2018-02-05T08:39:43Z | 2018-02-05T08:39:43Z | 2018-02-05T11:02:29Z |
DEPR: Adding script to detect deprecated features by version (#6581) | diff --git a/scripts/list_future_warnings.sh b/scripts/list_future_warnings.sh
new file mode 100755
index 0000000000000..e100f305267c1
--- /dev/null
+++ b/scripts/list_future_warnings.sh
@@ -0,0 +1,46 @@
+#!/bin/bash
+
+# Check all future warnings in Python files, and report them with the version
+# where the FutureWar... | - [ ] closes #xxxx
- [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/19117 | 2018-01-07T15:44:01Z | 2018-01-07T16:09:51Z | 2018-01-07T16:09:51Z | 2018-01-07T16:21:19Z |
DEPR: removing deprecated stuff: Categorical.labels, pandas.core.date… | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index b1efd0dcb43e2..d147d18b22ccd 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -314,6 +314,10 @@ Removal of prior version deprecations/changes
- The ``Panel4D`` and ``PanelND`` classes have been rem... | …tools, SQLiteDatabase.flavor, str.extract(expand=None) (#6581)
- [X] related to #6581
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
@jreback, from the ones that we discussed, this PR removes all them except Resampler, which is a bit tricky... | https://api.github.com/repos/pandas-dev/pandas/pulls/19115 | 2018-01-07T14:37:18Z | 2018-01-07T15:26:06Z | null | 2018-01-07T15:26:06Z |
Doc: Added warning to treat group chunks as immutable when using apply | diff --git a/doc/source/gotchas.rst b/doc/source/gotchas.rst
index 5da0f4fd07819..7ed0b1c800183 100644
--- a/doc/source/gotchas.rst
+++ b/doc/source/gotchas.rst
@@ -332,3 +332,97 @@ using something similar to the following:
See `the NumPy documentation on byte order
<https://docs.scipy.org/doc/numpy/user/basics.bytes... | - [X] closes issue #14180
| https://api.github.com/repos/pandas-dev/pandas/pulls/19114 | 2018-01-07T06:39:46Z | 2018-01-11T00:14:49Z | null | 2018-01-12T23:57:30Z |
CLN: ASV long and broken benchmarks | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index 2b48168238ee8..4cecf12a27042 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -4,7 +4,7 @@
from pandas import (DataFrame, Series, MultiIndex, date_range, period_range,
... | [xref](https://github.com/pandas-dev/pandas/pull/19069#issuecomment-355761409)
Shortened the size of the data in `GroupbyMethods` since some benchmarks took +30 seconds on my machine, and additionally fixed some broken benchmarks
```
asv dev -b ^groupby.GroupByMethods
· Discovering benchmarks
· Running 1 total... | https://api.github.com/repos/pandas-dev/pandas/pulls/19113 | 2018-01-07T06:26:28Z | 2018-01-10T00:22:07Z | 2018-01-10T00:22:07Z | 2018-01-10T00:30:25Z |
BUG: IntervalIndex set op bugs for empty results | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index dc305f36f32ec..33ca394db47ca 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -405,6 +405,7 @@ Indexing
- Bug in :func:`MultiIndex.__contains__` where non-tuple keys would return ``True`` even if t... | - [X] closes #19101
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Fixed bugs described in the issue:
- Set ops that result in an empty index no longer raises.
- For empty results, the return dtype now matches the dtype of the first index.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/19112 | 2018-01-07T06:23:05Z | 2018-01-12T11:46:34Z | 2018-01-12T11:46:34Z | 2018-01-12T16:44:54Z |
BUG: show time values in repr of high precision DatetimeIndex | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index b1efd0dcb43e2..ebb9e5ad41a77 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -375,7 +375,8 @@ Conversion
- Bug in :class:`TimedeltaIndex` where division by a ``Series`` would return a ``TimedeltaI... | - [ ] closes #19030
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
On master:
```
In [2]: pd.DatetimeIndex(['2017-01-01 23:59:59.999999999'])
Out[2]: DatetimeIndex(['2017-01-01'], dtype='datetime64[ns]', freq=None)
```
On my branch:
```... | https://api.github.com/repos/pandas-dev/pandas/pulls/19109 | 2018-01-06T20:23:16Z | 2018-01-07T15:27:17Z | 2018-01-07T15:27:16Z | 2018-01-07T15:44:23Z |
DEPR: remove display.line_width and display.height as old prior deprecations | diff --git a/ci/lint.sh b/ci/lint.sh
index 54135bd551b69..35b39e2abb3c6 100755
--- a/ci/lint.sh
+++ b/ci/lint.sh
@@ -120,6 +120,10 @@ if [ "$LINT" ]; then
echo "Check for deprecated messages without sphinx directive"
grep -R --include="*.py" --include="*.pyx" -E "(DEPRECATED|DEPRECATE|Deprecated)(:|,|\.)" p... | https://api.github.com/repos/pandas-dev/pandas/pulls/19107 | 2018-01-06T18:23:44Z | 2018-01-07T02:37:47Z | 2018-01-07T02:37:47Z | 2018-01-07T02:38:23Z | |
COMPAT: empty IntervalIndexis np.int64 dtype | diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index fd1980f9ab429..43bdc14106b00 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -114,7 +114,7 @@ def maybe_convert_platform_interval(values):
# GH 19016
# empty lists/tuples get obje... | xref #19022
32-bit wheel failure: https://travis-ci.org/MacPython/pandas-wheels/jobs/325678205 | https://api.github.com/repos/pandas-dev/pandas/pulls/19106 | 2018-01-06T17:50:55Z | 2018-01-07T00:48:10Z | 2018-01-07T00:48:10Z | 2018-01-07T01:01:12Z |
DOC: Fixed capitalization of NumFOCUS | diff --git a/doc/source/overview.rst b/doc/source/overview.rst
index 4443428ca6c9b..f86b1c67e6843 100644
--- a/doc/source/overview.rst
+++ b/doc/source/overview.rst
@@ -94,7 +94,7 @@ pandas possible. Thanks to `all of our contributors <https://github.com/pandas-d
If you're interested in contributing, please
visit `Co... | Closes https://github.com/pandas-dev/pandas/issues/19099 | https://api.github.com/repos/pandas-dev/pandas/pulls/19100 | 2018-01-05T22:06:24Z | 2018-01-05T22:18:40Z | 2018-01-05T22:18:39Z | 2018-01-05T22:18:50Z |
MAINT: Added Code of Conduct to .github folder | diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000000000..a1fbece3284ec
--- /dev/null
+++ b/.github/CODE_OF_CONDUCT.md
@@ -0,0 +1,63 @@
+# Contributor Code of Conduct
+
+As contributors and maintainers of this project, and in the interest of
+fostering an open and we... | https://help.github.com/articles/adding-a-code-of-conduct-to-your-project/
Github treats this file special in a few places. I think
https://github.com/pandas-dev/pandas-governance/blob/master/code-of-conduct.md
should always be considered the "official" home. Perhaps we could add
a note to the one added here abou... | https://api.github.com/repos/pandas-dev/pandas/pulls/19098 | 2018-01-05T21:34:05Z | 2018-01-05T23:34:19Z | 2018-01-05T23:34:19Z | 2018-05-02T13:09:37Z |
BUG: Fixed union_categoricals with unordered cats | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 800599f728de1..4f1e67bad9a54 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -453,8 +453,11 @@ Numeric
Categorical
^^^^^^^^^^^
-- Bug in ``Categorical.equals`` between two unordered categories ... | Closes https://github.com/pandas-dev/pandas/issues/19096 | https://api.github.com/repos/pandas-dev/pandas/pulls/19097 | 2018-01-05T21:18:48Z | 2018-01-07T00:48:51Z | 2018-01-07T00:48:51Z | 2018-01-09T20:06:31Z |
Fix TimedeltaIndex +/- offset array | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index a62a737fbba31..389d167437909 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -308,7 +308,7 @@ Conversion
- Bug in :class:`WeekOfMonth` and class:`Week` where addition and subtraction did not roll ... | No issue specific to this, but analogus to #18849. There is a checkbox for this in #18824.
- [ ] closes #xxxx
- [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/19095 | 2018-01-05T18:21:32Z | 2018-01-07T15:08:31Z | 2018-01-07T15:08:31Z | 2018-01-07T17:29:13Z |
TST: Finish groupby aggregate cleanup | diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py
index caf2365a54ec8..7cc6c2fa7b88c 100644
--- a/pandas/tests/groupby/aggregate/test_aggregate.py
+++ b/pandas/tests/groupby/aggregate/test_aggregate.py
@@ -10,285 +10,298 @@
import pandas as pd
from pand... | Continuation of #18931
* Converted class-based setup fixtures to pytest fixtures
* Consolidated all imports at the top of the file
`test_aggregate_item_by_item` has an unused DataFrame in the test so cleaned that up as well
Please let me know if you need me to make any changes. | https://api.github.com/repos/pandas-dev/pandas/pulls/19094 | 2018-01-05T17:12:52Z | 2018-01-05T20:41:20Z | 2018-01-05T20:41:20Z | 2018-01-05T20:55:53Z |
TST: Add to_csv test when writing the single column CSV | diff --git a/pandas/tests/io/formats/test_to_csv.py b/pandas/tests/io/formats/test_to_csv.py
index e12a7196dce6b..dfa3751bff57a 100644
--- a/pandas/tests/io/formats/test_to_csv.py
+++ b/pandas/tests/io/formats/test_to_csv.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
+import sys
import numpy as np
import pandas as pd... | - [x] closes #18676
- [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/19091 | 2018-01-05T05:06:42Z | 2018-02-11T21:11:11Z | 2018-02-11T21:11:11Z | 2018-02-11T21:11:31Z |
TST: Avoid skipping common indexes tests | diff --git a/pandas/tests/indexes/interval/test_interval_new.py b/pandas/tests/indexes/interval/test_interval_new.py
index c8b30e19daa02..a0d11db46d316 100644
--- a/pandas/tests/indexes/interval/test_interval_new.py
+++ b/pandas/tests/indexes/interval/test_interval_new.py
@@ -4,14 +4,13 @@
import numpy as np
from p... | Closes https://github.com/pandas-dev/pandas/issues/19083 | https://api.github.com/repos/pandas-dev/pandas/pulls/19085 | 2018-01-04T20:50:01Z | 2018-01-05T00:24:21Z | 2018-01-05T00:24:21Z | 2018-02-22T15:27:33Z |
DOC: Add information on kind parameter to resample docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 1ab7c50d86c98..2b5e4b912247e 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5724,6 +5724,10 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
convention : {'start', 'end', 's', 'e'}
... | xref #5023
When working on another issue I couldn't find any information in the ``resample`` [docstring](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.resample.html) on the ``kind`` parameter so I added it. There was some relevant information in the resample [section](http://pandas.pydata.o... | https://api.github.com/repos/pandas-dev/pandas/pulls/19084 | 2018-01-04T20:36:59Z | 2018-01-05T00:53:20Z | 2018-01-05T00:53:20Z | 2018-01-06T00:19:21Z |
DOC: Spellcheck of merging.rst, reshaping.rst and timeseries.rst | diff --git a/doc/source/basics.rst b/doc/source/basics.rst
index bd49b5b7c9b32..55c26e2186344 100644
--- a/doc/source/basics.rst
+++ b/doc/source/basics.rst
@@ -2220,7 +2220,7 @@ For example, to select ``bool`` columns:
df.select_dtypes(include=[bool])
-You can also pass the name of a dtype in the `numpy dtype ... | This PR is a continuation of my reading through the docs, see #19017, #18973, #18948, #18941.
The changes are:
* In `merging.rst`, `reshaping.rst` and `timeseries.rst`:
* Function references as links
* Backticks ` `` ` around Series, DataFrame
* Minor rephrasing of sentences, spelling, etc
* Replaced some... | https://api.github.com/repos/pandas-dev/pandas/pulls/19081 | 2018-01-04T18:57:32Z | 2018-01-05T00:32:05Z | 2018-01-05T00:32:04Z | 2018-01-05T00:33:03Z |
STYLE: deprecation linting | diff --git a/pandas/core/panel.py b/pandas/core/panel.py
index 1937a57939c87..1c401c4854306 100644
--- a/pandas/core/panel.py
+++ b/pandas/core/panel.py
@@ -34,7 +34,7 @@
from pandas.core.ops import _op_descriptions
from pandas.core.series import Series
from pandas.core.reshape.util import cartesian_product
-from pa... | xref #19067 | https://api.github.com/repos/pandas-dev/pandas/pulls/19079 | 2018-01-04T16:47:02Z | 2018-01-04T17:25:44Z | 2018-01-04T17:25:44Z | 2018-01-04T17:25:45Z |
str.extractall with no match returns appropriate MultIndex | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 6a48abb6c6592..a692d1e60fd24 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -325,7 +325,7 @@ Indexing
- Bug in indexing non-scalar value from ``Series`` having non-unique ``Index`` will return va... | Relates and fixes issue #19034. It's a small fix which creates empty MultiIndex instead of Index, with appropriate names, when `str.extractall` doesn't find any matches. Also, a related test in `pandas.tests.test_strings` has been updated to reflect the expected result. | https://api.github.com/repos/pandas-dev/pandas/pulls/19075 | 2018-01-04T13:16:39Z | 2018-01-05T19:13:44Z | 2018-01-05T19:13:44Z | 2018-01-05T21:30:29Z |
REF: codes-based MultiIndex engine | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 246eab386b2ab..efb4707649f08 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -380,6 +380,7 @@ Performance Improvements
- Improved performance of ``DatetimeIndex`` and ``Series`` arithmetic operati... |
closes #18519
closes #18818
closes #18520
closes #18485
closes #15994
closes #19086
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This PR provides a cleaner and more robust ``MultiIndex`` engine.
asv benchmarks
```
before... | https://api.github.com/repos/pandas-dev/pandas/pulls/19074 | 2018-01-04T10:41:25Z | 2018-01-28T11:53:06Z | 2018-01-28T11:53:05Z | 2018-01-29T02:51:24Z |
BUG: Allow merging on Index vectors | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index d53de30187156..22f9ebd8aab98 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -407,7 +407,7 @@ Reshaping
- Bug in :func:`Series.rank` where ``Series`` containing ``NaT`` modifies the ``Series`` inp... | This behavior used to work in v0.19.0 and
is consistent with the documentation.
Closes #19038
| https://api.github.com/repos/pandas-dev/pandas/pulls/19073 | 2018-01-04T07:46:36Z | 2018-01-06T17:11:29Z | 2018-01-06T17:11:29Z | 2018-01-06T19:26:35Z |
Tests for fixed issues in Series[datetime64] | diff --git a/pandas/tests/series/test_operators.py b/pandas/tests/series/test_operators.py
index c1e9a62d98fd3..2350477c2302a 100644
--- a/pandas/tests/series/test_operators.py
+++ b/pandas/tests/series/test_operators.py
@@ -1195,6 +1195,18 @@ def test_sub_single_tz(self):
expected = Series([Timedelta('-2days'... | - [x] closes #12534, closes #19071
- [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/19072 | 2018-01-04T06:59:31Z | 2018-01-05T00:45:31Z | 2018-01-05T00:45:31Z | 2018-01-05T01:59:09Z |
CLN: ASV string | diff --git a/asv_bench/benchmarks/pandas_vb_common.py b/asv_bench/benchmarks/pandas_vb_common.py
index 7b4fec0090701..c0d24afae4219 100644
--- a/asv_bench/benchmarks/pandas_vb_common.py
+++ b/asv_bench/benchmarks/pandas_vb_common.py
@@ -1,27 +1,29 @@
import os
-from pandas import *
-import pandas as pd
-from numpy.ran... | Cleaned up the `strings.py` benchmarks, `pandas_vb_common.py` of all the unnecessary imports, and linting all the `.py` files in `asv_bench` now.
```
asv dev -b ^strings
· Discovering benchmarks
· Running 25 total benchmarks (1 commits * 1 environments * 25 benchmarks)
[ 0.00%] ·· Building for existing-py_home_... | https://api.github.com/repos/pandas-dev/pandas/pulls/19069 | 2018-01-04T04:31:52Z | 2018-01-06T17:19:45Z | 2018-01-06T17:19:45Z | 2018-01-07T04:59:32Z |
TST: catch warnings on Panel | diff --git a/pandas/tests/generic/test_panel.py b/pandas/tests/generic/test_panel.py
index 720f471a0ebd4..4cbd5cb2aa69f 100644
--- a/pandas/tests/generic/test_panel.py
+++ b/pandas/tests/generic/test_panel.py
@@ -32,3 +32,26 @@ def test_to_xarray(self):
# idempotency
assert_panel_equal(resul... | xref #19059
| https://api.github.com/repos/pandas-dev/pandas/pulls/19068 | 2018-01-04T02:15:47Z | 2018-01-04T05:52:50Z | 2018-01-04T05:52:50Z | 2018-01-04T05:52:50Z |
DEPR: removing to_long and toLong, deprecated in 0.7.0 | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index ea4245cb3281e..c8fe00eb5521f 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -253,6 +253,7 @@ Removal of prior version deprecations/changes
- ``pandas.tseries.frequencies.get_standard_freq`` has b... | - [X] closes #19077
- [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/19067 | 2018-01-04T01:34:09Z | 2018-01-04T15:25:02Z | 2018-01-04T15:25:02Z | 2018-01-04T15:25:04Z |
DOC: Add clear and other parameter docs to assert_produces_warning | diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index b99f019a8e98f..cd9ebd3017256 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -2339,12 +2339,44 @@ def exception_matches(self, exc_type, exc_value, trace_back):
def assert_produces_warning(expected_warning=Warning, filter_level="alwa... | - [GH18996 ] closes #18996
- Added information on `clear` parameter
- Added information on other undocumented parameters (expected_warning, filter_level, check_stacklevel)
| https://api.github.com/repos/pandas-dev/pandas/pulls/19066 | 2018-01-03T23:22:42Z | 2018-01-10T00:26:31Z | 2018-01-10T00:26:31Z | 2018-01-10T16:29:51Z |
Added ISO 8601 Duration string constructor for Timedelta | diff --git a/asv_bench/benchmarks/timedelta.py b/asv_bench/benchmarks/timedelta.py
index f99f95678a0b7..1897b0287ed19 100644
--- a/asv_bench/benchmarks/timedelta.py
+++ b/asv_bench/benchmarks/timedelta.py
@@ -1,9 +1,40 @@
+import datetime
+
import numpy as np
import pandas as pd
from pandas import to_timedelta, Ti... | - [X] closes #19040
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
ASV results below
```
· Running 16 total benchmarks (2 commits * 1 environments * 8 benchmarks)
[ 0.00%] · For pandas commit hash 6eda5188:
[ 0.00%] ·· Building for con... | https://api.github.com/repos/pandas-dev/pandas/pulls/19065 | 2018-01-03T22:58:39Z | 2018-01-05T14:12:59Z | 2018-01-05T14:12:58Z | 2018-01-05T14:42:14Z |
Revert "CI: fix conda version (#19025)" | diff --git a/ci/install_travis.sh b/ci/install_travis.sh
index c92da8d4774e1..272e7f2e05d14 100755
--- a/ci/install_travis.sh
+++ b/ci/install_travis.sh
@@ -48,12 +48,7 @@ echo
echo "[update conda]"
conda config --set ssl_verify false || exit 1
conda config --set quiet true --set always_yes true --set changeps1 fals... | This reverts commit c19bdc98fa3f856e2e6b3495bbab88b587801987.
| https://api.github.com/repos/pandas-dev/pandas/pulls/19062 | 2018-01-03T20:38:15Z | 2018-01-03T23:54:51Z | 2018-01-03T23:54:51Z | 2018-01-03T23:55:12Z |
CLN: Remove the Panel4D and PanelND classes | diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst
index da54a6a5f5c02..b6690eff89836 100644
--- a/doc/source/cookbook.rst
+++ b/doc/source/cookbook.rst
@@ -411,16 +411,6 @@ Levels
`Flatten Hierarchical columns
<http://stackoverflow.com/questions/14507794/python-pandas-how-to-flatten-a-hierarchical-index-... | Deprecated back in v0.19.0
xref #13147 | https://api.github.com/repos/pandas-dev/pandas/pulls/19059 | 2018-01-03T17:08:13Z | 2018-01-03T23:56:32Z | 2018-01-03T23:56:32Z | 2018-01-04T05:15:43Z |
BUG: incorrect set_labels in MI | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 77de1851490b2..57aa947d27e3a 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -363,6 +363,7 @@ Indexing
- Bug in indexing non-scalar value from ``Series`` having non-unique ``Index`` will return va... | This fixes #19057
| https://api.github.com/repos/pandas-dev/pandas/pulls/19058 | 2018-01-03T16:57:40Z | 2018-01-06T17:25:23Z | 2018-01-06T17:25:23Z | 2018-01-06T17:25:28Z |
BUG: x in MultiIndex.drop(x) | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index c4fc222353738..23eae18c4c121 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -338,7 +338,7 @@ Conversion
- Bug in :class:`Series` floor-division where operating on a scalar ``timedelta`` raises an... | - [x] closes #19027
- [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/19054 | 2018-01-03T12:10:06Z | 2018-01-10T00:27:59Z | 2018-01-10T00:27:59Z | 2018-03-19T15:06:36Z |
TST: Remove clipboard-excel test warnings | diff --git a/pandas/tests/io/test_clipboard.py b/pandas/tests/io/test_clipboard.py
index b5d1435c29cb7..98c0effabec84 100644
--- a/pandas/tests/io/test_clipboard.py
+++ b/pandas/tests/io/test_clipboard.py
@@ -91,6 +91,8 @@ def test_round_trip_frame(self):
self.check_round_trip_frame(dt)
def test_rea... | Closes #19010. | https://api.github.com/repos/pandas-dev/pandas/pulls/19052 | 2018-01-03T10:04:41Z | 2018-01-03T11:15:11Z | 2018-01-03T11:15:11Z | 2018-01-03T17:00:18Z |
CLN: ASV stat_ops | diff --git a/asv_bench/benchmarks/stat_ops.py b/asv_bench/benchmarks/stat_ops.py
index 1e1eb167b46bf..c447c78d0d070 100644
--- a/asv_bench/benchmarks/stat_ops.py
+++ b/asv_bench/benchmarks/stat_ops.py
@@ -1,205 +1,114 @@
-from .pandas_vb_common import *
+import numpy as np
+import pandas as pd
+from .pandas_vb_common... | There were some old `pd.rolling_*` methods being tested in `stat_ops.py` that I moved to `rolling.py` (or should they just be removed?), otherwise the usual cleanup:
```
$ asv dev -b ^stat_ops
· Discovering benchmarks
· Running 7 total benchmarks (1 commits * 1 environments * 7 benchmarks)
[ 0.00%] ·· Building ... | https://api.github.com/repos/pandas-dev/pandas/pulls/19049 | 2018-01-03T05:41:26Z | 2018-01-06T17:19:13Z | 2018-01-06T17:19:13Z | 2018-01-07T01:22:21Z |
BUG: Index constructor does not maintain CategoricalDtype | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index bd3bee507baa3..1ba92f41edc89 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -300,6 +300,7 @@ Conversion
- Bug in :class:`FY5253` where ``datetime`` addition and subtraction incremented incorrectl... | - [X] closes #19032
- [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/19048 | 2018-01-03T05:36:50Z | 2018-01-03T11:13:16Z | 2018-01-03T11:13:16Z | 2018-01-03T15:20:48Z |
CLN: ASV sparse | diff --git a/asv_bench/benchmarks/sparse.py b/asv_bench/benchmarks/sparse.py
index a46205026481e..dcb7694abc2ad 100644
--- a/asv_bench/benchmarks/sparse.py
+++ b/asv_bench/benchmarks/sparse.py
@@ -1,211 +1,162 @@
import itertools
-from .pandas_vb_common import *
+import numpy as np
import scipy.sparse
-from pandas ... | Simplified and created a top level function that made sparse arrays (which was repeated throughout the file). Otherwise, simplified benchmarks with `param` where possible.
```
$ asv dev -b ^sparse
· Discovering benchmarks
· Running 15 total benchmarks (1 commits * 1 environments * 15 benchmarks)
[ 0.00%] ·· Bu... | https://api.github.com/repos/pandas-dev/pandas/pulls/19047 | 2018-01-03T04:54:05Z | 2018-01-03T11:16:35Z | 2018-01-03T11:16:35Z | 2020-02-19T18:46:25Z |
CLN: ASV series_methods | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index 0ce003d1a9277..478aba278029c 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -1,185 +1,119 @@
-from .pandas_vb_common import *
+from datetime import datetime
+import n... | Utilized `param` and cleaned up some benchmarks.
```
asv dev -b ^series_methods
· Discovering benchmarks
· Running 9 total benchmarks (1 commits * 1 environments * 9 benchmarks)
[ 0.00%] ·· Building for existing-py_home_matt_anaconda_envs_pandas_dev_bin_python
[ 0.00%] ·· Benchmarking existing-py_home_matt_an... | https://api.github.com/repos/pandas-dev/pandas/pulls/19046 | 2018-01-03T04:45:04Z | 2018-01-03T11:17:30Z | 2018-01-03T11:17:30Z | 2018-01-03T17:40:46Z |
TST: Add tests for Categorical.is_dtype_equal against Series | diff --git a/pandas/tests/categorical/test_dtypes.py b/pandas/tests/categorical/test_dtypes.py
index bad2c27026b31..8973d1196f6a9 100644
--- a/pandas/tests/categorical/test_dtypes.py
+++ b/pandas/tests/categorical/test_dtypes.py
@@ -6,7 +6,7 @@
import pandas.util.testing as tm
from pandas.core.dtypes.dtypes import ... | - [X] closes #16659
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Issue is already fixed on 0.22.0 (so really probably fixed in 0.21.x), just adding tests to ensure that there's not a regression. Didn't add a whatsnew entry since this behavio... | https://api.github.com/repos/pandas-dev/pandas/pulls/19045 | 2018-01-03T01:49:19Z | 2018-01-03T11:20:21Z | 2018-01-03T11:20:20Z | 2018-01-03T15:21:00Z |
Tests for TDI issues already fixed | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index a62a737fbba31..9f05f9e14125f 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -312,7 +312,11 @@ Conversion
- Bug in :class:`Series` floor-division where operating on a scalar ``timedelta`` raises a... | Fix a couple others caused by failing to return NotImplemented or to override names correctly.
closes #17250
xref #19042
closes #19043
- [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/19044 | 2018-01-03T01:04:07Z | 2018-01-05T19:16:23Z | 2018-01-05T19:16:23Z | 2018-01-05T19:20:34Z |
read_json support for orient="table" | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 2ef7e6d3b64f4..3e1619d6e1578 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -1648,7 +1648,7 @@ with optional parameters:
DataFrame
- default is ``columns``
- - allowed values are {``split``, ``records``, ``index``, ``columns``, ``value... | - [X] closes #18912 and
closes #9146
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This is a starting point for ``read_json`` supporting ``orient='table'`` for basic types. I'm explicitly raising in the instances that don't work, namely time... | https://api.github.com/repos/pandas-dev/pandas/pulls/19039 | 2018-01-02T21:13:19Z | 2018-01-06T17:33:07Z | 2018-01-06T17:33:07Z | 2018-01-06T21:38:48Z |
Fix bugs in FY5253Quarter and LastWeekOfMonth | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index ea4245cb3281e..924c91ef09c97 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -307,6 +307,7 @@ Conversion
- Bug in :class:`FY5253` where ``datetime`` addition and subtraction incremented incorrectl... | Similar to [need to lookup reference], this fixes bugs in `LastWeekOfMonth` and `FY5253Quarter` to ensure that the fast implementation `offset.onOffset(ts)` matches the slow (base class) implementation `(ts + offset) - offset == ts`.
I haven't yet looked at BusinessHour and CustomBusinessHour, but other than that I ... | https://api.github.com/repos/pandas-dev/pandas/pulls/19036 | 2018-01-02T18:13:40Z | 2018-01-04T14:15:07Z | 2018-01-04T14:15:07Z | 2018-01-23T04:40:41Z |
ENH: Add matmul to DataFrame, Series | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index af5371b06192f..ce63cb2473bc4 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -403,6 +403,7 @@ Other Enhancements
``SQLAlchemy`` dialects supporting multivalue inserts include: ``mysql``, ``postg... | Fixes #10259. Not sure about the exact set of types that should be supported, for now I just copied the classes that are referenced in `dot`. | https://api.github.com/repos/pandas-dev/pandas/pulls/19035 | 2018-01-02T18:06:28Z | 2018-03-30T21:56:37Z | 2018-03-30T21:56:37Z | 2018-03-30T21:57:22Z |
CLN: ASV indexing | diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py
index d73b216478ad5..970760373632a 100644
--- a/asv_bench/benchmarks/index_object.py
+++ b/asv_bench/benchmarks/index_object.py
@@ -1,7 +1,7 @@
import numpy as np
import pandas.util.testing as tm
-from pandas import (Series, date... | I moved some benchmarks to `index_object.py` that were testing method of (mostly) MultiIndexes. Otherwise mostly cleanup and now linting files that start with i.
```
$ asv dev -b ^indexing
· Discovering benchmarks
· Running 49 total benchmarks (1 commits * 1 environments * 49 benchmarks)
[ 0.00%] ·· Building f... | https://api.github.com/repos/pandas-dev/pandas/pulls/19031 | 2018-01-02T04:32:09Z | 2018-01-03T11:41:34Z | 2018-01-03T11:41:34Z | 2018-01-03T17:40:01Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.