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 |
|---|---|---|---|---|---|---|---|
ENH: Expose symlog scaling in plotting API | diff --git a/.gitignore b/.gitignore
index 4598714db6c6a..816aff376fc83 100644
--- a/.gitignore
+++ b/.gitignore
@@ -101,7 +101,8 @@ asv_bench/pandas/
# Documentation generated files #
#################################
doc/source/generated
-doc/source/api/generated
+doc/source/user_guide/styled.xlsx
+doc/source/refe... | - [ ] closes #24867
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24871 | 2019-01-21T23:24:09Z | 2019-01-27T22:04:22Z | null | 2019-01-27T22:04:23Z |
REF: move methods into cdef classes | diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx
index 3147f36dcc835..eb511b1adb28a 100644
--- a/pandas/_libs/interval.pyx
+++ b/pandas/_libs/interval.pyx
@@ -18,7 +18,6 @@ cnp.import_array()
cimport pandas._libs.util as util
-util.import_array()
from pandas._libs.hashtable cimport Int64Vector... | A bunch of methods are defined in Timestamp/Timedelta that can be defined in _Timestamp/_Timedelta. Moving these into the cdef classes is supposedly slightly more efficient. If we can work around the `__cinit__/__new__` rules, we might be able to get rid of _Timestamp entirely.
Fix a couple of typos while we're at... | https://api.github.com/repos/pandas-dev/pandas/pulls/24869 | 2019-01-21T21:17:44Z | 2019-01-28T18:05:46Z | null | 2020-04-05T17:37:19Z |
TST: resolve issues with test_constructor_dtype_datetime64 | diff --git a/pandas/tests/frame/test_dtypes.py b/pandas/tests/frame/test_dtypes.py
index b37bf02a6b8e7..ca54993712439 100644
--- a/pandas/tests/frame/test_dtypes.py
+++ b/pandas/tests/frame/test_dtypes.py
@@ -808,11 +808,15 @@ def test_astype_to_incorrect_datetimelike(self, unit):
other = "m8[{}]".format(unit)... | closes #24827
xref https://github.com/pandas-dev/pandas/pull/24812#discussion_r248666576
while changing pytest.raises to use the context manager and check the error message it appeared that a test was not raising exceptions as originally intended.
the test was related to a legacy numpy related issue #3414 | https://api.github.com/repos/pandas-dev/pandas/pulls/24868 | 2019-01-21T21:12:00Z | 2019-03-13T15:44:41Z | 2019-03-13T15:44:41Z | 2019-03-13T17:17:59Z |
BUG: Ensure .astype doesn't use PandasArray | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 360f3ea23ec97..e631a6b4937c4 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -27,13 +27,13 @@
CategoricalDtype, ExtensionDtype, PandasExtensionDtype)
from pandas.core.dtypes.generic import (
... | On 0.24.0rc1, it's possible to end up with a PandasArray in internals.
```python
In [8]: ser = pd.Series([1, 2])
In [9]: ser.astype(ser.array.dtype)._data.blocks[0]
Out[9]: ExtensionBlock: 2 dtype: int64
```
| https://api.github.com/repos/pandas-dev/pandas/pulls/24866 | 2019-01-21T19:22:21Z | 2019-04-28T21:14:54Z | 2019-04-28T21:14:54Z | 2019-04-28T21:14:58Z |
CLN: fix typo in asv eval.Query suite | diff --git a/asv_bench/benchmarks/eval.py b/asv_bench/benchmarks/eval.py
index 837478efbad64..68df38cd50742 100644
--- a/asv_bench/benchmarks/eval.py
+++ b/asv_bench/benchmarks/eval.py
@@ -45,7 +45,7 @@ def setup(self):
index = pd.date_range('20010101', periods=N, freq='T')
s = pd.Series(index)
... | The `eval.Query` asv suite has a large amount of setup overhead due to a typo:
```
$ time asv dev -b eval.Query
· Discovering benchmarks
· Running 3 total benchmarks (1 commits * 1 environments * 3 benchmarks)
[ 0.00%] ·· Benchmarking existing-py_home_chris_anaconda3_bin_python
[ 16.67%] ··· eval.Query.time_quer... | https://api.github.com/repos/pandas-dev/pandas/pulls/24865 | 2019-01-21T18:58:36Z | 2019-01-21T19:38:39Z | 2019-01-21T19:38:39Z | 2019-01-21T19:38:43Z |
BLD: silence npy_no_deprecated warnings with numpy>=1.16.0 | diff --git a/setup.py b/setup.py
index ed2d905f4358b..4bf040b8c8e20 100755
--- a/setup.py
+++ b/setup.py
@@ -457,6 +457,11 @@ def run(self):
directives['linetrace'] = True
macros = [('CYTHON_TRACE', '1'), ('CYTHON_TRACE_NOGIL', '1')]
+# in numpy>=1.16.0, silence build warnings about deprecated API usage
+# ... | - [ ] 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/24864 | 2019-01-21T16:36:36Z | 2019-01-26T17:47:33Z | 2019-01-26T17:47:32Z | 2020-04-05T17:37:14Z |
BUG: fix floating precision formatting in presence of inf | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 69b59793f7c0d..6787022ba295c 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1751,6 +1751,7 @@ I/O
- Bug in :meth:`DataFrame.to_stata`, :class:`pandas.io.stata.StataWriter` and :class:`pandas.io.... | - [x] closes #24861
- [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/24863 | 2019-01-21T16:34:06Z | 2019-01-23T12:23:51Z | 2019-01-23T12:23:50Z | 2019-01-23T12:23:56Z |
BUG: Properly parse unicode usecols names in CSV | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index a4598b315cbb7..ff017c743a00f 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1705,6 +1705,7 @@ I/O
^^^
- Bug in :func:`read_csv` in which a column specified with ``CategoricalDtype`` of boolea... | Closes #13253.
| https://api.github.com/repos/pandas-dev/pandas/pulls/24856 | 2019-01-21T01:53:36Z | 2019-01-21T14:21:32Z | 2019-01-21T14:21:31Z | 2019-01-27T00:26:55Z |
DOC: Document AttributeError for accessor | diff --git a/doc/source/extending.rst b/doc/source/extending.rst
index 3cb7e1ae019e1..e6928d9efde06 100644
--- a/doc/source/extending.rst
+++ b/doc/source/extending.rst
@@ -28,8 +28,14 @@ decorate a class, providing the name of attribute to add. The class's
@pd.api.extensions.register_dataframe_accessor("geo")
... | Closes https://github.com/pandas-dev/pandas/issues/20579 | https://api.github.com/repos/pandas-dev/pandas/pulls/24855 | 2019-01-21T01:41:53Z | 2019-01-21T11:58:08Z | 2019-01-21T11:58:07Z | 2019-01-21T11:58:12Z |
DEPS: Bump pyarrow min version to 0.9.0 | diff --git a/ci/deps/travis-27.yaml b/ci/deps/travis-27.yaml
index 0f2194e71de31..2624797b24fa1 100644
--- a/ci/deps/travis-27.yaml
+++ b/ci/deps/travis-27.yaml
@@ -22,7 +22,7 @@ dependencies:
- patsy
- psycopg2
- py
- - pyarrow=0.7.0
+ - pyarrow=0.9.0
- PyCrypto
- pymysql=0.6.3
- pytables
diff --gi... | xref:
* https://github.com/pandas-dev/pandas/issues/24617#issuecomment-451702104
* https://github.com/pandas-dev/pandas/issues/24767#issuecomment-455468954
* https://github.com/pandas-dev/pandas/issues/24617#issuecomment-451774147
Closes #24767. | https://api.github.com/repos/pandas-dev/pandas/pulls/24854 | 2019-01-21T01:27:57Z | 2019-01-21T02:46:33Z | 2019-01-21T02:46:32Z | 2019-01-21T03:04:24Z |
Feature/groupby repr ellipses 1135 | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index f0a359a75f8fc..47b61ac39ee7f 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -212,8 +212,9 @@ Other API Changes
- :class:`Timestamp` and :class:`Timedelta` scalars now implement the :meth:`to_nump... | - [ ] closes #1135
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Currently one test is failing:
```
def test_groups(self, df):
grouped = df.groupby(['A'])
groups = grouped.groups
assert groups is grouped.gro... | https://api.github.com/repos/pandas-dev/pandas/pulls/24853 | 2019-01-21T00:17:27Z | 2019-07-11T16:09:19Z | null | 2019-07-11T16:09:19Z |
DOC: CategoricalIndex doc string | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index c6d31339f950d..b494c41c3b58c 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -42,20 +42,35 @@
typ='method', overwrite=True)
class CategoricalIndex(Index, accessor.PandasDelegate):
"""
- ... | Improvements to the doc string of ``CategoricalIndex`` . | https://api.github.com/repos/pandas-dev/pandas/pulls/24852 | 2019-01-20T23:23:53Z | 2019-02-28T00:30:34Z | 2019-02-28T00:30:34Z | 2019-02-28T11:25:03Z |
fix MacPython pandas-wheels failure | diff --git a/pandas/tests/reshape/test_concat.py b/pandas/tests/reshape/test_concat.py
index 899daf488638a..ec6123bae327e 100644
--- a/pandas/tests/reshape/test_concat.py
+++ b/pandas/tests/reshape/test_concat.py
@@ -975,7 +975,8 @@ def test_append_different_columns_types_raises(
msg = (r"unorderable types: (I... | xref https://github.com/pandas-dev/pandas/pull/24838#issuecomment-455878312 | https://api.github.com/repos/pandas-dev/pandas/pulls/24851 | 2019-01-20T21:30:39Z | 2019-01-20T22:14:55Z | 2019-01-20T22:14:55Z | 2019-01-20T22:29:16Z |
BUG : ValueError in case on NaN value in groupby columns | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 3268575c7064d..c2e5f3b3c9aa2 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1782,6 +1782,7 @@ Groupby/Resample/Rolling
- Bug in :meth:`DataFrame.groupby` did not respect the ``observed`` argumen... | Fixes GH24740
- [x] closes #24740
- [x] closes #21151
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
**Before**
```python
In [5]: ds.groupby("b").groups
... | https://api.github.com/repos/pandas-dev/pandas/pulls/24850 | 2019-01-20T21:14:03Z | 2019-01-22T23:29:34Z | 2019-01-22T23:29:34Z | 2019-01-22T23:29:38Z |
Start whatsnew for 0.24.1 and 0.25.0 | diff --git a/doc/source/whatsnew/v0.24.1.rst b/doc/source/whatsnew/v0.24.1.rst
new file mode 100644
index 0000000000000..ee4b7ab62b31a
--- /dev/null
+++ b/doc/source/whatsnew/v0.24.1.rst
@@ -0,0 +1,77 @@
+:orphan:
+
+.. _whatsnew_0241:
+
+Whats New in 0.24.1 (February XX, 2019)
+---------------------------------------
... | https://api.github.com/repos/pandas-dev/pandas/pulls/24848 | 2019-01-20T19:59:47Z | 2019-01-21T13:21:49Z | 2019-01-21T13:21:49Z | 2019-01-21T13:21:54Z | |
ERR/TST: Add pytest idiom to dtypes/test_cast.py | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 4049b0321f221..ad62146dda268 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -354,7 +354,7 @@ def infer_dtype_from_scalar(val, pandas_dtype=False):
# a 1-element ndarray
if isinstance(val, np.ndarray):
- ... | Also corrects error message in `infer_dtype_from_scalar`. | https://api.github.com/repos/pandas-dev/pandas/pulls/24847 | 2019-01-20T19:56:28Z | 2019-01-20T22:07:32Z | 2019-01-20T22:07:32Z | 2019-01-20T23:29:23Z |
REF/CLN: ops boilerplate #23853 | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 35b662eaae9a5..e2d0571405d80 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -5,7 +5,7 @@
import numpy as np
-from pandas._libs import algos as libalgos, lib
+from pandas._libs import ... | - closes #23853
- passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Implement a wrapper class other than a single decorator. It is tidier to add more conditions for ops later.
| https://api.github.com/repos/pandas-dev/pandas/pulls/24846 | 2019-01-20T14:28:31Z | 2019-04-05T00:52:20Z | null | 2019-04-05T00:52:20Z |
ENH: to_datetime support iso week year (16607) Updated | diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 21df1a3aacd59..faff68b636109 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -8,16 +8,16 @@ Our main contributing guide can be found [in this repo](https://github.com/panda
If you are looking to contribute to the *pandas* code... | - [x] closes #16607
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I found the issue stagnant, but since the fix was already in place, I manually took the code @rosygupta made and applied it onto latest master. Rebase wasn't an option that I f... | https://api.github.com/repos/pandas-dev/pandas/pulls/24844 | 2019-01-20T04:58:43Z | 2019-03-05T07:50:36Z | null | 2019-03-05T08:16:52Z |
DOC: Clean sort_values and sort_index docstrings | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index a0ee9cb253fef..63d16f7bcb78d 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -530,7 +530,7 @@ def set_axis(self, labels, axis=0, inplace=None):
The axis to update. The value 0 identifies the rows, and 1
iden... | Fixes some capitalization | https://api.github.com/repos/pandas-dev/pandas/pulls/24843 | 2019-01-20T00:57:42Z | 2019-01-27T03:05:47Z | 2019-01-27T03:05:47Z | 2019-01-27T03:13:54Z |
BUG-16807-1 SparseFrame fills with default_fill_value if data is None | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 170e7f14da397..b1df419d15c1b 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -226,7 +226,7 @@ Sparse
^^^^^^
- Significant speedup in `SparseArray` initialization that benefits most operations, ... | - [ ] closes #16807
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Previously, the constructor for SparseFrame would default to `np.nan` if the data parameter was `None`, even if a `default_fill_value` is specified. This PR fixes this. | https://api.github.com/repos/pandas-dev/pandas/pulls/24842 | 2019-01-19T22:30:15Z | 2019-03-03T04:46:45Z | 2019-03-03T04:46:44Z | 2019-03-03T04:46:51Z |
Make DataFrame.to_html output full content | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 4032dc20b2e19..617d65dbbde1d 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -154,6 +154,7 @@ MultiIndex
I/O
^^^
+- Bug in :func:`DataFrame.to_html()` where values were truncated using display ... | - [ ] closes #17004
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24841 | 2019-01-19T21:20:01Z | 2019-03-03T02:59:52Z | 2019-03-03T02:59:52Z | 2019-03-05T12:25:34Z |
BUG: Index Name is not displayed with header=False in to_csv | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 1717b00664f92..efc21c2d91f84 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2956,12 +2956,17 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
index : bool, default True
Write row ... | - [ ] xref #24546
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24840 | 2019-01-19T20:37:33Z | 2019-06-27T03:14:56Z | null | 2019-08-23T13:27:59Z |
STY: use pytest.raises context syntax (reshape) | diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py
index 7861a122afdb6..e11847d2b8ce2 100644
--- a/pandas/core/reshape/merge.py
+++ b/pandas/core/reshape/merge.py
@@ -1087,7 +1087,7 @@ def _validate(self, validate):
elif validate in ["one_to_many", "1:m"]:
if not left_unique:... | xref #24332 | https://api.github.com/repos/pandas-dev/pandas/pulls/24838 | 2019-01-19T15:48:27Z | 2019-01-19T21:29:36Z | 2019-01-19T21:29:35Z | 2019-01-20T22:31:57Z |
Fix memory growth bug in read_csv | diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py
index 771f2795334e1..d42a15d61fb0d 100644
--- a/asv_bench/benchmarks/io/csv.py
+++ b/asv_bench/benchmarks/io/csv.py
@@ -214,4 +214,23 @@ def time_baseline(self):
names=list(string.digits[:9]))
+class ReadCSVMemoryGrowth(B... | The edge case where we hit powers of 2 every time during allocation can be painful.
Closes #24805.
xref #23527. | https://api.github.com/repos/pandas-dev/pandas/pulls/24837 | 2019-01-19T11:40:03Z | 2019-01-20T16:01:34Z | 2019-01-20T16:01:33Z | 2019-01-20T19:51:41Z |
fixed regression commit | diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json
index 9c333f62810f4..fa098e2455683 100644
--- a/asv_bench/asv.conf.json
+++ b/asv_bench/asv.conf.json
@@ -118,9 +118,8 @@
// skipped for the matching benchmark.
//
"regressions_first_commits": {
- ".*": "v0.20.0"
+ ".*": "040952... | Fixes an issue with the ASV config.
It seems that ASV may not understand tags in the regressions_first_commit. I've replaced that tag with the commit for 0.23.4
I removed the regression threashold, as it's already the default. | https://api.github.com/repos/pandas-dev/pandas/pulls/24835 | 2019-01-19T04:57:35Z | 2019-01-19T13:41:44Z | 2019-01-19T13:41:44Z | 2019-01-19T13:41:47Z |
REF remove unused imports from tseries.frequencies; update imports elsewhere | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 700e9edd89bd0..e0c71b5609096 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -4,7 +4,8 @@
import numpy as np
-from pandas._libs.tslibs import NaT, iNaT, period as libperiod
+from pandas._libs.tslibs impor... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24834 | 2019-01-19T00:04:49Z | 2019-01-19T21:34:05Z | 2019-01-19T21:34:05Z | 2019-01-19T22:29:23Z |
POC: move to_offset to libfrequencies | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 798e338d5581b..c6715bb924552 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -39,7 +39,7 @@ from pandas._libs.tslibs.nattype import nat_strings, iNaT # noqa:F821
from pandas._libs.tslibs.nattype cimport (
checknull_with_nat, N... | The runtime non-cython import of to_offset is a sticking point in a bunch of tslibs code. The reason we haven't moved to_offset up into cython is because it requires all of tseries.offsets, and we haven't wanted to move all of that up.
This moves to_offset up by defining appropriate dictionaries in the cython modul... | https://api.github.com/repos/pandas-dev/pandas/pulls/24833 | 2019-01-18T23:04:42Z | 2019-02-14T18:22:56Z | null | 2020-04-05T17:37:28Z |
Implement+Test Tick.__rtruediv__ | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 856aa52f82cf5..e28462f7103b9 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -18,6 +18,7 @@ from numpy cimport int64_t
cnp.import_array()
+from pandas._libs.tslibs cimport util
from pandas._l... | - [ ] 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/24832 | 2019-01-18T21:43:30Z | 2019-02-01T20:03:22Z | 2019-02-01T20:03:22Z | 2019-02-01T20:59:36Z |
Question regarding Series.argsort documentation #24816 | diff --git a/pandas/core/series.py b/pandas/core/series.py
index eb412add7bbbb..0c8e697c572e8 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -2992,11 +2992,13 @@ def argsort(self, axis=0, kind='quicksort', order=None):
Parameters
----------
- axis : int (can only be zero)
+... | - [ ] closes #24816
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24830 | 2019-01-18T19:38:07Z | 2019-01-19T01:35:19Z | 2019-01-19T01:35:18Z | 2019-01-19T01:35:42Z |
Excel Reader Refactor - Base Class Introduction | diff --git a/pandas/io/excel.py b/pandas/io/excel.py
index 3a7c39ec65309..3d85ae7fd1f46 100644
--- a/pandas/io/excel.py
+++ b/pandas/io/excel.py
@@ -375,60 +375,25 @@ def read_excel(io,
**kwds)
-class _XlrdReader(object):
-
- def __init__(self, filepath_or_buffer):
- """Reader using xlrd engine.
... | This is to provide further enablement of new Excel readers like openpyxl and potentially one for reading binary files.
The main goal here was the introduction of a base reader class which defines the properties / methods that any subclass needs to define to plug in to.
This ultimately could be refactored into a s... | https://api.github.com/repos/pandas-dev/pandas/pulls/24829 | 2019-01-18T18:04:38Z | 2019-01-26T15:34:47Z | 2019-01-26T15:34:47Z | 2019-01-26T15:39:36Z |
STY: use pytest.raises context syntax (groupby) | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index e52ab66ef9cb4..8766fdbc29755 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -438,7 +438,7 @@ def get_converter(s):
return [self.indices[name] for name in names]
e... | xref #24332 | https://api.github.com/repos/pandas-dev/pandas/pulls/24828 | 2019-01-18T17:37:27Z | 2019-01-20T18:44:06Z | 2019-01-20T18:44:06Z | 2019-01-20T22:33:50Z |
TST: remove patches to pandas.util.testing.N | diff --git a/pandas/tests/indexing/multiindex/conftest.py b/pandas/tests/indexing/multiindex/conftest.py
index 046fc19c0d9c8..545e092d9ce65 100644
--- a/pandas/tests/indexing/multiindex/conftest.py
+++ b/pandas/tests/indexing/multiindex/conftest.py
@@ -21,8 +21,7 @@ def multiindex_dataframe_random_data():
def multiind... | xref https://github.com/pandas-dev/pandas/pull/24769#issuecomment-455326819 | https://api.github.com/repos/pandas-dev/pandas/pulls/24826 | 2019-01-18T09:23:19Z | 2019-01-18T19:01:45Z | 2019-01-18T19:01:45Z | 2019-01-18T22:16:46Z |
DOC/CLN: Timezone section in timeseries.rst | diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst
index f56ad710973dd..5841125817d03 100644
--- a/doc/source/user_guide/timeseries.rst
+++ b/doc/source/user_guide/timeseries.rst
@@ -2129,11 +2129,13 @@ These can easily be converted to a ``PeriodIndex``:
Time Zone Handling
------... | - Shortened some of the examples to show the minimum, necessary functionality
- Removed some redundant examples
- Refactored the ambiguous times handling section
- Showcase `tz_localize` more in the beginning of the section & noted that pandas doesn't support `datetime.timezone` objects yet
| https://api.github.com/repos/pandas-dev/pandas/pulls/24825 | 2019-01-18T06:22:09Z | 2019-02-03T20:34:54Z | 2019-02-03T20:34:54Z | 2019-02-03T21:36:41Z |
avoid non-standard imports | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 3e62a08975dad..c8bfc564e7573 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -112,6 +112,7 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
# Check for imports from pandas.core.common instead of `import pandas.core.common as com`
MSG='C... | - [ ] 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/24822 | 2019-01-18T02:31:12Z | 2019-01-19T21:27:08Z | 2019-01-19T21:27:08Z | 2019-01-19T22:28:30Z |
use Timedelta instead of convert_to_timedelta64 | diff --git a/pandas/_libs/tslibs/timedeltas.pxd b/pandas/_libs/tslibs/timedeltas.pxd
index c02a840281266..097309b17823b 100644
--- a/pandas/_libs/tslibs/timedeltas.pxd
+++ b/pandas/_libs/tslibs/timedeltas.pxd
@@ -5,4 +5,4 @@ from numpy cimport int64_t
# Exposed for tslib, not intended for outside use.
cdef int64_t ca... | - [ ] 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/24821 | 2019-01-18T02:14:53Z | 2019-01-18T22:40:07Z | 2019-01-18T22:40:07Z | 2019-01-18T22:41:14Z |
BUG: DataFrame.merge(suffixes=) does not respect None | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 09626be713c4f..80c76d14a5938 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -181,6 +181,7 @@ Groupby/Resample/Rolling
Reshaping
^^^^^^^^^
+- Bug in :func:`pandas.merge` adds a string of ``None... | - [ ] closes #24782
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24819 | 2019-01-17T20:28:06Z | 2019-02-06T03:51:07Z | 2019-02-06T03:51:06Z | 2019-02-09T16:05:25Z |
BUG: Format mismatch doesn't coerce to NaT | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 3685a24d60e74..673a1b8a8581f 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1548,6 +1548,7 @@ Datetimelike
- Bug in :meth:`DatetimeIndex.astype`, :meth:`PeriodIndex.astype` and :meth:`TimedeltaI... | - [x] closes #24763
- [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/24815 | 2019-01-17T11:55:31Z | 2019-01-21T14:19:56Z | 2019-01-21T14:19:56Z | 2019-01-22T08:49:49Z |
STY: use pytest.raises context syntax (series) | diff --git a/pandas/tests/series/test_alter_axes.py b/pandas/tests/series/test_alter_axes.py
index 99a4f0c424ce9..cd4c0a7924d39 100644
--- a/pandas/tests/series/test_alter_axes.py
+++ b/pandas/tests/series/test_alter_axes.py
@@ -16,11 +16,16 @@ class TestSeriesAlterAxes(object):
def test_setindex(self, string_se... | xref #24332 | https://api.github.com/repos/pandas-dev/pandas/pulls/24812 | 2019-01-17T00:44:31Z | 2019-01-17T12:48:42Z | 2019-01-17T12:48:42Z | 2019-01-20T22:35:09Z |
BUG: Offset-based rolling window, with only one raw in dataframe and closed='left', max and min functions make python crash | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 5213120b33f06..bcd1abba30a67 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1808,6 +1808,7 @@ Plotting
Groupby/Resample/Rolling
^^^^^^^^^^^^^^^^^^^^^^^^
+- Bug in :func:`pandas.core.window.Ro... | - [ ] closes #24718
- [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/24811 | 2019-01-17T00:14:12Z | 2019-01-18T12:22:46Z | 2019-01-18T12:22:46Z | 2019-01-21T23:18:19Z |
TST/CLN: follow-up to #24750 | diff --git a/pandas/tests/series/indexing/test_boolean.py b/pandas/tests/series/indexing/test_boolean.py
index 89b481b92b73f..9017d13051b88 100644
--- a/pandas/tests/series/indexing/test_boolean.py
+++ b/pandas/tests/series/indexing/test_boolean.py
@@ -160,28 +160,22 @@ def test_where_unsafe_float(float_dtype):
as... | cc @jreback
`test_where_unsafe_itemsize_fail` changed to `test_where_upcast` in #24750
this follow-on PR merges `test_where_upcast` into `test_where_unsafe_upcast` to avoid duplication.
| https://api.github.com/repos/pandas-dev/pandas/pulls/24810 | 2019-01-16T21:44:38Z | 2019-01-17T12:55:12Z | 2019-01-17T12:55:12Z | 2019-01-20T22:36:01Z |
str.replace('.','') should replace every character? (fix) | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 3685a24d60e74..463142715e311 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -432,6 +432,30 @@ Backwards incompatible API changes
Pandas 0.24.0 includes a number of API breaking changes.
+Repl... | - [ X] closes #24804
- [X ] tests added / passed
- [ X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ X] fix replace pattern problem
| https://api.github.com/repos/pandas-dev/pandas/pulls/24809 | 2019-01-16T21:42:14Z | 2019-01-24T18:13:08Z | null | 2019-01-24T18:13:08Z |
ENH Series.getattr for attributes lacking built-in accessors | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index d69e948e31e33..7d98ecdcb1bbb 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -200,6 +200,27 @@ is a float.
pd.array([1, 2, np.nan])
+.. _whatsnew_0240.enhancements.series_getattr
+
+Attribu... | Adds a `Series.getattr()` method for accessing attributes from a Series of objects that do not have built-in accessors like those in `Series.str` or `Series.dt`. This is faster than mapping/applying a `lambda obj: obj.attr` function because it uses `operator.attrgetter` and is also syntactically concise, similar to oth... | https://api.github.com/repos/pandas-dev/pandas/pulls/24808 | 2019-01-16T19:02:42Z | 2019-01-18T12:23:16Z | null | 2019-01-18T12:23:25Z |
DEPR/API: Non-ns precision in Index constructors | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index fbc3c4fe4ce92..ff4aa9968f294 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1159,6 +1159,7 @@ Other API Changes
- :meth:`CategoricalIndex.reindex` now raises a ``ValueError`` if the target index... | This deprecates passing dtypes without a precision to DatetimeIndex
and TimedeltaIndex
```python
In [2]: pd.DatetimeIndex(['2000'], dtype='datetime64')
/Users/taugspurger/.virtualenvs/pandas-dev/bin/ipython:1: FutureWarning: Passing in 'datetime64' dtype with no precision is deprecated
and will raise in a future... | https://api.github.com/repos/pandas-dev/pandas/pulls/24806 | 2019-01-16T16:13:26Z | 2019-01-21T14:18:15Z | 2019-01-21T14:18:14Z | 2019-01-21T14:18:18Z |
Revert unnecessary changes from 22019 | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index d69e948e31e33..868c5e280d2c3 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1163,36 +1163,6 @@ data is incompatible with a passed ``dtype=`` (:issue:`15832`)
...
OverflowError: Trying t... | At the time, https://github.com/pandas-dev/pandas/pull/22019 seemed to
break API in a few places. Since then, those API breaking changes have
disappeared, so the changes to the tests and the release note are no
longer necessary.
This restores the tests to the 0.23.4 version.
Closes https://github.com/pandas-de... | https://api.github.com/repos/pandas-dev/pandas/pulls/24802 | 2019-01-16T14:31:03Z | 2019-01-16T16:02:00Z | 2019-01-16T16:01:59Z | 2019-01-16T16:02:04Z |
Whatsnew reorganization | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 868c5e280d2c3..3685a24d60e74 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -10,92 +10,16 @@ What's New in 0.24.0 (January XX, 2019)
{{ header }}
-
These are the changes in pandas 0.24.0. Se... | Changes
1. Adds a highlights section (open to suggestions on what should be added / removed from here)
2. Reorders the enhcancements section to be
1. Highlighted features
2. Other features (sections)
3. List of other new features (one-liners)
3. Reorders the "Backwards incompatible changes" section.... | https://api.github.com/repos/pandas-dev/pandas/pulls/24799 | 2019-01-16T13:23:18Z | 2019-01-16T16:23:25Z | 2019-01-16T16:23:25Z | 2019-01-24T14:42:06Z |
TST: Add test for C parser handling binary mode | diff --git a/pandas/tests/io/parser/test_c_parser_only.py b/pandas/tests/io/parser/test_c_parser_only.py
index a405617b4132d..c089a189ae551 100644
--- a/pandas/tests/io/parser/test_c_parser_only.py
+++ b/pandas/tests/io/parser/test_c_parser_only.py
@@ -575,3 +575,17 @@ def test_file_handles_mmap(c_parser_only, csv1):
... | Python's native CSV library doesn't accept such files, but we do for the C parser.
Closes #23779. | https://api.github.com/repos/pandas-dev/pandas/pulls/24797 | 2019-01-16T10:49:52Z | 2019-01-16T21:28:51Z | 2019-01-16T21:28:50Z | 2019-01-16T21:28:51Z |
PERF: support parallel calculation of nancorr | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index b3c519ab99b6e..2de8573b13b91 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -2,10 +2,12 @@
import cython
from cython import Py_ssize_t
+from cython.parallel import prange
from libc.stdlib cimport malloc, free
from libc.strin... | This is a proposal for using openmp to speedup the nancorr function (used by pd.DataFrame.corr).
If this is something that is useful, it can probably be implemented for other cython algorithms implemented in algos.pyx.
Also, the interface has to be decided on: how to choose whether to use parallelization or not, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24795 | 2019-01-16T08:47:15Z | 2019-01-16T15:15:16Z | null | 2019-01-16T16:29:04Z |
Avoid unnecessary use of _coerce_scalar_to_timedelta_type | diff --git a/pandas/core/computation/pytables.py b/pandas/core/computation/pytables.py
index db409b215a78d..00de29b07c75d 100644
--- a/pandas/core/computation/pytables.py
+++ b/pandas/core/computation/pytables.py
@@ -16,7 +16,6 @@
from pandas.core.computation.common import _ensure_decoded
from pandas.core.computation... | In nearly all the places where its used, we can just use `Timedelta` instead. Way simpler, avoids using a private function. | https://api.github.com/repos/pandas-dev/pandas/pulls/24793 | 2019-01-16T03:02:00Z | 2019-01-17T12:56:54Z | 2019-01-17T12:56:54Z | 2019-01-17T15:41:13Z |
PERF: avoid object-dtype comparisons | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 20881972c068a..df764aa4ba666 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -2465,6 +2465,12 @@ def setitem(self, indexer, value):
klass=ObjectBlock,)
r... | Looking at the --durations=10 results in the tests, one that stands out is
```
7.08s call pandas/tests/series/test_datetime_values.py::TestSeriesDatetimeValues::test_dt_namespace_accessor
```
It turns out all but about 0.15 seconds of this is spent in a `tm.assert_series_equal` call for a Datetime64TZ Serie... | https://api.github.com/repos/pandas-dev/pandas/pulls/24792 | 2019-01-16T00:02:24Z | 2019-01-16T01:34:54Z | 2019-01-16T01:34:54Z | 2019-01-16T02:57:35Z |
DOC: IntervalArray and IntervalIndex minor doc fixes | diff --git a/doc/source/api/indexing.rst b/doc/source/api/indexing.rst
index b324bb4854f38..d27b05322c1f2 100644
--- a/doc/source/api/indexing.rst
+++ b/doc/source/api/indexing.rst
@@ -258,6 +258,7 @@ IntervalIndex Components
IntervalIndex.get_indexer
IntervalIndex.set_closed
IntervalIndex.overlaps
+ Inte... | Some minor fixes for things that aren't rendering correctly for `IntervalArray` and `IntervalIndex`. I've built the docs locally and the changes look good.
For [`IntervalArray` ](https://pandas-docs.github.io/pandas-docs-travis/api/generated/pandas.IntervalArray.html):
- `IntervalArray.values` doesn't exist, so re... | https://api.github.com/repos/pandas-dev/pandas/pulls/24780 | 2019-01-15T06:04:51Z | 2019-01-15T12:09:12Z | 2019-01-15T12:09:12Z | 2019-01-15T15:55:56Z |
TST/REF: Collect Reduction, Arithmetic Tests | diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py
index 6694946902836..da1b3f1da5322 100644
--- a/pandas/tests/arithmetic/test_numeric.py
+++ b/pandas/tests/arithmetic/test_numeric.py
@@ -1055,3 +1055,22 @@ def test_numeric_compat2(self):
(pd.RangeIndex(-100, -2... | Remove unused attributes in test_nanops | https://api.github.com/repos/pandas-dev/pandas/pulls/24776 | 2019-01-14T23:37:18Z | 2019-01-16T01:43:21Z | 2019-01-16T01:43:21Z | 2019-01-16T02:57:03Z |
Update DataFrame.eq docstring | diff --git a/pandas/core/ops.py b/pandas/core/ops.py
index e11f0ee01e57c..10cebc6f94b92 100644
--- a/pandas/core/ops.py
+++ b/pandas/core/ops.py
@@ -732,8 +732,7 @@ def _get_op_name(op, special):
B 150 250
C 100 300
-Compare to a scalar and operator version which return the same
-results.
+Comparison ... | This was failing due to http://pandas.pydata.org/pandas-docs/version/0.24.0rc1/whatsnew/v0.24.0.html#dataframe-comparison-operations-broadcasting-changes
I'm surprised the doctests didn't catch this. @datapythonista, `pandas.DataFrame.eq` is included in the API docs at http://pandas-docs.github.io/pandas-docs-travis... | https://api.github.com/repos/pandas-dev/pandas/pulls/24774 | 2019-01-14T22:33:39Z | 2019-01-15T14:04:20Z | 2019-01-15T14:04:20Z | 2019-02-13T13:08:28Z |
Fix flake8 issues in doc/source/enhancingperf.rst | diff --git a/doc/source/enhancingperf.rst b/doc/source/enhancingperf.rst
index a4a96eea4d8e2..0e3d389aa4f6e 100644
--- a/doc/source/enhancingperf.rst
+++ b/doc/source/enhancingperf.rst
@@ -73,7 +73,7 @@ four calls) using the `prun ipython magic function <http://ipython.org/ipython-d
.. ipython:: python
- %prun -... | - [ ] closes #24176
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/24772 | 2019-01-14T20:14:27Z | 2019-01-15T14:12:07Z | 2019-01-15T14:12:07Z | 2019-01-15T14:12:07Z |
API: Added is_extension_array_dtype | diff --git a/doc/source/api/general_utility_functions.rst b/doc/source/api/general_utility_functions.rst
index bed76d5b04b5e..e151f8f57ed5e 100644
--- a/doc/source/api/general_utility_functions.rst
+++ b/doc/source/api/general_utility_functions.rst
@@ -63,6 +63,7 @@ Dtype introspection
api.types.is_datetime64_ns_d... | https://api.github.com/repos/pandas-dev/pandas/pulls/24771 | 2019-01-14T19:57:16Z | 2019-01-14T21:05:34Z | 2019-01-14T21:05:34Z | 2019-11-21T16:17:21Z | |
DOC: Correct minor spelling error | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 7097a702227d7..856aa52f82cf5 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -412,12 +412,12 @@ class _BaseOffset(object):
**self.kwds)
def __neg__(self):
- ... | - [ ] 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/24770 | 2019-01-14T19:16:05Z | 2019-01-14T20:07:00Z | 2019-01-14T20:07:00Z | 2019-01-14T20:07:05Z |
REF/TST: Stop using singleton fixtures | diff --git a/pandas/tests/frame/conftest.py b/pandas/tests/frame/conftest.py
deleted file mode 100644
index 377e737a53158..0000000000000
--- a/pandas/tests/frame/conftest.py
+++ /dev/null
@@ -1,221 +0,0 @@
-import numpy as np
-import pytest
-
-from pandas import DataFrame, NaT, compat, date_range
-import pandas.util.te... | Found when trying to collect reduction tests that we are still using a lot of singleton fixtures (agreed undesirable in #23701). This gets rid of singleton fixtures in tests.frame
Following this it will be easier to more usefully parametrize some of those tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/24769 | 2019-01-14T17:52:46Z | 2019-02-03T04:04:31Z | null | 2020-04-05T17:37:07Z |
Include tables module in required libraries | diff --git a/setup.py b/setup.py
index ed2d905f4358b..e556073ff8c1b 100755
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,7 @@ def is_platform_mac():
'python-dateutil >= 2.5.0',
'pytz >= 2011k',
'numpy >= {numpy_ver}'.format(numpy_ver=min_numpy_ver),
+ 'tables >= 3.4.4'
],
'setup... | Using `to_hdf` method without the tables module installed may results in infinite recursion crash: Fatal Python error: Cannot recover from stack overflow.
- [ ] 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/24765 | 2019-01-14T15:32:03Z | 2019-01-15T09:37:24Z | null | 2019-01-15T09:37:37Z |
DOC: update DF.set_index | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 3685a24d60e74..de9583ed208a5 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1147,8 +1147,8 @@ Other API Changes
- :class:`pandas.io.formats.style.Styler` supports a ``number-format`` property wh... | Split off from #24697 by request of @jorisvandenbossche & @jreback
I kept the change for the whatsnew of #22486, to at least not *emphasize* that there are now ambiguous list-likes available for `DataFrame.set_index` (which haven't seen a release yet and would be removed again by #24697), which would/will make movi... | https://api.github.com/repos/pandas-dev/pandas/pulls/24762 | 2019-01-14T07:01:51Z | 2019-01-19T21:18:53Z | 2019-01-19T21:18:53Z | 2019-01-20T02:39:47Z |
REF/TST: Collect DataFrame Reduction Tests | diff --git a/pandas/tests/arrays/test_datetimelike.py b/pandas/tests/arrays/test_datetimelike.py
index f234e4fadec61..b87f86318dc43 100644
--- a/pandas/tests/arrays/test_datetimelike.py
+++ b/pandas/tests/arrays/test_datetimelike.py
@@ -38,10 +38,10 @@ def datetime_index(request):
"""
freqstr = request.param
... | Tests are mostly unchanged: avoid singleton fixtures, use context syntax for pytest.raises. | https://api.github.com/repos/pandas-dev/pandas/pulls/24761 | 2019-01-14T02:01:43Z | 2019-01-14T13:36:23Z | null | 2020-04-05T17:44:11Z |
BUG: DataFrame.min/max with axis=1 and uniform datetime64[ns, tz] types does not return NaNs | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 5213120b33f06..61902ede045ef 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1647,6 +1647,7 @@ Timezones
- Bug in :meth:`DataFrame.any` returns wrong value when ``axis=1`` and the data is of date... | - [x] closes #10390
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Essentially, check that all blocks are are datetimetz type and the same timezone before performing `max`/`min` since datetimetz blocks are only 1D | https://api.github.com/repos/pandas-dev/pandas/pulls/24759 | 2019-01-14T00:28:56Z | 2019-01-16T01:36:21Z | 2019-01-16T01:36:21Z | 2019-01-16T05:11:24Z |
COMPAT: Properly encode filenames in read_csv | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index a18739f4b26bf..5213120b33f06 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1790,6 +1790,7 @@ I/O
- Bug in :meth:`DataFrame.to_dict` when the resulting dict contains non-Python scalars in the ca... | Python 3.6+ changes the default encoding to `utf8` ([PEP 529](https://www.python.org/dev/peps/pep-0529/)), which conflicts with the encoding of Windows (`mbcs`). This conflicts rears its head when using only the C engine of `read_csv` because of the low level functionality that we implement ourselves.
This fix chec... | https://api.github.com/repos/pandas-dev/pandas/pulls/24758 | 2019-01-13T23:42:56Z | 2019-01-14T13:36:13Z | 2019-01-14T13:36:12Z | 2019-01-14T17:59:14Z |
implement+test mean for datetimelike EA/Index/Series | diff --git a/doc/source/reference/indexing.rst b/doc/source/reference/indexing.rst
index 42ebf648f299f..6d27e225b681e 100644
--- a/doc/source/reference/indexing.rst
+++ b/doc/source/reference/indexing.rst
@@ -403,6 +403,13 @@ Conversion
DatetimeIndex.to_series
DatetimeIndex.to_frame
+Methods
+~~~~~~~
+.. auto... | This takes over from #23890, implementing+testing reductions one at a time.
- [ ] 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/24757 | 2019-01-13T23:41:52Z | 2019-06-10T17:31:06Z | 2019-06-10T17:31:06Z | 2019-06-27T20:10:27Z |
CI: Pinning flake8-rst, last version raises incorrect errors | diff --git a/environment.yml b/environment.yml
index a980499029478..7a177cfee3d39 100644
--- a/environment.yml
+++ b/environment.yml
@@ -14,7 +14,7 @@ dependencies:
- cython>=0.28.2
- flake8
- flake8-comprehensions
- - flake8-rst>=0.6.0
+ - flake8-rst>=0.6.0,<=0.7.0
- gitpython
- hypothesis>=3.82
- ... | - [X] closes #24755
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
CC: @jreback @FHaase
| https://api.github.com/repos/pandas-dev/pandas/pulls/24756 | 2019-01-13T22:14:47Z | 2019-01-13T23:45:56Z | 2019-01-13T23:45:56Z | 2019-01-13T23:45:57Z |
CategoricalAccessor.categorical removed in 0.24.0rc1 #24751 | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 5213120b33f06..da581348d7592 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1309,6 +1309,7 @@ Deprecations
- :meth:`Series.clip_lower`, :meth:`Series.clip_upper`, :meth:`DataFrame.clip_lower` an... | - [ ] closes #24751
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24754 | 2019-01-13T20:43:46Z | 2019-01-15T22:53:17Z | 2019-01-15T22:53:16Z | 2019-01-15T22:53:21Z |
STY: use pytest.raises context syntax (series/indexing/*) | diff --git a/pandas/tests/series/indexing/test_alter_index.py b/pandas/tests/series/indexing/test_alter_index.py
index e2cffe653d935..a826a0644fa78 100644
--- a/pandas/tests/series/indexing/test_alter_index.py
+++ b/pandas/tests/series/indexing/test_alter_index.py
@@ -243,7 +243,10 @@ def test_reindex_corner(test_data)... | xref #24332
`@pytest.mark.xfail` applied to `test_where_unsafe_itemsize_fail` : does not raise using python index operator instead of `__setitem__` with `tuple` | https://api.github.com/repos/pandas-dev/pandas/pulls/24750 | 2019-01-13T13:01:25Z | 2019-01-13T23:57:19Z | 2019-01-13T23:57:19Z | 2019-01-15T19:54:40Z |
Split test_excel.py (#24472) | diff --git a/pandas/tests/io/excel/__init__.py b/pandas/tests/io/excel/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/io/excel/test_reader.py b/pandas/tests/io/excel/test_reader.py
new file mode 100644
index 0000000000000..376aef6eb4833
--- /dev/null
+++ b/pandas/tests/io/... | Split tests/io/test_excel.py into two files, base.py and xlrd.py located in tests/io/excel/. The previous file was very large and a logical split has been applied to separate the `xlrd` tests.
- [ ] closes #24472
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24749 | 2019-01-13T11:25:26Z | 2019-03-09T20:09:50Z | null | 2019-03-09T20:10:00Z |
ENH: Only apply first group once in fast GroupBy.apply | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index e4dd82afcdf65..4f116a42253e5 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -946,23 +946,6 @@ that is itself a series, and possibly upcast the result to a DataFrame:
So depending on th... | The issue of applying a function to the first row twice has been reported quite a few times (issues are usually referenced to #2936) and is also a documented shortcoming/implementation detail (see Notes in [docs](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.apply.html))
The argumentation is... | https://api.github.com/repos/pandas-dev/pandas/pulls/24748 | 2019-01-13T08:53:12Z | 2019-03-26T04:38:34Z | 2019-03-26T04:38:34Z | 2020-05-02T09:38:12Z |
PERF: speed up .ix by moving deprecation string out of __init__ | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 95bf776b1f19d..bbcde8f3b3305 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1405,17 +1405,16 @@ class _IXIndexer(_NDFrameIndexer):
See more at :ref:`Advanced Indexing <advanced>`.
"""
- def __init__(self, name, o... | While `.ix` is deprecated, the `DeprecationWarning` itself adds a decent fraction of overhead to calling it. Simply storing the warning string on the class (or global scope) yields a sizable speedup:
```
$ asv compare v0.24.0rc1 HEAD -s --only-changed --sort ratio
before after ratio
[f... | https://api.github.com/repos/pandas-dev/pandas/pulls/24747 | 2019-01-13T03:18:08Z | 2019-01-13T23:52:45Z | 2019-01-13T23:52:45Z | 2019-01-13T23:52:50Z |
CI: isort ci | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index b5774d0571dfa..3e62a08975dad 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -101,7 +101,7 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
# Imports - Check formatting using isort see setup.cfg for settings
MSG='Check import format using... | - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
asv_bench and doc dir where [added](https://github.com/pandas-dev/pandas/pull/24092/files) to the isort skip section. We should actually check this directory in CI.
Checking doc dir is more effort that its worth ( barely any .py files ) so let's... | https://api.github.com/repos/pandas-dev/pandas/pulls/24746 | 2019-01-12T21:06:36Z | 2019-01-14T00:03:49Z | 2019-01-14T00:03:49Z | 2019-02-17T18:41:39Z |
CLN: More isort | diff --git a/pandas/tests/computation/test_compat.py b/pandas/tests/computation/test_compat.py
index c25ef4bf38cab..7cc373d06cfe1 100644
--- a/pandas/tests/computation/test_compat.py
+++ b/pandas/tests/computation/test_compat.py
@@ -1,11 +1,11 @@
-import pytest
from distutils.version import LooseVersion
-import pand... | - [x] xref #23334
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Hopefully nearing the end of these now..
| https://api.github.com/repos/pandas-dev/pandas/pulls/24745 | 2019-01-12T20:51:50Z | 2019-01-13T18:59:00Z | 2019-01-13T18:59:00Z | 2019-01-13T18:59:04Z |
DOC: Use backticks instead of quotes | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index d3d34e6b9ec3e..2a60429629638 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -149,7 +149,7 @@ These dtypes can be merged & reshaped & casted.
pd.concat([df[['A']], df[['B', 'C']]], axis=1).dtyp... | Small formatting edit to whatsnew. I think there should be backticks and not single quotes here? | https://api.github.com/repos/pandas-dev/pandas/pulls/24744 | 2019-01-12T20:05:30Z | 2019-01-13T18:58:03Z | 2019-01-13T18:58:03Z | 2019-01-14T21:55:49Z |
PERF: 3x speedup in Series of dicts with datetime keys by not having error message scale with input | diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py
index 79756d4c0cfab..f84471c3b04e8 100644
--- a/pandas/core/dtypes/dtypes.py
+++ b/pandas/core/dtypes/dtypes.py
@@ -686,16 +686,19 @@ def construct_from_string(cls, string):
>>> DatetimeTZDtype.construct_from_string('datetime64[ns, UTC]')... | Surprisingly, the majority of the time spent in constructing a `Series` from a dict with `datetime`-like keys is spent formatting the keys into strings for an error message that gets suppressed.
As there's a test ensuring the string case makes it into the error message, we preserve the behavior there. In non-string ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24743 | 2019-01-12T18:19:43Z | 2019-01-13T18:54:17Z | 2019-01-13T18:54:17Z | 2019-01-13T18:54:22Z |
CLN/TST: indexing/multiindex/test_getitem.py | diff --git a/pandas/tests/indexing/multiindex/test_getitem.py b/pandas/tests/indexing/multiindex/test_getitem.py
index 88e96329105dd..b7fdbee0b7185 100644
--- a/pandas/tests/indexing/multiindex/test_getitem.py
+++ b/pandas/tests/indexing/multiindex/test_getitem.py
@@ -1,35 +1,15 @@
import numpy as np
import pytest
... | follow-on from #24452 to add section breaks and move tests. also `KeyError` checks made more explicit. | https://api.github.com/repos/pandas-dev/pandas/pulls/24741 | 2019-01-12T17:27:27Z | 2019-01-13T20:34:41Z | 2019-01-13T20:34:41Z | 2019-01-15T19:53:48Z |
DOC: Small whatsnew fixes | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 3950ff3c8863d..d3d34e6b9ec3e 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1128,7 +1128,7 @@ update the ``ExtensionDtype._metadata`` tuple to match the signature of your
- :meth:`~Series.shift`... | A few small things that I saw when scanning over the What's New page. | https://api.github.com/repos/pandas-dev/pandas/pulls/24738 | 2019-01-12T01:18:00Z | 2019-01-12T10:32:15Z | 2019-01-12T10:32:15Z | 2019-01-12T17:25:35Z |
PERF: leverage tzlocal package to provide 2000x speedup for dateutil.tz.tzlocal operations | diff --git a/LICENSES/TZLOCAL_LICENSE b/LICENSES/TZLOCAL_LICENSE
new file mode 100644
index 0000000000000..9be1d2fe595ad
--- /dev/null
+++ b/LICENSES/TZLOCAL_LICENSE
@@ -0,0 +1,19 @@
+Copyright 2011-2017 Lennart Regebro
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software an... | This is a follow-up to https://github.com/pandas-dev/pandas/pull/24491, where it was noted that `tzlocal` operations are notably slower:
```
[ 53.12%] ··· timeseries.DatetimeIndex.time_add_timedelta ok
[ 5... | https://api.github.com/repos/pandas-dev/pandas/pulls/24737 | 2019-01-12T00:57:16Z | 2019-06-08T20:38:59Z | null | 2019-06-08T20:38:59Z |
TST: avoid DST transitions when testing DateTimeIndex roundtrip | diff --git a/pandas/tests/indexes/datetimes/test_timezones.py b/pandas/tests/indexes/datetimes/test_timezones.py
index 8bcc9296cb010..12c1b15733895 100644
--- a/pandas/tests/indexes/datetimes/test_timezones.py
+++ b/pandas/tests/indexes/datetimes/test_timezones.py
@@ -434,24 +434,19 @@ def test_dti_tz_localize_utc_conv... | - [x] closes #24689
- [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/24736 | 2019-01-11T23:21:14Z | 2019-02-02T22:54:10Z | 2019-02-02T22:54:10Z | 2019-02-03T14:11:02Z |
PERF: fix some of .clip() performance regression by using numpy arrays where possible | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index 5b0981dc10a8a..f7d0083b86a01 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -140,11 +140,13 @@ def time_map(self, mapper):
class Clip(object):
+ params = [50, 1... | A recent change to respect dtypes in `.clip()` (https://github.com/pandas-dev/pandas/pull/24458) introduced a decent overhead of ~2ms to the call:
```
$ asv compare v0.23.4 v0.24.0rc1 --only-changed
before after ratio
[04095216] [fdc4db25]
<v0.23.4^0> <v0.24.0rc1^0>
... | https://api.github.com/repos/pandas-dev/pandas/pulls/24735 | 2019-01-11T22:17:21Z | 2019-01-20T16:05:08Z | 2019-01-20T16:05:08Z | 2019-01-20T16:05:11Z |
BUG-24212 fix usage of Index.take in pd.merge | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 3268575c7064d..a4598b315cbb7 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1817,6 +1817,7 @@ Reshaping
- Bug in :func:`DataFrame.unstack` where a ``ValueError`` was raised when unstacking timez... | - [X] closes #24212
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
The use of `Index.take` in `pd.merge` to create `join_index` causes an indexer with -1 values to take the last value in the index being taken from. This PR allows it to correctl... | https://api.github.com/repos/pandas-dev/pandas/pulls/24733 | 2019-01-11T20:57:04Z | 2019-01-20T16:02:43Z | 2019-01-20T16:02:43Z | 2019-01-20T16:02:53Z |
BUG: Prevent 3D-ndarray for nested tuple labels (#24687) | Being a very rare issue encountered with nested tuples as column and index labels, here is the fix I've managed to come up with - for the time being. While `clean_index_list()` in `pandas/_libs/lib.pyx` is responsible for returning an invalid result (a 3D ndarray where the inner dimensions should be nested tuples), de... | https://api.github.com/repos/pandas-dev/pandas/pulls/24732 | 2019-01-11T20:44:11Z | 2019-01-16T02:13:01Z | null | 2019-01-16T02:13:01Z | |
Change MultiIndex repr (labels -> codes) | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 99114b7dcf34d..5a9bf6c2c6263 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -1302,15 +1302,15 @@ def set_names(self, names, level=None, inplace=False):
... [2018, 2019]]... | As I mentioned in https://github.com/pandas-dev/pandas/pull/22511#issuecomment-451667687, the repr for MultiIndex ATM uses ``labels``, even though the parameter/attribute has been changed to ``codes``.
```python
>>> mi = pd.MultiIndex.from_product([[8,9,0], ['a', 'b', 'c']])
>>> MultiIndex(levels=[[0, 8, 9], ['a',... | https://api.github.com/repos/pandas-dev/pandas/pulls/24731 | 2019-01-11T19:18:11Z | 2019-01-13T19:01:43Z | 2019-01-13T19:01:43Z | 2019-01-13T19:49:48Z |
BUG: Switched shapes in ValueError msg in DataFrame construct (#20742) | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 3685a24d60e74..bf799b43477a0 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1816,6 +1816,7 @@ Reshaping
- Bug in :func:`DataFrame.unstack` where a ``ValueError`` was raised when unstacking timez... | - [x] closes #20742
- [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/24725 | 2019-01-11T15:13:07Z | 2019-01-18T16:53:36Z | 2019-01-18T16:53:35Z | 2019-01-18T16:53:41Z |
BUG: Switched shapes in ValueError msg in DataFrame construct (#20742) | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index dd06bade2a203..096311a44400b 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1852,6 +1852,7 @@ Other
^^^^^
- Bug where C variables were declared with external linkage causing import errors if ... |
- [x] closes #20742
- [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/24724 | 2019-01-11T14:59:21Z | 2019-01-11T15:00:25Z | null | 2019-01-11T15:00:25Z |
TimedeltaArray freq validation without _from_sequence | diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py
index 47b3f93f88b78..be1a7097b0e0d 100644
--- a/pandas/core/arrays/timedeltas.py
+++ b/pandas/core/arrays/timedeltas.py
@@ -15,8 +15,8 @@
from pandas.util._decorators import Appender
from pandas.core.dtypes.common import (
- _NS_DTY... | This aligns `TimedeltaArray.__init__` with `DatetimeArray.__init__`, using the same approach how @jbrockmendel now handled the freq validation in `DatetimeArray` in the merged https://github.com/pandas-dev/pandas/pull/24686
First commits removes usage of `from_sequence` (from https://github.com/pandas-dev/pandas/pull... | https://api.github.com/repos/pandas-dev/pandas/pulls/24723 | 2019-01-11T10:58:21Z | 2019-01-11T14:07:53Z | 2019-01-11T14:07:53Z | 2019-01-14T15:52:09Z |
CLN: replace %s syntax with .format in pandas.io.parsers | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index 9a255231bbe70..2996e078a069d 100755
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -1485,9 +1485,9 @@ def extract(r):
for n in range(len(columns[0])):
if all(compat.to_str(c[n]) in self.unnamed_cols for c in columns):
... | progress towards #16130
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/24721 | 2019-01-11T03:57:21Z | 2019-03-19T20:23:27Z | 2019-03-19T20:23:27Z | 2019-03-19T22:12:04Z |
CLN: replace %s syntax with .format in pandas.io | diff --git a/pandas/io/packers.py b/pandas/io/packers.py
index b83eab7d0eba0..efe4e3a91c69c 100644
--- a/pandas/io/packers.py
+++ b/pandas/io/packers.py
@@ -519,7 +519,8 @@ def encode(obj):
elif isinstance(obj, date):
return {u'typ': u'date',
u'data': u(obj.isoformat())}
- ... | progress towards #16130
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/24719 | 2019-01-11T03:01:53Z | 2019-01-11T12:51:28Z | 2019-01-11T12:51:28Z | 2019-01-11T13:01:05Z |
BUG: Fix DataFrame.astype(ExtensionDtype) with duplicate column names | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 960b205c49c61..dd06bade2a203 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1639,6 +1639,7 @@ Conversion
- Bug in :meth:`DataFrame.combine_first` in which column types were unexpectedly converte... | - [X] xref https://github.com/pandas-dev/pandas/issues/24704#issuecomment-453266869 (this fixes item 1)
- [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/24717 | 2019-01-11T02:23:13Z | 2019-01-11T12:49:27Z | 2019-01-11T12:49:27Z | 2019-01-11T14:39:25Z |
DOC: Implementing redirect system, and adding user_guide redirects | diff --git a/doc/make.py b/doc/make.py
index 0b14a9dcd4c34..eb4a33a569c5a 100755
--- a/doc/make.py
+++ b/doc/make.py
@@ -15,15 +15,18 @@
import sys
import os
import shutil
+import csv
import subprocess
import argparse
import webbrowser
+import docutils
+import docutils.parsers.rst
DOC_PATH = os.path.dirname(... | - [X] closes #24705
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24715 | 2019-01-10T23:35:52Z | 2019-01-23T18:30:35Z | 2019-01-23T18:30:35Z | 2019-01-23T18:58:47Z |
ModuleNotFoundError in in_interactive_session | diff --git a/pandas/io/formats/console.py b/pandas/io/formats/console.py
index 64168dd7db1b8..d5ef9f61bc132 100644
--- a/pandas/io/formats/console.py
+++ b/pandas/io/formats/console.py
@@ -95,7 +95,10 @@ def in_interactive_session():
from pandas import get_option
def check_main():
- import __main__ a... | - [x] closes #24690
- [na] 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/24714 | 2019-01-10T21:26:59Z | 2019-01-13T19:17:35Z | 2019-01-13T19:17:34Z | 2019-01-13T20:59:16Z |
implement Tick division, fix Timedelta.__cmp__ tick | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 3950ff3c8863d..6bb27d03835d7 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1614,6 +1614,7 @@ Timedelta
- Bug in :class:`Timedelta` and :func:`to_timedelta()` have inconsistencies in supported u... | - [ ] 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/24710 | 2019-01-10T17:52:24Z | 2019-01-13T18:43:58Z | 2019-01-13T18:43:57Z | 2019-01-13T23:08:34Z |
Revert handling of i8values to DatetimeIndex | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index dd06bade2a203..3950ff3c8863d 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1235,7 +1235,6 @@ Datetimelike API Changes
- :class:`PeriodIndex` subtraction of another ``PeriodIndex`` will now retu... | TODO:
- [x] decide if we're deprecating anything.
- [x] update the message (and update filterwarnings)
- [x] whatsnew
Questions
1. What's the expected behavior of `pd.Index(i8).dtype(DatetimeTZDtype)`?
2. Do we prefer this `int_as_wall_time` parameter, or @jbrockmendel's `_from_sequence_dti` from https://gi... | https://api.github.com/repos/pandas-dev/pandas/pulls/24708 | 2019-01-10T15:42:15Z | 2019-01-11T14:05:17Z | 2019-01-11T14:05:17Z | 2019-01-11T14:08:06Z |
Updated with match | diff --git a/pandas/tests/io/test_excel.py b/pandas/tests/io/test_excel.py
index 84383afed1d03..717e9bc23c6b1 100644
--- a/pandas/tests/io/test_excel.py
+++ b/pandas/tests/io/test_excel.py
@@ -698,7 +698,7 @@ def test_excel_read_buffer(self, ext):
def test_bad_engine_raises(self, ext):
bad_engine = 'foo... | - [x] closes #24706
- [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/24707 | 2019-01-10T15:23:37Z | 2019-01-16T15:18:56Z | 2019-01-16T15:18:55Z | 2019-01-16T15:20:28Z |
Update test_ticks.py | diff --git a/pandas/tests/tseries/offsets/test_ticks.py b/pandas/tests/tseries/offsets/test_ticks.py
index dcc7afa797063..27ec7d9d9093a 100644
--- a/pandas/tests/tseries/offsets/test_ticks.py
+++ b/pandas/tests/tseries/offsets/test_ticks.py
@@ -59,6 +59,7 @@ def test_tick_add_sub(cls, n, m):
@pytest.mark.parametri... | - [x] closes #24700
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/24701 | 2019-01-10T13:10:31Z | 2019-01-10T14:51:03Z | 2019-01-10T14:51:02Z | 2019-01-10T14:51:07Z |
DEPR/API: disallow lists within list for set_index | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 124ec8f4ab92c..a2537a20058d4 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -93,6 +93,34 @@ Other API Changes
Deprecations
~~~~~~~~~~~~
+**Lists as arrays in :meth:`DataFrame.set_index`**
+
+C... | - [x] one way to close #24046
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
- [x] add deprecation warning & test it
I wanted to add this before the RC gets cut for two reasons.
On the one hand, the docs have silently deprecated arrays in `df... | https://api.github.com/repos/pandas-dev/pandas/pulls/24697 | 2019-01-10T08:14:24Z | 2019-03-10T15:27:25Z | null | 2019-03-10T16:53:50Z |
remove unused kwarg | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 70e4f44cb5de8..e7c851c256081 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -534,7 +534,7 @@ def astype(self, dtype, copy=False, errors='raise', values=None, **kwargs):
... | AFAICT `klass` is never passed to `astype`, so the kwarg can be removed.
- [ ] 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/24695 | 2019-01-10T04:06:08Z | 2019-01-10T16:37:11Z | 2019-01-10T16:37:11Z | 2020-04-05T17:44:11Z |
fix interpreting int as second--> nano | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index aee3d78243d2e..960b205c49c61 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1309,6 +1309,7 @@ Deprecations
- In :meth:`Series.where` with Categorical data, providing an ``other`` that is not pre... | The existing behavior was put in place in #4684, looks like wrestling with numpy 1.6 and 1.7 was rough.
Not sure what this merits in the whatsnew, pls advise.
- [ ] 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/24694 | 2019-01-10T03:58:08Z | 2019-01-10T17:42:47Z | 2019-01-10T17:42:47Z | 2019-01-10T20:50:22Z |
CLN: Removing find_undoc_args.py, validate_docstrings.py implements the same | diff --git a/scripts/find_undoc_args.py b/scripts/find_undoc_args.py
deleted file mode 100755
index ea9541bfaed3a..0000000000000
--- a/scripts/find_undoc_args.py
+++ /dev/null
@@ -1,135 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-"""
-Script that compares the signature arguments with the ones in the docsti... | The script `find_undoc_args.py` was used to detect functions that the documented parameters did not match the signature ones.
`validate_docstrings.py` implements the same validation, among many more. So the script is not needed anymore.
| https://api.github.com/repos/pandas-dev/pandas/pulls/24693 | 2019-01-10T01:30:53Z | 2019-01-10T11:00:45Z | 2019-01-10T11:00:45Z | 2019-01-10T11:00:45Z |
DOC: Updated sample CI image in contributing docs | diff --git a/doc/source/_static/ci.png b/doc/source/_static/ci.png
index 4570ed2155586..3a4225e3ce1eb 100644
Binary files a/doc/source/_static/ci.png and b/doc/source/_static/ci.png differ
| The image of a green CI in https://pandas-docs.github.io/pandas-docs-travis/contributing.html#testing-with-continuous-integration became outdated (contains circleci and appveyor). Replaced by a current one with only travis and azure.
:
def copy(self, deep=False):
values =... | - [ ] 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/24686 | 2019-01-09T18:34:18Z | 2019-01-10T21:27:35Z | 2019-01-10T21:27:35Z | 2019-01-10T23:04:08Z |
BUG: Fix segfault in Categorical.set_categories | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 21712b1bf5b6c..8d635e2f9fba3 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1501,6 +1501,7 @@ Categorical
- Bug in :meth:`Series.where` losing the categorical dtype for categorical data (:issue:... | - [X] closes #24675
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
---
The fix basically amounts to changing `self._codes` --> `cat._codes` in the code block below:
https://github.com/pandas-dev/pandas/blob/caf462c2a7699daf4b149d49f5aeaff82... | https://api.github.com/repos/pandas-dev/pandas/pulls/24680 | 2019-01-09T02:29:03Z | 2019-01-09T12:11:18Z | 2019-01-09T12:11:17Z | 2019-01-09T15:47:35Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.