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 |
|---|---|---|---|---|---|---|---|
DOC: Fixes to the docs style | diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst
index 822bc7407a0c7..483921393f3ea 100644
--- a/doc/source/advanced.rst
+++ b/doc/source/advanced.rst
@@ -563,7 +563,8 @@ they need to be sorted. As with any index, you can use :meth:`~DataFrame.sort_in
.. ipython:: python
- import random; random.shu... | Fixing flake8 errors in documentation pages that are mostly correct. Also changing `setup.cfg` to avoid false positives.
- [X] refs #24173
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24182 | 2018-12-09T19:09:35Z | 2018-12-09T20:09:12Z | 2018-12-09T20:09:12Z | 2018-12-09T20:13:46Z |
DOC: Link to dev version of contributing guide from README.md | diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 95729f845ff5c..21df1a3aacd59 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -1,24 +1,23 @@
-Contributing to pandas
-======================
+# Contributing to pandas
Whether you are a novice or experienced software developer, ... | README.md should link to the development version of the contributing guide, since the stable version may not match current practice for `master`. For example, see #24069 .
I'm not sure this PR is a good idea, but I thought it was easiest open it and get comments directly.
| https://api.github.com/repos/pandas-dev/pandas/pulls/24172 | 2018-12-09T17:20:38Z | 2018-12-17T12:56:13Z | 2018-12-17T12:56:13Z | 2018-12-17T15:06:11Z |
remove enum import for PY2 compat, xref #22802 | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index b4862a5f3b02f..472ac0ee6d45c 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
-import enum
import warnings
from cpython cimport (PyObject_RichCo... | xref #22802 | https://api.github.com/repos/pandas-dev/pandas/pulls/24170 | 2018-12-09T15:46:56Z | 2018-12-11T15:11:17Z | 2018-12-11T15:11:17Z | 2018-12-12T20:42:07Z |
BUG GH16983 fix df.where with extension dtypes | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 0b2b526dfe9e7..0155e70384cfd 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1418,6 +1418,7 @@ Indexing
- Bug in :func:`Index.union` and :func:`Index.intersection` where name of the ``Index`` of ... | - [ ] closes #16983???
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
The referenced issue showcases two bugs. I was not able to replicate the first one, but I tracked down the cause of the ndim ValueError in the second example. An ExtensionBlo... | https://api.github.com/repos/pandas-dev/pandas/pulls/24169 | 2018-12-09T03:58:29Z | 2018-12-09T14:30:21Z | null | 2018-12-09T14:30:21Z |
Fixes hashing ExtensionArrays which factorize to scalar objects with __getitem__ attr | diff --git a/pandas/core/util/hashing.py b/pandas/core/util/hashing.py
index 29fc1e3671a83..c5925d38299e1 100644
--- a/pandas/core/util/hashing.py
+++ b/pandas/core/util/hashing.py
@@ -293,7 +293,10 @@ def hash_array(vals, encoding='utf8', hash_key=None, categorize=True):
vals = hashing.hash_object_array(v... | - [ ] closes ##24167
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24168 | 2018-12-08T23:26:06Z | 2018-12-22T17:06:56Z | null | 2018-12-22T17:06:56Z |
DOC: Move 0.23.5 release notes | diff --git a/doc/source/whatsnew/v0.23.5.txt b/doc/source/whatsnew/v0.23.5.txt
deleted file mode 100644
index 8f4b1a13c2e9d..0000000000000
--- a/doc/source/whatsnew/v0.23.5.txt
+++ /dev/null
@@ -1,54 +0,0 @@
-.. _whatsnew_0235:
-
-v0.23.5 (TBD 0, 2018)
----------------------
-
-This is a minor bug-fix release in the 0.... | Closes https://github.com/pandas-dev/pandas/issues/22923 | https://api.github.com/repos/pandas-dev/pandas/pulls/24165 | 2018-12-08T20:56:33Z | 2018-12-08T22:28:33Z | 2018-12-08T22:28:33Z | 2018-12-08T22:31:38Z |
API: Revert breaking `.values` changes | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 0b2b526dfe9e7..5698bbb5cfab9 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -219,17 +219,21 @@ Previously, these would be cast to a NumPy array with object dtype. In general,
this should result i... | User-facing change: `Series[period].values` nad `Series[interval].values`
continues to be an ndarray of objects. Recommend ``.array`` instead.
There are a handful of related places in pandas where we assumed that
``Series[EA].values`` was an EA.
Part of #23995 | https://api.github.com/repos/pandas-dev/pandas/pulls/24163 | 2018-12-08T13:14:56Z | 2018-12-09T12:11:12Z | 2018-12-09T12:11:12Z | 2018-12-09T12:11:15Z |
DOC: Ignoring F821 in developer.rst, that are breaking the build | diff --git a/doc/source/developer.rst b/doc/source/developer.rst
index 2930ac0f20ed2..ba6cec93d02e4 100644
--- a/doc/source/developer.rst
+++ b/doc/source/developer.rst
@@ -65,8 +65,8 @@ for each column, *including the index columns*. This has JSON form:
.. code-block:: python
# assuming there's at least... | I merged #18201 without a rebase, and I didn't realize it'd break the CI, because of flake8 errors (variable not defined) in an example that is not supposed to run.
Fixing the CI by ignoring the `F821` errors. | https://api.github.com/repos/pandas-dev/pandas/pulls/24160 | 2018-12-08T08:00:43Z | 2018-12-08T18:26:30Z | 2018-12-08T18:26:30Z | 2018-12-08T18:26:30Z |
BUG - anchoring dates for resample with Day(n>1) | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 0b2b526dfe9e7..488971c13508a 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1516,6 +1516,7 @@ Groupby/Resample/Rolling
- Bug in :func:`pandas.core.groupby.GroupBy.first` and :func:`pandas.core... | - [ ] closes #24127
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24159 | 2018-12-08T05:24:02Z | 2018-12-13T02:02:21Z | 2018-12-13T02:02:20Z | 2018-12-13T03:20:05Z |
DOC: Fix quotes position in pandas.core | diff --git a/pandas/core/base.py b/pandas/core/base.py
index e7c3a45a710e0..a584458c5cb58 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -291,6 +291,12 @@ def _gotitem(self, key, ndim, subset=None):
raise AbstractMethodError(self)
def aggregate(self, func, *args, **kwargs):
+ """
+... | - [X] closes #24071
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/24158 | 2018-12-08T00:27:14Z | 2018-12-08T18:36:09Z | null | 2018-12-08T18:36:09Z |
BUG: Assorted DatetimeIndex bugfixes | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 3f881485937d8..b04d2eeba1ed0 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -380,6 +380,7 @@ Backwards incompatible API changes
- ``max_rows`` and ``max_cols`` parameters removed from :class:`HTM... | Bit of a hodge-podge.
- Deprecate `time_rule` in `offsets.generate_range`
- Improve error messages if NaT gets passed to date_range, or in validate_frequency (closes #11587)
- Preserve timezone in DatetimeIndex->CategoricalIndex->DatetimeIndex (closes #18664)
- Preserve freq when indexing DTI/TDI with Ellipsis (c... | https://api.github.com/repos/pandas-dev/pandas/pulls/24157 | 2018-12-08T00:09:34Z | 2018-12-14T14:53:44Z | 2018-12-14T14:53:43Z | 2018-12-14T16:12:39Z |
Issue 24071 | diff --git a/pandas/core/base.py b/pandas/core/base.py
index e7c3a45a710e0..a584458c5cb58 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -291,6 +291,12 @@ def _gotitem(self, key, ndim, subset=None):
raise AbstractMethodError(self)
def aggregate(self, func, *args, **kwargs):
+ """
+... | 
Hi I tried my best, but there is still 4 error unfixed.
| https://api.github.com/repos/pandas-dev/pandas/pulls/24156 | 2018-12-08T00:04:35Z | 2018-12-08T00:26:32Z | null | 2018-12-08T00:27:59Z |
BUG: Throw ValueError when the format kwarg is passed to the HDFStore… | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 0b2b526dfe9e7..f33003e95d651 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1492,6 +1492,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form
- Bug in :func:`Dat... | … constructor
- [x] closes #13291
- [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/24155 | 2018-12-07T22:49:05Z | 2018-12-09T16:10:58Z | 2018-12-09T16:10:58Z | 2018-12-09T16:11:06Z |
DOC: update usage of randn in io.rst | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 313c4d723d079..c6e7bccdd8aad 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -14,7 +14,6 @@
from pandas.compat import StringIO, BytesIO
- randn = np.random.randn
np.set_printoptions(precision=4, suppress=True)
plt.close('all')
pd.o... | - [x] closes #24148
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24154 | 2018-12-07T21:50:41Z | 2018-12-09T15:49:44Z | 2018-12-09T15:49:44Z | 2018-12-09T15:49:48Z |
BLD: Require enum34 for Python < 3.4 | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index aa8fbbd9b8dd8..5a3e142fd4bc9 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1579,7 +1579,7 @@ Build Changes
- Building pandas for development now requires ``cython >= 0.28.2`` (:issue:`21688`)... | pandas-dev/pandas#22802 imports `enum`, which was added to the built-ins in Python 3.4. The `enum34` package backports `enum` to earlier Python versions, so this should be a dependency as long as Python 2.7 is still supported.
To demonstrate the issue, creating a minimal environment using `conda` and installing the ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24153 | 2018-12-07T21:38:48Z | 2018-12-09T15:47:34Z | null | 2018-12-09T17:37:06Z |
DOC: remove long listings in the tutorials.rst page | diff --git a/doc/source/tutorials.rst b/doc/source/tutorials.rst
index 83c891c0c0e40..d5da7df347573 100644
--- a/doc/source/tutorials.rst
+++ b/doc/source/tutorials.rst
@@ -18,117 +18,28 @@ A handy pandas `cheat sheet <http://pandas.pydata.org/Pandas_Cheat_Sheet.pdf>`_.
Community Guides
================
-pandas Coo... | Triggered by discussion in https://github.com/pandas-dev/pandas/pull/24117: currently some of the listed tutorials have a very long included table of content, others much less. Here I kept the current list of tutorials, but simply removed detailed tocs of all of them. Each of them can do that on the page you land on wh... | https://api.github.com/repos/pandas-dev/pandas/pulls/24152 | 2018-12-07T21:27:46Z | 2018-12-09T14:27:16Z | 2018-12-09T14:27:16Z | 2018-12-09T16:08:44Z |
DOC: fix warnings in whatsnew about MI.labels -> codes rename | diff --git a/doc/source/whatsnew/v0.10.1.rst b/doc/source/whatsnew/v0.10.1.rst
index 5679babf07b73..a627454561759 100644
--- a/doc/source/whatsnew/v0.10.1.rst
+++ b/doc/source/whatsnew/v0.10.1.rst
@@ -97,22 +97,58 @@ columns, this is equivalent to passing a
``HDFStore`` now serializes MultiIndex dataframes when appe... | Follow-up on https://github.com/pandas-dev/pandas/pull/23752 to get rid of 2 warnings. | https://api.github.com/repos/pandas-dev/pandas/pulls/24150 | 2018-12-07T20:51:10Z | 2018-12-07T21:15:16Z | 2018-12-07T21:15:16Z | 2018-12-07T21:43:21Z |
BUG: Fixed block placment from reindex(?) | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 53ae3200d2adb..083e0198c1d15 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1297,6 +1297,7 @@ Datetimelike
- Bug in the :class:`Series` repr with period-dtype data missing a space before the dat... | Closes https://github.com/pandas-dev/pandas/issues/24147 | https://api.github.com/repos/pandas-dev/pandas/pulls/24149 | 2018-12-07T20:32:05Z | 2018-12-07T22:05:33Z | 2018-12-07T22:05:32Z | 2018-12-07T22:05:36Z |
CLN: minor cleanups for MultiIndex.codes | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 53ae3200d2adb..aa8fbbd9b8dd8 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1102,8 +1102,9 @@ Deprecations
- :attr:`MultiIndex.labels` has been deprecated and replaced by :attr:`MultiIndex.cod... | Minor cleanup for #23752. The whatsnew didn't parse properly and other small stuff. | https://api.github.com/repos/pandas-dev/pandas/pulls/24146 | 2018-12-07T18:28:49Z | 2018-12-07T20:36:29Z | 2018-12-07T20:36:29Z | 2018-12-13T02:46:09Z |
REF/TST: Add more pytest idiom to util/test_util | diff --git a/pandas/tests/util/test_deprecate_kwarg.py b/pandas/tests/util/test_deprecate_kwarg.py
new file mode 100644
index 0000000000000..7287df9db8a62
--- /dev/null
+++ b/pandas/tests/util/test_deprecate_kwarg.py
@@ -0,0 +1,93 @@
+# -*- coding: utf-8 -*-
+import pytest
+
+from pandas.util._decorators import depreca... | Also breaks up `test_util` into multiple test modules by the function or method tested. | https://api.github.com/repos/pandas-dev/pandas/pulls/24141 | 2018-12-07T10:38:13Z | 2018-12-07T21:14:44Z | 2018-12-07T21:14:44Z | 2018-12-07T23:52:33Z |
Added log10 to the list of unary functions df.eval can handle | diff --git a/doc/source/enhancingperf.rst b/doc/source/enhancingperf.rst
index 1c873d604cfe0..e40e078ccf075 100644
--- a/doc/source/enhancingperf.rst
+++ b/doc/source/enhancingperf.rst
@@ -482,7 +482,7 @@ These operations are supported by :func:`pandas.eval`:
* Simple variable evaluation, e.g., ``pd.eval('df')`` (this... | - [x] closes https://github.com/pandas-dev/pandas/issues/24139
- [x] tests ~~added~~ / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
`(pandas) ➜ pandas git:(binary_math_log) git diff upstream/master -u -- "*.py" | flake8 --diff
`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24140 | 2018-12-07T07:57:31Z | 2018-12-09T18:52:10Z | 2018-12-09T18:52:10Z | 2018-12-10T08:59:21Z |
Fix repr of DataFrame with IntervalIndex | diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index e526aa72affee..14e73b957d519 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -1015,10 +1015,11 @@ def _format_with_header(self, header, **kwargs):
def _format_native_types(self, na_rep='', q... | @TomAugspurger after the repr PR, the docs build catched an error: the repr of a DataFrame with an IntervalIndex started failing:
```
In [1]: df = pd.DataFrame({'A': [1, 2, 3, 4]},
...: index=pd.IntervalIndex.from_breaks([0, 1, 2, 3, 4])) ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24134 | 2018-12-06T22:10:22Z | 2018-12-13T00:51:11Z | 2018-12-13T00:51:11Z | 2018-12-16T07:54:28Z |
DOC: Fix order section in docstrings (part II) | diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx
index dae88d3b707bf..1484a1299b246 100644
--- a/pandas/_libs/interval.pyx
+++ b/pandas/_libs/interval.pyx
@@ -158,6 +158,16 @@ cdef class Interval(IntervalMixin):
Whether the interval is closed on the left-side, right-side, both or
nei... | - [X] closes #24125
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This is to build on #24126 .
As I commented in the issue, this pull request will fix additional 10 out of 24 errors. 14 errors will remain and are referenced in the issue. | https://api.github.com/repos/pandas-dev/pandas/pulls/24132 | 2018-12-06T20:28:38Z | 2018-12-16T02:08:26Z | 2018-12-16T02:08:26Z | 2018-12-20T00:34:06Z |
BUG: date_range issue with sub-second granularity | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 4e12b22c8ccac..57a605533b099 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1305,6 +1305,7 @@ Datetimelike
- Bug in :class:`DatetimeIndex` where calling ``np.array(dtindex, dtype=object)`` would... | Improves (but doesn't completely resolve) #24110, to avoid rounding
issues with sub-second granularity timestamps when creating a
date range.
- [x] closes #24110
- [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/24129 | 2018-12-06T15:00:13Z | 2018-12-09T22:25:41Z | 2018-12-09T22:25:41Z | 2018-12-09T22:26:20Z |
ENH: fill_value argument for shift #15486 | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 1fb43de5f4c5a..2693c98e56582 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -31,6 +31,7 @@ New features
- :func:`read_feather` now accepts ``columns`` as an argument, allowing the user to specify... | - [ ] closes #15486
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24128 | 2018-12-06T11:34:43Z | 2018-12-26T01:29:55Z | 2018-12-26T01:29:55Z | 2018-12-26T01:38:22Z |
Fix error GL07 | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 1a4368ee8ea98..3c4fe519e4181 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -289,6 +289,11 @@ def unique(values):
- If the input is a Categorical dtype, the return is a Categorical
- If the input is a Serie... | - [ ] refs #24125
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Original number of errors: 286
Remaining errors: 24 | https://api.github.com/repos/pandas-dev/pandas/pulls/24126 | 2018-12-06T07:40:51Z | 2018-12-07T12:53:58Z | 2018-12-07T12:53:58Z | 2018-12-07T12:54:11Z |
REF/TST: Add more pytest idiom to scalar/test_nat | diff --git a/pandas/tests/scalar/test_nat.py b/pandas/tests/scalar/test_nat.py
index d2a31de5c0938..abf95b276cda1 100644
--- a/pandas/tests/scalar/test_nat.py
+++ b/pandas/tests/scalar/test_nat.py
@@ -5,24 +5,24 @@
import pytz
from pandas._libs.tslibs import iNaT
+import pandas.compat as compat
from pandas impor... | https://api.github.com/repos/pandas-dev/pandas/pulls/24120 | 2018-12-06T00:47:48Z | 2018-12-06T12:17:56Z | 2018-12-06T12:17:56Z | 2018-12-07T02:43:32Z | |
API: add return_inverse to pd.unique | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index da75e2c49ae10..bdddc99ca094e 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -94,6 +94,25 @@ of the Series or columns of a DataFrame will also have string dtype.
We recommend explicitly using the ``st... | - [x] splits off first chunk of #24108; progress towards #4087 / #21357 / #21720 / #22824
- [x] tests expanded / parametrized / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This is the first part I'm splitting off of #24108, but now with full test coverage. For ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24119 | 2018-12-05T23:27:05Z | 2020-01-26T01:46:32Z | null | 2020-01-26T01:46:33Z |
PERF: speed up PeriodArray creation by exposing dayfirst/yearfirst params | diff --git a/asv_bench/benchmarks/period.py b/asv_bench/benchmarks/period.py
index 8f341c8b415fe..6d2c7156a0a3d 100644
--- a/asv_bench/benchmarks/period.py
+++ b/asv_bench/benchmarks/period.py
@@ -1,5 +1,6 @@
from pandas import (
DataFrame, Period, PeriodIndex, Series, date_range, period_range)
+from pandas.tseri... | As much of the time creating a `PeriodArray` from `int`s is actually spent importing/querying `get_option('display.date_dayfirst')` and its `yearfirst` cousin, this PR exposes those parameters in `Period.__new__()` to allow them to be queried once per array creation.
This yields a ~15x speedup:
```
asv compare ups... | https://api.github.com/repos/pandas-dev/pandas/pulls/24118 | 2018-12-05T22:45:16Z | 2018-12-29T14:23:06Z | 2018-12-29T14:23:06Z | 2018-12-29T14:23:20Z |
DOC: Add pandas video series to tutorials.rst | diff --git a/doc/source/tutorials.rst b/doc/source/tutorials.rst
index 0ea0e04f9a1b3..c39227e67ffe8 100644
--- a/doc/source/tutorials.rst
+++ b/doc/source/tutorials.rst
@@ -86,6 +86,14 @@ Video Tutorials
* `Pandas: .head() to .tail() <https://www.youtube.com/watch?v=7vuO9QXDN50>`_
(2016) (1:26)
`GitHub repo <htt... | This is a 6-hour video tutorial series that is freely available on YouTube. If you would like to quickly preview the contents of the series, you can see all of the code in this [Jupyter Notebook](http://nbviewer.jupyter.org/github/justmarkham/pandas-videos/blob/master/pandas.ipynb).
Collectively, these videos have n... | https://api.github.com/repos/pandas-dev/pandas/pulls/24117 | 2018-12-05T20:50:30Z | 2018-12-17T23:47:09Z | 2018-12-17T23:47:09Z | 2018-12-21T14:00:59Z |
CLN: Follow-up to #24100 | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 33f71bcb2fef2..dcc6a5c836485 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -854,173 +854,159 @@ def _time_shift(self, periods, freq=None):
return self._generate_range(start=s... | Avoid 1-letter variable names
Modernize string formatting
Avoid an unnecessary level of indirection in add_datetimelike_methods for DTA/TDA/PA | https://api.github.com/repos/pandas-dev/pandas/pulls/24116 | 2018-12-05T19:27:45Z | 2018-12-05T22:43:46Z | 2018-12-05T22:43:46Z | 2018-12-06T00:15:12Z |
BUG/Perf: Support ExtensionArrays in where | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 6b8d548251061..a18c26f911f1d 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -675,6 +675,7 @@ changes were made:
- ``SparseDataFrame.combine`` and ``DataFrame.combine_first`` no longer supports co... | We need some way to do `.where` on EA object for DatetimeArray. Adding it
to the interface is, I think, the easiest way.
Initially I started to write a version on ExtensionBlock, but it proved
to be unwieldy. to write a version that performed well for all types.
It *may* be possible to do using `_ndarray_values` ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24114 | 2018-12-05T17:27:22Z | 2018-12-10T15:21:09Z | 2018-12-10T15:21:08Z | 2018-12-10T15:21:12Z |
BUG: use internal linkage (static variables) in move.c | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index eab5956735f12..703192f911ccb 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1582,6 +1582,7 @@ Other
- Logical operations ``&, |, ^`` between :class:`Series` and :class:`Index` will no longer rai... | move.c declared global variables without explicitly declaring them static, so
they had global visibility. This meant that if you linked against a shared
object that provided the same symbols, the wrong data would be read. In
particular: linking to libgtk, which provides the symbol 'methods', would cause
an import e... | https://api.github.com/repos/pandas-dev/pandas/pulls/24113 | 2018-12-05T16:50:49Z | 2018-12-06T21:11:36Z | 2018-12-06T21:11:35Z | 2018-12-06T21:11:37Z |
F/rolling size | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 15476c3bc2e13..354ec3a4c978e 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1003,6 +1003,7 @@ update the ``ExtensionDtype._metadata`` tuple to match the signature of your
- :meth:`Series.unstack... | - [x] closes #24057
- [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/24111 | 2018-12-05T10:58:30Z | 2019-01-05T15:36:46Z | null | 2019-01-05T15:36:47Z |
API/ENH/DEPR: Series.unique returns Series | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 15476c3bc2e13..2d08dc194befa 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -320,6 +320,64 @@ Example:
See the :ref:`advanced docs on renaming<advanced.index_names>` for more details.
+.. _wh... | I know this PR is too big, but I need it to initiate discussion before `v.0.24` cutoff.
I've been working on adding a `return_inverse` to `unique` since mid June (as fast as possible). I know that changing the return type of `Series.unique` is potentially a controversial issue, but I truly believe that this should ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24108 | 2018-12-05T07:38:06Z | 2019-05-12T21:24:20Z | null | 2019-10-07T08:24:11Z |
REF/TST: Add pytest idiom to reshape/test_tile | diff --git a/pandas/tests/reshape/test_cut.py b/pandas/tests/reshape/test_cut.py
new file mode 100644
index 0000000000000..458b4b13248dd
--- /dev/null
+++ b/pandas/tests/reshape/test_cut.py
@@ -0,0 +1,447 @@
+import numpy as np
+import pytest
+
+import pandas as pd
+from pandas import (
+ Categorical, DataFrame, Dat... | https://api.github.com/repos/pandas-dev/pandas/pulls/24107 | 2018-12-05T06:23:30Z | 2018-12-06T12:18:44Z | 2018-12-06T12:18:44Z | 2018-12-07T02:42:13Z | |
WIP/CI: Clean up to test calls | diff --git a/.travis.yml b/.travis.yml
index 42ca4116fce6f..e5a1bda55597a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -104,15 +104,4 @@ script:
- echo "script start"
- source activate pandas-dev
- ci/build_docs.sh
- - ci/run_tests.sh
-
-after_script:
- - echo "after_script start"
- - source activate panda... | **DO NOT MERGE**: As single tests do not fail in a deterministic way, I'll rerun the CI several times to see that the `--dist` option is fixing the concurrency problems as expected.
- Using `--dist=loadscope` instead of calling pytest twice to not run `single` tests in parallel
- Renaming `single` marker to `serial... | https://api.github.com/repos/pandas-dev/pandas/pulls/24106 | 2018-12-05T03:23:54Z | 2019-03-20T02:07:18Z | null | 2019-03-20T02:07:18Z |
DOC: Corrects 'reindex_axis' docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 0eb0e14c9054e..1e26c3f45f660 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -4359,49 +4359,49 @@ def _reindex_multi(self, axes, copy, fill_value):
return NotImplemented
_shared_docs['reindex_axis'] = ("""
- Co... | The docstring included a 'tolerance' parameter which is missing from the source. This has been removed.
The docstring did not describe the 'fill_value' parameter. This has been added, mostly reusing the wording in the summary part of the existing docstring.
- [x] closes #23960
- [ ] tests added / passed
- [ ] p... | https://api.github.com/repos/pandas-dev/pandas/pulls/24105 | 2018-12-05T00:44:51Z | 2018-12-09T08:02:20Z | 2018-12-09T08:02:19Z | 2018-12-09T08:03:21Z |
WIP/ENH: Pass tzinfos to dateutil parser | diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx
index 71bb8f79642dc..5baa26c5831c8 100644
--- a/pandas/_libs/tslibs/parsing.pyx
+++ b/pandas/_libs/tslibs/parsing.pyx
@@ -8,7 +8,7 @@ import time
from cython import Py_ssize_t
-from cpython.datetime cimport datetime
+from cpython.dateti... | Putting this up early because the `set_option` behavior deserves discussion. The alternative is to make/let users pass `tzinfos` in Timestamp, to_datetime, DatetimeIndex, and probably others.
- [x] closes #22234, #18702
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff... | https://api.github.com/repos/pandas-dev/pandas/pulls/24104 | 2018-12-05T00:02:48Z | 2018-12-15T16:33:42Z | null | 2020-04-05T17:37:44Z |
Check import warning | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index a8a86eedb0549..953547f72d3e1 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -153,8 +153,8 @@ fi
### CODE ###
if [[ -z "$CHECK" || "$CHECK" == "code" ]]; then
- MSG='Check for modules that pandas should not import' ; echo $MSG
- python -c "
+ ... | We usually catch uses of deprecated modules, but I think this may have slipped through since it's at import time. | https://api.github.com/repos/pandas-dev/pandas/pulls/24102 | 2018-12-04T22:07:01Z | 2018-12-05T12:15:23Z | 2018-12-05T12:15:23Z | 2018-12-05T12:15:34Z |
REF: Separate out DataFrame/Series Construction Helpers | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index ac1c34edba914..938ca53b5fdce 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -380,12 +380,12 @@ def __init__(self, values, categories=None, ordered=None, dtype=None,
dtype ... | Why? In implementing #24096 I found it tough to tell all the paths by which a DatetimeIndex get passed to a DataFrame or Series. Collecting all these helper functions is a step towards reducing the number of paths available so these things can be caught in one place.
The main thing this PR does is move helper func... | https://api.github.com/repos/pandas-dev/pandas/pulls/24100 | 2018-12-04T21:03:14Z | 2018-12-05T12:55:49Z | 2018-12-05T12:55:49Z | 2018-12-05T14:46:16Z |
DOC: Make _field_accessor manage the docstring format | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index e731dd33f5bb5..239891870cc3b 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -82,7 +82,7 @@ def f(self):
return result
f.__name__ = name
- f.__doc__ = docstring
+ f.__doc__ = ... | - [x] closes #24068
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24099 | 2018-12-04T19:45:34Z | 2018-12-05T14:28:30Z | 2018-12-05T14:28:30Z | 2018-12-05T14:28:33Z |
DOC: Use official numpydoc extension | diff --git a/ci/deps/travis-36-doc.yaml b/ci/deps/travis-36-doc.yaml
index ed0764fab414a..c345af0a2983c 100644
--- a/ci/deps/travis-36-doc.yaml
+++ b/ci/deps/travis-36-doc.yaml
@@ -21,6 +21,7 @@ dependencies:
- notebook
- numexpr
- numpy=1.13*
+ - numpydoc
- openpyxl
- pandoc
- pyarrow
diff --git a/d... | - Replace custom numpydoc in `doc/sphinxext/numpydoc` with official
numpydoc release
- Remove `numpydoc_use_blockquotes` parameter | https://api.github.com/repos/pandas-dev/pandas/pulls/24098 | 2018-12-04T19:23:02Z | 2018-12-15T16:39:44Z | 2018-12-15T16:39:44Z | 2018-12-17T13:55:32Z |
CLN: fix asv setup_cache() for groupby.AggFunctions benchmarks | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index 59e43ee22afde..0fe8425cfa456 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -211,8 +211,10 @@ def time_multi_int_nunique(self, df):
class AggFunctions(object):
+ params = [[True, False], [... | This PR fixes a typo in an `asv` benchmark and additionally clarifies a misleading result.
Simply fixing the typo leads to this rather surprising result where the single column benchmark is ~6x slower than the multi-column benchmark:
```
$ asv dev -b groupby.AggFunctions
· Discovering benchmarks
· Running 4 tota... | https://api.github.com/repos/pandas-dev/pandas/pulls/24097 | 2018-12-04T19:09:33Z | 2019-01-24T02:08:34Z | null | 2019-01-24T02:08:34Z |
BUG: fix mutation of DTI backing Series/DataFrame | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 198e832ca4603..9c2d4cd5729d2 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -2923,7 +2923,9 @@ def _try_coerce_result(self, result):
# allow passing of > 1dim if its trivial
... | Fixes (at least some) verify_integrity bugs discussed in #24074.
- [x] closes #21907
- [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/24096 | 2018-12-04T17:51:54Z | 2018-12-05T20:19:47Z | 2018-12-05T20:19:47Z | 2018-12-05T20:29:38Z |
CLN: remove unused import of warnings module | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index dcecaf60ed578..d89ac71ecf724 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -1,5 +1,4 @@
import string
-import warnings
import numpy as np
import pandas.util.testing a... | I forgot to remove a import line in #24080 as the warning module is no longur used in ``frame_methods.py`` and we now get a linting error.
This PR fixes that.
| https://api.github.com/repos/pandas-dev/pandas/pulls/24095 | 2018-12-04T16:29:41Z | 2018-12-04T16:46:02Z | null | 2018-12-09T18:49:03Z |
CI: remove failing line | diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py
index 1ab88dc9f9e6d..7dcd7b284d66d 100644
--- a/asv_bench/benchmarks/algorithms.py
+++ b/asv_bench/benchmarks/algorithms.py
@@ -1,10 +1,11 @@
-import warnings
from importlib import import_module
import numpy as np
+
import pandas ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24092 | 2018-12-04T15:33:59Z | 2018-12-04T22:05:39Z | 2018-12-04T22:05:39Z | 2018-12-04T22:08:20Z | |
TST: Work around statsmodels bug | diff --git a/pandas/tests/plotting/test_datetimelike.py b/pandas/tests/plotting/test_datetimelike.py
index 1d6c8dc404d2b..7a28f05514dd5 100644
--- a/pandas/tests/plotting/test_datetimelike.py
+++ b/pandas/tests/plotting/test_datetimelike.py
@@ -1,5 +1,5 @@
""" Test cases for time series specific (freq conversion, etc)... | Closes https://github.com/pandas-dev/pandas/issues/24088 | https://api.github.com/repos/pandas-dev/pandas/pulls/24090 | 2018-12-04T14:25:25Z | 2018-12-04T15:19:06Z | 2018-12-04T15:19:06Z | 2020-04-29T02:34:41Z |
DOC: Fix PEP-8 issues in indexing-, missing_data-, options- and release.rst | diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst
index 49289862a3acd..add1a4e587240 100644
--- a/doc/source/indexing.rst
+++ b/doc/source/indexing.rst
@@ -134,9 +134,10 @@ indexing functionality:
.. ipython:: python
dates = pd.date_range('1/1/2000', periods=8)
- df = pd.DataFrame(np.random.randn(... | https://api.github.com/repos/pandas-dev/pandas/pulls/24089 | 2018-12-04T14:15:58Z | 2018-12-12T13:29:13Z | 2018-12-12T13:29:13Z | 2018-12-12T13:29:30Z | |
DOC: Use a standard header for all rst files | diff --git a/doc/source/10min.rst b/doc/source/10min.rst
index e04a8253e0bef..53618e008a403 100644
--- a/doc/source/10min.rst
+++ b/doc/source/10min.rst
@@ -1,24 +1,6 @@
.. _10min:
-.. currentmodule:: pandas
-
-.. ipython:: python
- :suppress:
-
- import os
- import numpy as np
-
- import pandas as pd
-
- ... | - [x] closes #23952
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24086 | 2018-12-04T08:50:54Z | 2018-12-09T17:53:01Z | 2018-12-09T17:53:01Z | 2018-12-10T12:28:43Z |
PERF: consolidate imports inside parse_time_string | diff --git a/asv_bench/benchmarks/period.py b/asv_bench/benchmarks/period.py
index fc34a47fee3e1..1af1ba1fb7b0b 100644
--- a/asv_bench/benchmarks/period.py
+++ b/asv_bench/benchmarks/period.py
@@ -43,6 +43,7 @@ class PeriodIndexConstructor(object):
def setup(self, freq):
self.rng = date_range('1985', peri... | This PR adds an asv benchmark for the creation of `Period` objects directly from integers, and an associated speedup for the same case.
When calling `Period._from_ordinal()`, the runtime is unfortunately dominated by a pair of import statements needed to pull in the global config settings `display.date_dayfirst` and... | https://api.github.com/repos/pandas-dev/pandas/pulls/24084 | 2018-12-04T00:38:56Z | 2018-12-05T12:17:29Z | 2018-12-05T12:17:29Z | 2018-12-05T12:17:32Z |
PERF: Define PeriodArray._values_for_argsort | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index e258e474f4154..9aa83892d3b64 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -828,6 +828,9 @@ def _check_timedeltalike_freq_compat(self, other):
.format(cls=type(self).__na... | This PR speeds up `.groupby()` and `.set_index()` operations involving a `PeriodArray` by 25-64x:
```
asv compare upstream/master HEAD -s --sort ratio
Benchmarks that have improved:
before after ratio
[08395af4] [696b40f1]
<period_array_argsort~1> <parse_time_str... | https://api.github.com/repos/pandas-dev/pandas/pulls/24083 | 2018-12-04T00:24:46Z | 2018-12-04T02:33:44Z | 2018-12-04T02:33:44Z | 2018-12-04T02:33:47Z |
Handle utc and box parameters for to_datetime | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 7617ad5b428a2..93ac9caa42e3e 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1125,6 +1125,7 @@ Deprecations
- :func:`pandas.types.is_period` is deprecated in favor of `pandas.types.is_period_dtyp... | - [ ] closes #23760
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24082 | 2018-12-03T23:24:16Z | 2018-12-24T19:51:21Z | null | 2018-12-24T19:51:22Z |
remove calls to DataFrame.consolidate in benchmarks | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index 527a2f129cf37..dcecaf60ed578 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -13,8 +13,7 @@ def setup(self):
self.df = DataFrame(np.random.randn(10000, 25))
... | The ``DataFrame.consolidate`` method has been removed for 0.24 (in #23377), but there are still some calls to it in the asv benchmarks. I had a failure in #23752 because of this, so hereby a fix.
This PR uses the internal ``_consolidate`` method instead. | https://api.github.com/repos/pandas-dev/pandas/pulls/24080 | 2018-12-03T23:03:31Z | 2018-12-04T02:51:03Z | 2018-12-04T02:51:03Z | 2018-12-09T18:48:42Z |
BUG: to_datetime with unit mapping ignores utc and box arguments | diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py
index 58f1bcbfa74c0..b7ad3cc1459b1 100644
--- a/pandas/core/dtypes/concat.py
+++ b/pandas/core/dtypes/concat.py
@@ -8,7 +8,7 @@
from pandas.core.dtypes.common import (
_NS_DTYPE, _TD_DTYPE, is_bool_dtype, is_categorical_dtype,
- is_date... | - [ ] closes #23760
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24078 | 2018-12-03T21:56:09Z | 2018-12-03T23:03:31Z | null | 2018-12-03T23:09:58Z |
CI/TST: Making ci/run_tests.sh fail if one of the steps fail | diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index 77efc60a8cf97..ee46da9f52eab 100755
--- a/ci/run_tests.sh
+++ b/ci/run_tests.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+set -e
+
if [ "$DOC" ]; then
echo "We are not running pytest as this is a doc-build"
exit 0
@@ -43,10 +45,14 @@ do
NUM_JOBS=2
fi
... | Looks like when simplifying the running of the tests in the CI (#23924), I missed the `-e` in the bash header. And that makes the `ci/run_tests.sh` exit with status code 0, even if the calls to pytests fail.
This left the CI in green, even when tests fail for the last 3 days (sorry about that). I think nothing is br... | https://api.github.com/repos/pandas-dev/pandas/pulls/24075 | 2018-12-03T18:47:14Z | 2018-12-04T11:21:40Z | 2018-12-04T11:21:40Z | 2018-12-04T11:43:25Z |
Implement DatetimeArray._from_sequence | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 33f71bcb2fef2..39b6a977f87fa 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -6,7 +6,6 @@
import numpy as np
from pandas._libs import NaT, iNaT, lib
-from pandas._libs.tslibs import... | Removes dependence of `DatetimeArray.__new__` on `DatetimeIndex`. De-duplicated `DatetimeIndex.__new__`/`DatetimeArray.__new__`.
The contents of `DatetimeArray._from_sequence` are basically just moved from `DatetimeIndex.__new__`. This is feasible because #23675 disentangled `to_datetime` from `DatetimeIndex.__new... | https://api.github.com/repos/pandas-dev/pandas/pulls/24074 | 2018-12-03T18:04:31Z | 2018-12-05T22:44:50Z | 2018-12-05T22:44:50Z | 2018-12-06T00:13:18Z |
TST: use s3_resource fixture consistently | diff --git a/pandas/tests/io/json/test_compression.py b/pandas/tests/io/json/test_compression.py
index c50b6f68b8839..46a5e511fe748 100644
--- a/pandas/tests/io/json/test_compression.py
+++ b/pandas/tests/io/json/test_compression.py
@@ -33,24 +33,19 @@ def test_read_zipped_json(datapath):
@td.skip_if_not_us_locale... | - [x] split off from #23731
- [x] tests modified / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
There are two boto tests that are not using the dedicated `s3_resource` fixture which takes care of all the mocking etc. This PR adapts those tests accordingly, which also allows unified t... | https://api.github.com/repos/pandas-dev/pandas/pulls/24073 | 2018-12-03T18:02:18Z | 2018-12-04T02:46:23Z | 2018-12-04T02:46:23Z | 2018-12-04T07:42:05Z |
DOC: Make _field_accessor manage the docstring format | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 4d3caaacca1c1..34a1fc478f73a 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -83,6 +83,10 @@ def f(self):
return result
f.__name__ = name
+ if not docstring.startswith("\n"):
+ ... | - [x] closes #24068
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24072 | 2018-12-03T15:39:23Z | 2018-12-04T19:46:25Z | null | 2018-12-04T19:46:25Z |
DOC: Correct/update skipna docstrings for `any` and `all` (#23109) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 1e26c3f45f660..9eb3eb37a01cc 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9894,11 +9894,11 @@ def _add_numeric_operations(cls):
axis_descr, name, name2 = _doc_parms(cls)
cls.any = _make_logical_function(
- ... | Also, include examples with NA values and describe treatment of NA with `skipna == False`
- [x] closes #23109
- [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/24069 | 2018-12-03T15:15:45Z | 2018-12-10T15:22:15Z | 2018-12-10T15:22:14Z | 2018-12-17T15:10:11Z |
DOC: Fix quotes position in Series docstrings | diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py
index f2ae7f6b56551..fa1dc751c17da 100644
--- a/pandas/core/accessor.py
+++ b/pandas/core/accessor.py
@@ -41,7 +41,9 @@ def __dir__(self):
class PandasDelegate(object):
- """ an abstract base class for delegating methods/properties """
+ """
+ ... | - [ ]xref #24059
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24065 | 2018-12-03T12:53:48Z | 2018-12-03T15:01:01Z | 2018-12-03T15:01:00Z | 2018-12-03T15:08:37Z |
WIP/DEPR: Deprecate inplace=True | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 0d6c9f4d845da..4f253d7f7ea96 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1136,7 +1136,11 @@ def reset_index(self, level=None, drop=False, name=None, inplace=False):
values. Uses ``self.name`` by default. This argument i... | - [X] refs #16529
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
@jreback can you take a look and let me know if you're happy with the way I'm deprecating ``inplace=True`` here? I need to repeat the same lots of time, so would be nice to have a... | https://api.github.com/repos/pandas-dev/pandas/pulls/24063 | 2018-12-03T11:55:52Z | 2019-01-09T21:25:27Z | null | 2019-01-09T21:25:27Z |
CI: Fixing benchmark log | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index a58f82ec6de49..409b1ac8c9df3 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -114,7 +114,7 @@ jobs:
ASV_OUTPUT="$(asv dev)"
if [[ $(echo "$ASV_OUTPUT" | grep "failed") ]]; then
echo "##vso[task.logissue type=... | - [X] closes #24061
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24062 | 2018-12-03T11:02:22Z | 2018-12-03T15:59:32Z | 2018-12-03T15:59:32Z | 2018-12-03T15:59:35Z |
BUG/TST: Fix TimedeltaIndex comparisons with invalid types | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 15476c3bc2e13..eab5956735f12 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1312,6 +1312,7 @@ Timedelta
- Bug in :class:`TimedeltaIndex` where adding ``np.timedelta64('NaT')`` incorrectly return... | Parametrize a handful of tests.
- [x] closes #23063
- [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/24056 | 2018-12-02T23:52:30Z | 2018-12-05T12:47:23Z | 2018-12-05T12:47:23Z | 2018-12-05T14:44:09Z |
TST: run setitem tests for IntegerArray | diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py
index e9d51aaea4218..87dc5f8aaf1e4 100644
--- a/pandas/core/arrays/integer.py
+++ b/pandas/core/arrays/integer.py
@@ -58,6 +58,11 @@ def numpy_dtype(self):
def kind(self):
return self.numpy_dtype.kind
+ @cache_readonly
+ de... | https://api.github.com/repos/pandas-dev/pandas/pulls/24054 | 2018-12-02T23:23:51Z | 2018-12-03T16:03:09Z | 2018-12-03T16:03:09Z | 2018-12-03T16:03:32Z | |
REF/TST: Add more pytest idiom to indexing/multiindex/test_getitem.py | diff --git a/pandas/tests/indexing/multiindex/test_getitem.py b/pandas/tests/indexing/multiindex/test_getitem.py
index 00b30bab37441..1013bb3e90149 100644
--- a/pandas/tests/indexing/multiindex/test_getitem.py
+++ b/pandas/tests/indexing/multiindex/test_getitem.py
@@ -1,5 +1,3 @@
-from warnings import catch_warnings, s... | xref #24040
for this pass:
- the Test classes have been removed.
- `catch_warnings` used for the `.ix` deprecation replaced with `@pytest.mark.filterwarnings("ignore:\\n.ix:DeprecationWarning")` at test level.
cc @jreback @gfyoung | https://api.github.com/repos/pandas-dev/pandas/pulls/24053 | 2018-12-02T20:26:13Z | 2018-12-11T13:54:10Z | 2018-12-11T13:54:10Z | 2018-12-13T12:57:09Z |
DOC: Fix PEP-8 issues in io.rst | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 372a7b8a325e7..5d37fb00c0bf3 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -1151,7 +1151,7 @@ Let us consider some examples:
.. code-block:: python
- read_csv(path, na_values=[5])
+ pd.read_csv(path, na_values=[5]) ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24052 | 2018-12-02T20:22:39Z | 2018-12-02T20:29:09Z | null | 2018-12-17T13:51:56Z | |
DOC: Stop ignoring fixed rst files in flake8-rst | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 372a7b8a325e7..fbd238586c776 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -1151,7 +1151,7 @@ Let us consider some examples:
.. code-block:: python
- read_csv(path, na_values=[5])
+ pd.read_csv('path_to_file.csv', na_values=[5])
In the exa... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Removing from the list of ignored files in flake8-rst, the pages that have been fixed before the ignore list was merged. | https://api.github.com/repos/pandas-dev/pandas/pulls/24051 | 2018-12-02T18:21:15Z | 2018-12-03T12:28:56Z | 2018-12-03T12:28:56Z | 2018-12-03T12:29:00Z |
DEPR: deprecate default of skipna=False in infer_dtype | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 3a04789b609f8..d5250bc688826 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1220,6 +1220,7 @@ Deprecations
- :func:`pandas.api.types.is_datetimetz` is deprecated in favor of `pandas.api.types.is... | - [x] follows up on the changed in #17066
- [x] tests adapted / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I know that `v.0.22` is generally not counted towards the "3 major releases between warning and deprecation" policy, but since this is a private method, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24050 | 2018-12-02T18:16:04Z | 2019-01-04T12:15:24Z | 2019-01-04T12:15:24Z | 2019-01-04T16:58:42Z |
REF: array_to_datetime catch overflows in one place | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 1205ebbe311e2..86d842d5e2678 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -526,182 +526,157 @@ cpdef array_to_datetime(ndarray[object] values, str errors='raise',
for i in range(n):
val = values[i]
- ... | The diff is big, but all this is doing is changing:
```
if A:
try:
foo(...)
except OutOfBoundsDatetime:
handle(...)
elif B:
try:
bar(...)
except OutOfBoundsDatetime:
handle(...)
...
```
to:
```
try:
if A:
foo(...)
elif B:
... | https://api.github.com/repos/pandas-dev/pandas/pulls/24049 | 2018-12-02T16:16:37Z | 2018-12-02T21:36:20Z | 2018-12-02T21:36:20Z | 2018-12-02T21:39:58Z |
Deprecate series.nonzero (GH18262) | diff --git a/doc/source/api/series.rst b/doc/source/api/series.rst
index 1631f04b1c72f..aa43c8b643d44 100644
--- a/doc/source/api/series.rst
+++ b/doc/source/api/series.rst
@@ -188,7 +188,6 @@ Computations / Descriptive Stats
Series.is_monotonic_decreasing
Series.value_counts
Series.compound
- Series.nonz... | xref #18262
- passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24048 | 2018-12-02T15:01:14Z | 2019-01-05T22:47:46Z | 2019-01-05T22:47:46Z | 2019-01-05T22:47:49Z |
Add test for rdivmod on EA array (GH23287) | diff --git a/pandas/tests/extension/base/ops.py b/pandas/tests/extension/base/ops.py
index cd5e55d9871b2..2ac68c52d53c7 100644
--- a/pandas/tests/extension/base/ops.py
+++ b/pandas/tests/extension/base/ops.py
@@ -91,10 +91,16 @@ def test_divmod(self, data):
self._check_divmod_op(s, divmod, 1, exc=self.divmod_e... | - closes #23287
- test added
- passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/24047 | 2018-12-02T13:34:22Z | 2019-03-20T00:05:18Z | 2019-03-20T00:05:18Z | 2019-03-20T00:05:21Z |
BUG: all-na corner case for str.cat | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 75d2196fe0b1e..3cec48be9b7ef 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1365,6 +1365,7 @@ Strings
- Bug in :meth:`Index.str.partition` was not nan-safe (:issue:`23558`).
- Bug in :meth:`Ind... | - [x] closes #24044, split off from #23167
- [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/24045 | 2018-12-02T11:56:17Z | 2018-12-02T20:58:49Z | 2018-12-02T20:58:49Z | 2018-12-02T23:14:53Z |
Added .editorconfig | diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000000..b0d1ce9ba91c9
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,8 @@
+root = true
+
+[*.py]
+charset = utf-8
+indent_style = space
+indent_size = 4
+insert_final_newline = true
+end_of_line = lf
| https://api.github.com/repos/pandas-dev/pandas/pulls/24042 | 2018-12-02T10:14:19Z | 2018-12-02T22:50:53Z | null | 2018-12-02T22:50:53Z | |
CLN: Adjust cdef types to fix MacPython 32 bit build | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index 67c2793e4bcef..65f3894cb631a 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -887,8 +887,8 @@ def tz_localize_to_utc(ndarray[int64_t] vals, object tz, object ambiguous=None,
in... | - [x] closes https://github.com/pandas-dev/pandas/pull/23984#issuecomment-443179198
- [ ] tests added / passed
Removing the types from these array declarations because the MacPython 32 bit build was failing.
cc @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/24041 | 2018-12-02T04:26:55Z | 2018-12-02T16:39:32Z | 2018-12-02T16:39:32Z | 2018-12-02T21:51:44Z |
REF/TST: Add more pytest idiom to mi indexing tests | diff --git a/pandas/tests/indexing/multiindex/test_getitem.py b/pandas/tests/indexing/multiindex/test_getitem.py
index efc1ebcbecee7..64625d6c74d8f 100644
--- a/pandas/tests/indexing/multiindex/test_getitem.py
+++ b/pandas/tests/indexing/multiindex/test_getitem.py
@@ -1,5 +1,3 @@
-from warnings import catch_warnings, s... | - [n/a ] follow on from #23912
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [n/a ] whatsnew entry
for this pass:
- the Test classes have been removed.
- `catch_warnings` used for the `.ix` deprecation replaced with `@pytest.mark.filterwarnings("ignore:\\... | https://api.github.com/repos/pandas-dev/pandas/pulls/24040 | 2018-12-01T23:54:19Z | 2018-12-02T20:07:02Z | null | 2023-05-11T01:18:33Z |
REF: Refactor Datetimelike delegation | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 0dedd8fe1cf4b..db1369fe41911 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -2,6 +2,7 @@
"""
Base and utility classes for tseries type pandas objects.
"""
+import operator
impo... | This is a generalization of PeriodIndex's dispatching to
PeriodArray, without any actual changes yet. This is split
from #24024, where DatetimeIndex and TimedeltaIndex will
implement and inherit from delgates similiar to PeriodDelegateMixin. | https://api.github.com/repos/pandas-dev/pandas/pulls/24039 | 2018-12-01T20:32:14Z | 2018-12-03T13:36:14Z | 2018-12-03T13:36:14Z | 2018-12-03T13:36:30Z |
REF: Refactor Date/TimeLikeOps | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 83ee335aa5465..a6f254c79fb51 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -10,11 +10,12 @@
from pandas._libs.tslibs.period import (
DIFFERENT_FREQ_INDEX, IncompatibleFrequency,... | No real functional changes, just an inheritance reorganization to make the diff at #24024 smaller.
Changes:
- Removes DatelikeOps from PeriodIndex (already had strftime via delegation)
- Moves Date/TimelikeOps from DatetimeIndex to DatetimeArray
- Moves TimelikeOps from TimedeltaIndex to TimedeltaArray | https://api.github.com/repos/pandas-dev/pandas/pulls/24038 | 2018-12-01T20:16:55Z | 2018-12-02T16:56:51Z | 2018-12-02T16:56:51Z | 2018-12-03T12:29:23Z |
DOC: Improve "inplace" param in Dataframe.rename() docs | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 06519da9a26d5..39c54c720fef6 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3909,8 +3909,8 @@ def rename(self, *args, **kwargs):
copy : boolean, default True
Also copy underlying data
inplace : boolean, defau... | - [x] closes #23076
- [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/24037 | 2018-12-01T17:39:36Z | 2018-12-03T11:58:40Z | null | 2018-12-03T11:58:40Z |
ENH: Add columns argument to read_feather() (#24025) | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 7617ad5b428a2..3fb7b925ceb6b 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -25,6 +25,7 @@ New features
dataframe's indexes from the resulting Parquet file. (:issue:`20768`)
- :meth:`DataFrame... | - [x] closes #24025
- [x] tests added / ~~passed~~
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I have added test case but when running
```
pytest pandas/tests/io/test_feather.py
```
test cases (including some of already existing test cases) fails with error
```... | https://api.github.com/repos/pandas-dev/pandas/pulls/24034 | 2018-12-01T10:16:11Z | 2018-12-04T12:23:53Z | 2018-12-04T12:23:53Z | 2018-12-04T12:25:45Z |
REF: Move non-raising parts of array_to_datetime outside of try/except | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 609608a0948c5..f545e113949d9 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -520,9 +520,10 @@ cpdef array_to_datetime(ndarray[object] values, str errors='raise',
# specify error conditions
assert is_raise or is_ignore or i... | Bit by bit we untangle this function. | https://api.github.com/repos/pandas-dev/pandas/pulls/24032 | 2018-12-01T02:14:03Z | 2018-12-02T18:03:45Z | 2018-12-02T18:03:45Z | 2018-12-02T19:19:22Z |
PERF: do NPY_NAT check inside get_datetime64_nanos | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 609608a0948c5..1205ebbe311e2 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -571,16 +571,13 @@ cpdef array_to_datetime(ndarray[object] values, str errors='raise',
elif is_datetime64_object(val):
seen_... | Bonus of a little simplification in `array_to_datetime`
The perf pickup comes from changing a python call `ts.view('i8')` to a cython call `get_datetime64_value(ts)`.
```
In [3]: val = np.datetime64('NaT', 'D')
In [4]: %timeit pd.Timestamp(val)
```
master (leaving out "The slowest run [...]"
```
100000 lo... | https://api.github.com/repos/pandas-dev/pandas/pulls/24031 | 2018-12-01T01:27:55Z | 2018-12-02T16:40:14Z | 2018-12-02T16:40:14Z | 2018-12-02T16:41:05Z |
Duplicate PR of #22854 (testing publishing docs from azure) | diff --git a/.travis.yml b/.travis.yml
index 6bbc44fba864a..03026647d6bb8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -52,7 +52,7 @@ matrix:
- python-gtk2
- dist: trusty
env:
- - JOB="3.6, lint, coverage" ENV_FILE="ci/deps/travis-36.yaml" PATTERN="not slow and not network" PANDAS_TESTING... | Publishing the docs from azure only works for changes that do not come from a fork. This PR is from a branch in the same pandas repo, to test that publishing works. But once confirmed that the publishing works, I'll close it, and the changes will be merged in #22854. | https://api.github.com/repos/pandas-dev/pandas/pulls/24030 | 2018-12-01T01:27:34Z | 2018-12-01T11:17:04Z | null | 2018-12-05T23:11:31Z |
TST: Check error message in overlapping bins test | diff --git a/pandas/tests/reshape/test_tile.py b/pandas/tests/reshape/test_tile.py
index b0445f5a9e2d5..19f1a9a8b65c7 100644
--- a/pandas/tests/reshape/test_tile.py
+++ b/pandas/tests/reshape/test_tile.py
@@ -92,9 +92,11 @@ def test_bins_from_intervalindex(self):
np.array([1, 1, 2],... | Follow-up to #23999.
xref #23922.
cc @jschendel @charlesdong1991 | https://api.github.com/repos/pandas-dev/pandas/pulls/24029 | 2018-12-01T01:09:34Z | 2018-12-01T01:59:00Z | 2018-12-01T01:59:00Z | 2018-12-01T01:59:26Z |
BUG: Fix concat series loss of timezone | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 15476c3bc2e13..e6a08362a70f7 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1545,6 +1545,7 @@ Reshaping
- Bug in :meth:`DataFrame.append` with a :class:`Series` with a dateutil timezone would ra... | Closes #23816 | https://api.github.com/repos/pandas-dev/pandas/pulls/24027 | 2018-11-30T23:03:45Z | 2018-12-05T23:21:47Z | 2018-12-05T23:21:47Z | 2018-12-05T23:22:15Z |
CLN: use unicode literals instead of compat.u | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 20f97bdec1107..5892d59e0797a 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -10,7 +10,7 @@
import pytest
from pytz import FixedOffset, utc
-from pandas.compat import PY3, u
+from pandas.compat import PY3
import pandas.util._test_decorators as ... | This gets _most_ of the non-test usages
| https://api.github.com/repos/pandas-dev/pandas/pulls/24026 | 2018-11-30T22:44:05Z | 2018-12-05T12:56:48Z | null | 2019-09-17T18:58:25Z |
REF: DatetimeLikeArray | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index e770a9e3c47f8..7628c53cefa06 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -430,6 +430,7 @@ Backwards incompatible API changes
- ``max_rows`` and ``max_cols`` parameters removed from :class:`HTM... | TODO:
- [x] DatetimeLikeArrayMixin.astype(int) ignores sign and size?
- [ ] _from_sequence too permissive?
- [x] OK with DatetimeArray.view?
- [x] tz vs. dtype in `DatetimeArray.__init__`: https://github.com/pandas-dev/pandas/pull/24024#discussion_r241445450
- [ ] Index._simple_new consistency: https://github.co... | https://api.github.com/repos/pandas-dev/pandas/pulls/24024 | 2018-11-30T20:23:49Z | 2019-01-02T18:20:35Z | 2019-01-02T18:20:35Z | 2019-01-04T16:04:24Z |
PERF: Use Categorical.equals in CategoricalIndex.equals | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index f888648a9363e..bd474092a0b78 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1213,6 +1213,7 @@ Performance Improvements
The speed increase is both when indexing by label (using .loc) and positi... | Avoids a materialization of the full array.
```python
import pandas as pd
import numpy as np
import string
a = pd.CategoricalIndex(np.random.choice(list(string.ascii_letters[:10]), 100_000))
b = a.copy()
c = pd.CategoricalIndex(np.random.choice(list(string.ascii_letters[:10]), 100_000))
print("eq-index"... | https://api.github.com/repos/pandas-dev/pandas/pulls/24023 | 2018-11-30T19:11:14Z | 2018-11-30T21:32:49Z | 2018-11-30T21:32:49Z | 2018-11-30T21:32:51Z |
BUG: GH24011 - Rich comparisons of Timestamps now return NotImplemented | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 3a539199acd6f..61cff302e5f4d 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -44,6 +44,7 @@ Backwards incompatible API changes
.. _whatsnew_0250.api_breaking.utc_offset_indexing:
+
Indexing w... | - [x] closes #24011
- [x] tests added / passed (see https://github.com/AlexandreDecan/pandas/blob/fix-24011/pandas/tests/tslibs/test_tslib.py#L26)
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24021 | 2018-11-30T17:49:28Z | 2019-04-05T00:40:48Z | 2019-04-05T00:40:47Z | 2019-04-05T00:40:52Z |
DEPS: Pinning versions of some dependencies to speed up environment creation | diff --git a/environment.yml b/environment.yml
index fc35f1290f1b1..aa3f1fe15820e 100644
--- a/environment.yml
+++ b/environment.yml
@@ -4,22 +4,21 @@ channels:
- conda-forge
dependencies:
# required
- - NumPy
+ - numpy>=1.15
- python=3
- python-dateutil>=2.5.0
- pytz
# development
- - Cython>=0... | - [X] closes #24012
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Conda is taking 45 minutes to create an environment with our `environment.yml`. While this is a bug in conda, it won't be fixed until the next version. So, a workaround for now ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24015 | 2018-11-30T14:40:39Z | 2018-12-01T12:09:44Z | 2018-12-01T12:09:44Z | 2018-12-01T12:09:48Z |
TST/CLN: parametrize tests\resample\test_time_grouper.py | diff --git a/pandas/tests/resample/conftest.py b/pandas/tests/resample/conftest.py
new file mode 100644
index 0000000000000..2130bd635b180
--- /dev/null
+++ b/pandas/tests/resample/conftest.py
@@ -0,0 +1,22 @@
+import pytest
+
+from pandas.tests.resample.test_base import (
+ downsample_methods, resample_methods, ups... | - [n/a] xref #17806
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [n/a] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24013 | 2018-11-30T12:38:06Z | 2018-12-03T12:30:53Z | 2018-12-03T12:30:53Z | 2018-12-03T13:14:18Z |
REF: Convert test_hashing to pytest idiom | diff --git a/pandas/tests/util/test_hashing.py b/pandas/tests/util/test_hashing.py
index 9f5b4f7b90d9f..84bc1863aadd9 100644
--- a/pandas/tests/util/test_hashing.py
+++ b/pandas/tests/util/test_hashing.py
@@ -10,272 +10,319 @@
import pandas.util.testing as tm
-class TestHashing(object):
-
- @pytest.fixture(para... | https://api.github.com/repos/pandas-dev/pandas/pulls/24009 | 2018-11-30T06:09:51Z | 2018-11-30T20:46:03Z | 2018-11-30T20:46:03Z | 2018-11-30T20:46:32Z | |
PERF: optimize NaT lookups in cython modules | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 1205ebbe311e2..5528e183af6e6 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -40,8 +40,8 @@ from tslibs.conversion cimport (tz_convert_single, _TSObject,
tz_convert_utc_to_tzlocal)
# many modules s... | By making `NaT` a cdef'd object that we can cimport, we take a module-level lookup out of each check of `if obj is NaT`. Since we tend to do this check a lot, avoiding these global lookups can get us some mileage:
```
In [3]: vals = np.array([pd.NaT for _ in range(10**6)])
In [4]: %timeit pd.to_datetime(vals)
``... | https://api.github.com/repos/pandas-dev/pandas/pulls/24008 | 2018-11-30T05:24:15Z | 2018-12-02T23:06:55Z | 2018-12-02T23:06:55Z | 2018-12-02T23:10:25Z |
WIP: multi-timezone handling for array_to_datetime | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index efabc5ad0b1ba..09b10f315d892 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -32,7 +32,9 @@ from tslibs.np_datetime import OutOfBoundsDatetime
from tslibs.parsing import parse_datetime_string
from tslibs.timedeltas cimport cast_f... | cc @mroeschke
ATM `array_to_datetime` handles strings and datetime objects very differently, with `conversion.datetime_to_datetime64` picking up (some of) the slack. This unifies the treatment of strings/datetimes within array_to_datetime, rendering `conversion_to_datetime64` (and some ugly try/excepts in `pd.to_d... | https://api.github.com/repos/pandas-dev/pandas/pulls/24006 | 2018-11-29T23:52:59Z | 2019-04-22T15:42:17Z | null | 2020-04-05T17:42:58Z |
API: fix str-accessor on CategoricalIndex | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index f2cb6a3389a6d..cf2945d8544a5 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1256,6 +1256,7 @@ Categorical
- Bug in :meth:`Categorical.take` with a user-provided ``fill_value`` not encoding the `... | closes #23555
closes #23556
split off from #23167
- [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/24005 | 2018-11-29T23:37:46Z | 2018-12-02T23:06:09Z | 2018-12-02T23:06:09Z | 2018-12-02T23:14:26Z |
CLEAN: Removing outdated and unused CI files | diff --git a/ci/README.txt b/ci/README.txt
deleted file mode 100644
index bb71dc25d6093..0000000000000
--- a/ci/README.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-Travis is a ci service that's well-integrated with GitHub.
-The following types of breakage should be detected
-by Travis builds:
-
-1) Failing tests on any supporte... | Removing outdated and unused files.
- `ci/print_versions.py` doesn't work, as the used path has changed. It's not used anywhere in the code, and when needed, `python -c "import pandas; pandas.show_versions();"` is used instead.
- `ci/README.txt` it's outdated and incomplete. After updating the CI and making it more c... | https://api.github.com/repos/pandas-dev/pandas/pulls/24004 | 2018-11-29T23:26:55Z | 2018-11-30T21:34:12Z | 2018-11-30T21:34:12Z | 2018-11-30T21:34:14Z |
Fix PEP-8 issues in contributing.rst | diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst
index 6fdb5bdbb6b1d..c55452cf27309 100644
--- a/doc/source/contributing.rst
+++ b/doc/source/contributing.rst
@@ -670,6 +670,8 @@ Otherwise, you need to do it manually:
.. code-block:: python
+ import warnings
+
def old_func():
... | https://api.github.com/repos/pandas-dev/pandas/pulls/24003 | 2018-11-29T22:54:20Z | 2018-12-02T22:00:37Z | 2018-12-02T22:00:37Z | 2018-12-03T19:09:36Z | |
DOC: Fix PEP-8 issues in computation.rst and comparison_*.rst | diff --git a/doc/source/comparison_with_r.rst b/doc/source/comparison_with_r.rst
index eecacde8ad14e..704b0c4d80537 100644
--- a/doc/source/comparison_with_r.rst
+++ b/doc/source/comparison_with_r.rst
@@ -6,7 +6,7 @@
import pandas as pd
import numpy as np
- pd.options.display.max_rows=15
+ pd.options.disp... | - Fix PEP-8 issues in comparison_*.rst
- Fix PEP-8 issues in computation.rst
| https://api.github.com/repos/pandas-dev/pandas/pulls/24002 | 2018-11-29T22:54:02Z | 2018-12-02T17:22:24Z | 2018-12-02T17:22:24Z | 2018-12-03T19:10:37Z |
REF: prelim for fixing array_to_datetime | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index ddeaffbfb3cc0..609608a0948c5 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -463,8 +463,7 @@ def array_with_unit_to_datetime(ndarray values, object unit,
@cython.boundscheck(False)
cpdef array_to_datetime(ndarray[object] values, s... | `tslib.array_to_datetime` has an unused `format` kwarg. This gets rid of it.
`to_datetime` (or more specifically, `_convert_listlike_datetimes`) has a bunch of boxing logic inside a try/except that doesn't need to be, obscures what Exception we're trying to catch. This moves that code outside the try/except and de... | https://api.github.com/repos/pandas-dev/pandas/pulls/24000 | 2018-11-29T20:07:57Z | 2018-11-29T22:01:14Z | 2018-11-29T22:01:14Z | 2018-11-29T22:29:04Z |
BUG: pandas.cut should disallow overlapping IntervalIndex bins | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index f888648a9363e..3c01a6d330071 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1529,6 +1529,7 @@ Reshaping
- Bug in :func:`pandas.melt` when passing column names that are not present in ``DataFrame... | - [ ] closes #23980
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23999 | 2018-11-29T18:41:06Z | 2018-12-01T00:17:14Z | 2018-12-01T00:17:13Z | 2018-12-01T00:18:15Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.