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 |
|---|---|---|---|---|---|---|---|
API: Make Series.searchsorted return a scalar, when supplied a scalar | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index fe5e4a57c557a..6938065115f1f 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1096,6 +1096,7 @@ Other API Changes
has an improved ``KeyError`` message, and will not fail on duplicate column name... | - [x] xref #23466 & #22034
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
``Series.searchsorted`` returns the wrong shape for scalar input. Numpy arrays and all other array types return a scalar if the input is a scalar, but ``Series`` does not... | https://api.github.com/repos/pandas-dev/pandas/pulls/23801 | 2018-11-20T00:30:53Z | 2018-12-21T18:12:11Z | 2018-12-21T18:12:11Z | 2018-12-21T18:37:08Z |
TST: Mark test_pct_max_many_rows with pytest.mark.single | diff --git a/pandas/tests/frame/test_rank.py b/pandas/tests/frame/test_rank.py
index eaba5f7ec7790..e7a876bcf52d1 100644
--- a/pandas/tests/frame/test_rank.py
+++ b/pandas/tests/frame/test_rank.py
@@ -310,6 +310,7 @@ def test_rank_pct_true(self, method, exp):
expected = DataFrame(exp)
tm.assert_frame_... | - [X] closes #23726
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
See this comment for context: https://github.com/pandas-dev/pandas/issues/23726#issuecomment-440076164 | https://api.github.com/repos/pandas-dev/pandas/pulls/23799 | 2018-11-20T00:02:39Z | 2018-11-20T01:03:05Z | 2018-11-20T01:03:05Z | 2018-11-20T02:39:19Z |
TST: split up pandas/tests/test_multilevel.py | diff --git a/pandas/tests/indexing/test_multiindex.py b/pandas/tests/indexing/test_multiindex.py
index f4caf17b60d65..bf5fa0a48cfe7 100644
--- a/pandas/tests/indexing/test_multiindex.py
+++ b/pandas/tests/indexing/test_multiindex.py
@@ -1,19 +1,58 @@
from datetime import datetime
-from warnings import catch_warnings
+... | - [ ] closes #23782
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [n/a ] whatsnew entry
@jreback
1. i've used fixtures for `frame` and `ymd` instead of copying across the test base class.
2. not moved tests with names matching `getitem` from the `TestSorted` ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23797 | 2018-11-19T21:42:54Z | 2018-11-23T03:07:22Z | 2018-11-23T03:07:22Z | 2018-11-23T11:42:49Z |
CLN/DEPS: Clean up post numpy bump to 1.12 | diff --git a/README.md b/README.md
index b4dedecb4c697..1993b1ecb9dc1 100644
--- a/README.md
+++ b/README.md
@@ -171,7 +171,7 @@ pip install pandas
```
## Dependencies
-- [NumPy](https://www.numpy.org): 1.9.0 or higher
+- [NumPy](https://www.numpy.org): 1.12.0 or higher
- [python-dateutil](https://labix.org/python... | - [x] follow-up to #23062
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
I stumbled over a place I had forgotten to change in #23062 - `README.md`. And since I recently found some `grep`-like powers on windows with `findstr`, I took this opportunity to have a look ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23796 | 2018-11-19T21:32:18Z | 2018-11-27T02:50:23Z | 2018-11-27T02:50:23Z | 2018-11-27T06:45:04Z |
REF/TST: Fix remaining DatetimeArray with DateOffset arithmetic ops | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index bb7a9a57b8a75..f414cd161e562 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -377,13 +377,15 @@ cdef class _Timestamp(datetime):
neg_other = -other
return 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/23789 | 2018-11-19T18:30:46Z | 2018-11-28T23:33:33Z | 2018-11-28T23:33:33Z | 2018-11-28T23:35:33Z |
STY: isort tests/scalar, tests/tslibs, import libwindow instead of _window | diff --git a/pandas/core/window.py b/pandas/core/window.py
index f7a60527602a1..494ab5d5963ee 100644
--- a/pandas/core/window.py
+++ b/pandas/core/window.py
@@ -7,41 +7,29 @@
"""
from __future__ import division
-import warnings
-import numpy as np
from collections import defaultdict
from datetime import timedelta... | Ignore flake8 code "S001: found modulo formatter" which incorrectly picks up _all_ `%` characters, i.e. gives false-positives on actual mod ops. | https://api.github.com/repos/pandas-dev/pandas/pulls/23787 | 2018-11-19T17:38:22Z | 2018-11-20T01:50:22Z | 2018-11-20T01:50:22Z | 2018-11-20T02:07:43Z |
TST: move .str-test to strings.py & parametrize it; precursor to #23582 | diff --git a/pandas/tests/series/test_api.py b/pandas/tests/series/test_api.py
index f944d6f8c9d08..65f5c59deba36 100644
--- a/pandas/tests/series/test_api.py
+++ b/pandas/tests/series/test_api.py
@@ -602,82 +602,6 @@ def f():
ordered=True))
tm.assert_series_equal(result,... | - [x] precursor to #23582 and #23167
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
In #23582, I'm testing all string methods on all inferred dtypes (which uncovered lots of bugs that will be fixed by #23167 and follow-ups).
@jreback required #23582 to be broken ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23777 | 2018-11-19T07:23:40Z | 2018-11-20T01:54:33Z | 2018-11-20T01:54:32Z | 2018-11-20T17:06:36Z |
TST: For GH4861, Period and datetime in multiindex | diff --git a/pandas/tests/indexing/test_multiindex.py b/pandas/tests/indexing/test_multiindex.py
index ea17844a75033..f4caf17b60d65 100644
--- a/pandas/tests/indexing/test_multiindex.py
+++ b/pandas/tests/indexing/test_multiindex.py
@@ -1,3 +1,4 @@
+from datetime import datetime
from warnings import catch_warnings
... | - [X] closes #4861
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry (only test added)
| https://api.github.com/repos/pandas-dev/pandas/pulls/23776 | 2018-11-19T06:37:18Z | 2018-11-20T02:00:07Z | 2018-11-20T02:00:06Z | 2018-11-20T02:00:09Z |
BUG: Don't warn if default conflicts with dialect | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index bb02bbb36424a..86b837de10daa 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1384,6 +1384,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form
- Bug in :meth:`HDF... | xref #23761
Also introduces a context manager for setting CSV dialect. | https://api.github.com/repos/pandas-dev/pandas/pulls/23775 | 2018-11-19T02:22:47Z | 2018-11-19T12:12:48Z | 2018-11-19T12:12:47Z | 2022-11-03T17:03:08Z |
DEPS: bump xlrd min version to 1.0.0 | diff --git a/ci/deps/azure-27-compat.yaml b/ci/deps/azure-27-compat.yaml
index 5b726304cf414..44c561e9c8911 100644
--- a/ci/deps/azure-27-compat.yaml
+++ b/ci/deps/azure-27-compat.yaml
@@ -16,7 +16,7 @@ dependencies:
- pytz=2013b
- scipy=0.18.1
- sqlalchemy=0.7.8
- - xlrd=0.9.2
+ - xlrd=1.0.0
- xlsxwriter... | remove numpy warnings on np.diff in boolean arrays
| https://api.github.com/repos/pandas-dev/pandas/pulls/23774 | 2018-11-19T01:58:28Z | 2018-11-19T14:30:19Z | 2018-11-19T14:30:19Z | 2018-11-19T14:30:19Z |
PERF: Use is_utc check to improve performance of dateutil UTC in DatetimeIndex methods | diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py
index 84bdcc5fa30f2..58cda3b871e51 100644
--- a/asv_bench/benchmarks/timeseries.py
+++ b/asv_bench/benchmarks/timeseries.py
@@ -1,5 +1,6 @@
from datetime import timedelta
+import dateutil
import numpy as np
from pandas import to_d... | - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Benchmarks from `timeseries.py` and `timestamp.py`
```
before after ratio
[91d1c503] [9cc84951]
- 32.6±0.7μs 6.89±0.2μs 0.21 timestamp.TimestampOps.time_normalize(tzutc... | https://api.github.com/repos/pandas-dev/pandas/pulls/23772 | 2018-11-18T21:20:24Z | 2018-11-18T23:07:45Z | 2018-11-18T23:07:45Z | 2018-11-18T23:27:27Z |
TST: Extend datetime64 arith tests to array classes, fix several broken cases | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 094c9c3df0bed..631257b7a5264 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -727,6 +727,10 @@ def __add__(self, other):
else: # pragma: no cover
return N... | Some of the DateOffset arithmetic didn't work with the EA classes; this fixed that. Other pieces of the DateOffset arithmetic will have to wait until TimedeltaArray gets a few more methods. | https://api.github.com/repos/pandas-dev/pandas/pulls/23771 | 2018-11-18T21:06:58Z | 2018-11-19T02:00:52Z | 2018-11-19T02:00:52Z | 2018-11-19T02:09:26Z |
DOC: Update escapechar param description for read_csv | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index f76e0d874fdf3..671f98850012c 100755
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -258,7 +258,7 @@
whether or not to interpret two consecutive quotechar elements INSIDE a
field as a single ``quotechar`` element.
escapechar : str (length ... | - [X] closes #23717
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23770 | 2018-11-18T20:13:39Z | 2018-12-07T12:16:42Z | null | 2018-12-07T12:16:42Z |
Add _expand_user to _stringify_path as we need to allow tilde - ~, to expand to full path | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 8bcb97ec0faf2..4ff1f96777b1c 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -416,6 +416,7 @@ Other Enhancements
- :class:`IntervalIndex` has gained the :attr:`~IntervalIndex.is_overlapping` attri... |
- [x] closes #23473
- [ ] 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/23769 | 2018-11-18T18:03:22Z | 2019-01-05T19:27:01Z | 2019-01-05T19:27:01Z | 2019-01-06T17:15:17Z |
Fix doc string of make_signature() function | diff --git a/pandas/api/extensions/__init__.py b/pandas/api/extensions/__init__.py
index 51555c57b2288..cb6241016d82f 100644
--- a/pandas/api/extensions/__init__.py
+++ b/pandas/api/extensions/__init__.py
@@ -1,4 +1,4 @@
-"""Public API for extending panadas objects."""
+"""Public API for extending pandas objects."""
f... | - [ ] 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/23768 | 2018-11-18T17:00:28Z | 2018-11-22T03:54:59Z | 2018-11-22T03:54:59Z | 2018-11-22T09:27:31Z |
API/DEPR: replace kwarg "pat" with "sep" in str.[r]partition | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 98941b6d353bb..0fd3a2f5177fe 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1030,6 +1030,7 @@ Deprecations
- :meth:`Timestamp.tz_localize`, :meth:`DatetimeIndex.tz_localize`, and :meth:`Series.t... | - [x] closes #22676
- [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/23767 | 2018-11-18T15:31:55Z | 2018-11-20T01:07:24Z | 2018-11-20T01:07:24Z | 2018-11-20T06:35:12Z |
CLN: run isort in tests folder | diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py
index e5d9c85691b7a..84763a9954970 100644
--- a/pandas/tests/arithmetic/conftest.py
+++ b/pandas/tests/arithmetic/conftest.py
@@ -1,16 +1,15 @@
# -*- coding: utf-8 -*-
-import pytest
-
import numpy as np
-import pandas as pd
+impor... | - [ ] 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/23766 | 2018-11-18T14:48:37Z | 2018-11-18T15:43:40Z | null | 2018-11-18T15:43:40Z |
CLN: Finish isort core | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index f842d1237cb14..eb2fef482ff17 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -5,16 +5,18 @@
This is an experimental API and subject to breaking changes
without warning.
"""
-import numpy as np
-
import opera... | - [x] xref #23334
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/23765 | 2018-11-18T12:15:50Z | 2018-11-20T01:04:24Z | 2018-11-20T01:04:24Z | 2018-11-20T08:23:30Z |
CLN: Isort core/*.py and core/indexes/ | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 9ff8ba7bb23d2..ecdad8752113a 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -3,40 +3,31 @@
intended for public consumption
"""
from __future__ import division
-from warnings import warn, catch_warnings, simplefilter
+... | - [x] xref #23334
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/23764 | 2018-11-18T12:10:36Z | 2018-11-23T02:55:13Z | 2018-11-23T02:55:13Z | 2018-11-23T02:55:17Z |
TST: Add test case for GH14080 for overflow exception | diff --git a/pandas/tests/scalar/timestamp/test_arithmetic.py b/pandas/tests/scalar/timestamp/test_arithmetic.py
index 0f8ddc53734f6..207bd103105ea 100644
--- a/pandas/tests/scalar/timestamp/test_arithmetic.py
+++ b/pandas/tests/scalar/timestamp/test_arithmetic.py
@@ -7,25 +7,58 @@
import pandas.util.testing as tm
fr... | - [X] closes #14080
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] Unsure if I should modify whatsnew if it is just adding a test?
| https://api.github.com/repos/pandas-dev/pandas/pulls/23762 | 2018-11-18T05:04:11Z | 2018-11-18T21:56:56Z | 2018-11-18T21:56:56Z | 2018-11-18T23:25:38Z |
REF/TST: Add more pytest idiom to parsers tests | diff --git a/pandas/tests/io/parser/comment.py b/pandas/tests/io/parser/comment.py
deleted file mode 100644
index fc2310ca1daaf..0000000000000
--- a/pandas/tests/io/parser/comment.py
+++ /dev/null
@@ -1,119 +0,0 @@
-# -*- coding: utf-8 -*-
-
-"""
-Tests that comments are properly handled during parsing
-for all of the ... | Adds more idiom to the following:
* `parser/comment` --> `parser/test_comment`
* `parser/converters` --> `parser/test_converters`
* `parser/compression` --> `parser/test_compression`
* `parser/dialect` --> `parser/test_dialect`
Builds off of #23712.
In the interest of keeping the diff somewhat manageable, I... | https://api.github.com/repos/pandas-dev/pandas/pulls/23761 | 2018-11-18T02:16:32Z | 2018-11-18T17:36:06Z | 2018-11-18T17:36:06Z | 2018-11-19T01:46:42Z |
Add tz param to to_datetime() when utc=True and errors='ignore' | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 0eb2ffeab28f1..38c184437b85a 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -212,7 +212,7 @@ def _convert_listlike_datetimes(arg, box, format, name=None, tz=None,
if box:
if erro... | - [x] closes #23758
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23759 | 2018-11-18T01:52:07Z | 2018-12-23T23:28:17Z | null | 2018-12-23T23:28:18Z |
TST: Use new arithmetic fixtures, parametrize many more tests | diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py
index e5d9c85691b7a..63a5c40a31f1d 100644
--- a/pandas/tests/arithmetic/conftest.py
+++ b/pandas/tests/arithmetic/conftest.py
@@ -5,9 +5,6 @@
import pandas as pd
from pandas.compat import long
-from pandas.core.arrays import (
- ... | Focus is mostly on test_datetime64.py to keep things close to orthogonal.
De-duplicates some tests that are in e.g. both TestFrameArithmetic and TestSeriesArithmetic | https://api.github.com/repos/pandas-dev/pandas/pulls/23757 | 2018-11-17T23:22:03Z | 2018-11-18T17:37:53Z | 2018-11-18T17:37:53Z | 2018-11-18T17:53:26Z |
TST: groupby with daily frequency fails with NonExistentTimeError on clock change day in Brazil | diff --git a/pandas/tests/test_resample.py b/pandas/tests/test_resample.py
index 7e0342e8b987a..d38f2a237c31d 100644
--- a/pandas/tests/test_resample.py
+++ b/pandas/tests/test_resample.py
@@ -2515,6 +2515,15 @@ def test_resample_nonexistent_time_bin_edge(self):
result = expected.resample('900S').mean()
... | - [x] closes #23742
- [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/23756 | 2018-11-17T21:48:07Z | 2018-11-17T22:41:08Z | 2018-11-17T22:41:08Z | 2018-11-18T15:29:48Z |
BUG GH23744 ufuncs on DataFrame keeps dtype sparseness | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 48a3bfdab62c9..b12e117dcb373 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1463,6 +1463,7 @@ Sparse
- Bug in unary inversion operator (``~``) on a ``SparseSeries`` with boolean values. The perf... | - [X] closes #23744
- [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/23755 | 2018-11-17T18:55:06Z | 2018-11-27T12:25:42Z | 2018-11-27T12:25:41Z | 2018-11-27T12:25:46Z |
API: rename MultiIndex.labels to MultiIndex.codes | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index ee5ae69555d16..59e43ee22afde 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -473,8 +473,8 @@ def setup(self):
n1 = 400
n2 = 250
index = MultiIndex(levels=[np.arange(n1),... | - [x] closes #13443
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This PR renames ``MultiIndex.labels`` to ``MultiIndex.codes``.
Also note that I've not changed the repr method or the repr output in various doc strings examples in anticipat... | https://api.github.com/repos/pandas-dev/pandas/pulls/23752 | 2018-11-17T10:34:58Z | 2018-12-05T19:06:02Z | 2018-12-05T19:06:01Z | 2018-12-06T22:52:22Z |
BUG: Series.to_json Not Serializing Name with orient='records' | diff --git a/pandas/io/json/json.py b/pandas/io/json/json.py
index af7b390de213d..8a1c130a9b5a2 100644
--- a/pandas/io/json/json.py
+++ b/pandas/io/json/json.py
@@ -129,6 +129,10 @@ def _write(self, obj, orient, double_precision, ensure_ascii,
date_unit, iso_dates, default_handler):
if not self... | - [ ] closes #23584
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23751 | 2018-11-17T09:43:44Z | 2018-12-17T01:30:44Z | null | 2018-12-17T01:30:44Z |
DOC: Remove pandas. prefix from See Also section in Series #23659 | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index df2da26685a16..d13b47f592a2e 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -509,8 +509,8 @@ def _factorize_array(values, na_sentinel=-1, size_hint=None,
See Also
--------
- pandas.cut : Discretize continu... | - [x] closes #23659
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Cleaned up so that `./scripts/validate_docstrings.py --prefix=pandas.Series --errors=SA05` does not return any cases. | https://api.github.com/repos/pandas-dev/pandas/pulls/23749 | 2018-11-17T08:39:09Z | 2018-11-17T22:58:27Z | 2018-11-17T22:58:27Z | 2018-11-17T22:58:44Z |
TST: implement tm.to_array, box_with_timedelta, box4 | diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py
index 9ee5e05638978..e5d9c85691b7a 100644
--- a/pandas/tests/arithmetic/conftest.py
+++ b/pandas/tests/arithmetic/conftest.py
@@ -5,9 +5,25 @@
import pandas as pd
from pandas.compat import long
-from pandas.core.arrays import Per... | Test helpers and fixtures broken off of #23734 and #23642 since these are blockers for boxing and (thankfully, finally) simplification in these files | https://api.github.com/repos/pandas-dev/pandas/pulls/23748 | 2018-11-17T03:54:33Z | 2018-11-17T22:09:55Z | 2018-11-17T22:09:55Z | 2018-11-17T22:50:11Z |
TST/CLN: refactor tests\io\formats\test_to_html.py | diff --git a/pandas/tests/io/formats/data/datetime64_hourformatter.html b/pandas/tests/io/formats/data/datetime64_hourformatter.html
new file mode 100644
index 0000000000000..c92b7218eba76
--- /dev/null
+++ b/pandas/tests/io/formats/data/datetime64_hourformatter.html
@@ -0,0 +1,18 @@
+<table border="1" class="dataframe... | - [n/a ] xref #22786
- [ ] 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/23747 | 2018-11-16T23:28:27Z | 2018-11-17T22:39:23Z | 2018-11-17T22:39:23Z | 2018-11-18T10:47:48Z |
BUG Rename during dependency generation from conda | diff --git a/requirements-dev.txt b/requirements-dev.txt
index 93145d948c218..0c6350eb40c95 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -28,7 +28,7 @@ numexpr>=2.6.1
openpyxl
pyarrow>=0.7.0
pymysql
-pytables>=3.4.2
+tables>=3.4.2
pytest-cov
pytest-xdist
s3fs
diff --git a/scripts/generate_pip_d... | - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Package pytables wasn't renamed as it was compared to full package specification.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23740 | 2018-11-16T13:28:05Z | 2018-11-16T14:27:10Z | 2018-11-16T14:27:10Z | 2018-11-16T16:55:57Z |
DEPR: deprecate default of keep_tz=False of DatetimeIndex.to_series | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 007f5b7feb060..3991b42fb1afc 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1029,6 +1029,8 @@ Deprecations
`use_threads` to reflect the changes in pyarrow 0.11.0. (:issue:`23053`)
- :func:`pa... | Closes #17832
| https://api.github.com/repos/pandas-dev/pandas/pulls/23739 | 2018-11-16T12:58:25Z | 2018-11-16T17:25:15Z | 2018-11-16T17:25:15Z | 2019-11-20T02:59:07Z |
Add missing spacing before or after a param name in docstrings | diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx
index a010cbf76cf5d..7b7f5f2e34c5f 100644
--- a/pandas/_libs/tslibs/nattype.pyx
+++ b/pandas/_libs/tslibs/nattype.pyx
@@ -648,7 +648,7 @@ class NaTType(_NaT):
minute : int, optional
second : int, optional
microseco... | - [x] fixes #23729
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23738 | 2018-11-16T11:38:10Z | 2018-11-17T23:08:59Z | 2018-11-17T23:08:59Z | 2018-11-18T00:53:03Z |
DOC: Removing rpy2 dependencies, and converting examples using it to regular code blocks | diff --git a/ci/deps/travis-36-doc.yaml b/ci/deps/travis-36-doc.yaml
index f79fcb11c179f..fb54c784d6fac 100644
--- a/ci/deps/travis-36-doc.yaml
+++ b/ci/deps/travis-36-doc.yaml
@@ -2,7 +2,6 @@ name: pandas
channels:
- defaults
- conda-forge
- - r
dependencies:
- beautifulsoup4
- bottleneck
@@ -31,14 +30,... | - [X] closes #20648
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Still under discussion (https://github.com/pandas-dev/pandas/issues/20648#issuecomment-439343998), but in this PR I'm removing the rpy2 documentation page, as I think that docum... | https://api.github.com/repos/pandas-dev/pandas/pulls/23737 | 2018-11-16T10:43:21Z | 2018-11-20T16:18:25Z | 2018-11-20T16:18:25Z | 2018-11-20T16:18:26Z |
TST: Implement maximally-specific/strict fixtures for arithmetic tests | diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py
index e5d9c85691b7a..2becf8d776bda 100644
--- a/pandas/tests/arithmetic/conftest.py
+++ b/pandas/tests/arithmetic/conftest.py
@@ -5,9 +5,6 @@
import pandas as pd
from pandas.compat import long
-from pandas.core.arrays import (
- ... | gets rid of all remaining "FIXME" comments in tests/arithmetic.
Should go after #23681 and #23642 (will need to be rebased) | https://api.github.com/repos/pandas-dev/pandas/pulls/23734 | 2018-11-16T03:50:06Z | 2018-11-18T16:38:12Z | null | 2020-04-05T17:37:53Z |
TST/CLN: Fix/clean pytables test | diff --git a/pandas/tests/io/test_pytables.py b/pandas/tests/io/test_pytables.py
index 7e1b43e81f9c1..f7157fe13e14a 100644
--- a/pandas/tests/io/test_pytables.py
+++ b/pandas/tests/io/test_pytables.py
@@ -4756,24 +4756,26 @@ def test_categorical(self):
tm.assert_series_equal(s, result)
_mayb... | While working on #23731, I sometimes got a failing test for pytables -- based on the rest of the test, it seemed pretty clear that the `_maybe_remove(store, 'xx')` was not consistently used throughout the test, and so I thought I'd add it. I'm guessing the CI never hits this failure because it seems it would need more ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23732 | 2018-11-16T01:14:43Z | 2018-11-17T22:56:48Z | 2018-11-17T22:56:48Z | 2018-11-18T12:04:44Z |
CI for boto: fix errors; add coverage; add skip for uncatchable ResourceWarning | diff --git a/.travis.yml b/.travis.yml
index 03026647d6bb8..e0ab770ac46ba 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -90,6 +90,12 @@ before_install:
- uname -a
- git --version
- git tag
+ # Because travis runs on Google Cloud and has a /etc/boto.cfg,
+ # it breaks moto import, see:
+ # https://github.com... | closes #23680
closes #23754
- [x] fixture modified / tests pass
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
EDIT2: The warning has been identified as being caused by a vendored `requests` from `botocore<1.11`, which is solved by raising the minimum version to `1.11` for the only CI job (... | https://api.github.com/repos/pandas-dev/pandas/pulls/23731 | 2018-11-16T01:12:11Z | 2018-12-15T18:04:24Z | 2018-12-15T18:04:24Z | 2018-12-15T19:04:39Z |
BUG: Fix+test dataframe tranpose with datetimeTZ | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8d6e403783fc9..d3a93a576e55f 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -568,7 +568,9 @@ def _get_axes(N, K, index=index, columns=columns):
# if we don't have a dtype specified, then try to convert objects
# on the ent... | Reminder of the bug here:
```
>>> dti = pd.date_range('1977-04-15', periods=3, freq='MS', tz='US/Hawaii')
>>> df = pd.DataFrame(dti)
>>> df.T
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pandas/core/frame.py", line 2562, in transpose
return super(DataFrame, self).transp... | https://api.github.com/repos/pandas-dev/pandas/pulls/23730 | 2018-11-16T00:56:44Z | 2018-11-29T00:09:53Z | null | 2020-04-05T17:37:49Z |
CI: Fixing possible bugs in the CI | diff --git a/ci/azure/linux.yml b/ci/azure/linux.yml
index b5a8e36d5097d..23800f6719bfe 100644
--- a/ci/azure/linux.yml
+++ b/ci/azure/linux.yml
@@ -15,7 +15,7 @@ jobs:
CONDA_ENV: pandas
TEST_ARGS: "--skip-slow --skip-network"
- py36_locale:
+ py37_locale:
ENV_FILE: ci/deps/azure-... | I'm not sure if they are actual bugs, or I'm not understanding something. I think it's easier to discuss over a PR, so I fixed what I think it's wrong.
@jreback @TomAugspurger do you mind taking a look? | https://api.github.com/repos/pandas-dev/pandas/pulls/23727 | 2018-11-15T21:23:27Z | 2018-11-24T04:58:46Z | 2018-11-24T04:58:45Z | 2018-11-24T04:59:01Z |
BUG: concat warning bubbling up through str.cat | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 99aab607b2bf0..410721698e358 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -2241,7 +2241,7 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
# Need to add keys for uniqueness in case of duplicate columns... | This was an unexpected realisation from #23723 -- the change of `pd.concat` in #20613 to add `sort` and raise a warning if it's not specified was not caught in the `.str.cat` code, because it was being shadowed (apparently in all relevant tests) by another `FutureWarning` that's being raised if `join` is not specified ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23725 | 2018-11-15T20:24:49Z | 2018-11-17T23:00:38Z | 2018-11-17T23:00:38Z | 2018-11-18T12:02:00Z |
DOC: more consistent flake8-commands in contributing.rst | diff --git a/Makefile b/Makefile
index 4a4aca21e1b78..d2bd067950fd0 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ build: clean_pyc
python setup.py build_ext --inplace
lint-diff:
- git diff master --name-only -- "*.py" | grep -E "pandas|scripts" | xargs flake8
+ git diff upstream/master --name-only -- "*.p... | After #23707, I was looking at the rendered results in https://pandas-docs.github.io/pandas-docs-travis/contributing.html#id54, and noticed some inconsistencies:
* the linux commands use `git diff master` as opposed to `git diff upstream/master`; this is also in contrast to what's in the PR template
* the windows c... | https://api.github.com/repos/pandas-dev/pandas/pulls/23724 | 2018-11-15T19:11:46Z | 2018-11-20T02:27:35Z | 2018-11-20T02:27:35Z | 2018-11-20T06:53:07Z |
DOC: update str.cat example | diff --git a/doc/source/text.rst b/doc/source/text.rst
index 2361be765d889..e4f60a761750d 100644
--- a/doc/source/text.rst
+++ b/doc/source/text.rst
@@ -303,23 +303,24 @@ The same alignment can be used when ``others`` is a ``DataFrame``:
Concatenating a Series and many objects into a Series
^^^^^^^^^^^^^^^^^^^^^^^^^^... | There have been a couple of changes recently due to the whole docstring validation effort (e.g. #22838), which got rid of some warnings emitted by the sample code.
As it stands, the code samples don't really reflect the running text anymore, and with the changes from #22264, it makes sense to update the running text... | https://api.github.com/repos/pandas-dev/pandas/pulls/23723 | 2018-11-15T18:57:30Z | 2019-01-04T12:36:19Z | 2019-01-04T12:36:19Z | 2019-01-04T16:58:22Z |
TST: clean up to change setup.cfg to `xfail_strict = True` (GH23057) | diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py
index 2714b68fa6ff4..44e6cc664de6d 100644
--- a/pandas/tests/arithmetic/conftest.py
+++ b/pandas/tests/arithmetic/conftest.py
@@ -154,7 +154,7 @@ def box(request):
@pytest.fixture(params=[pd.Index,
pd.Series... | - [x] closes #23057
- [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/23721 | 2018-11-15T18:03:36Z | 2018-12-03T13:32:37Z | 2018-12-03T13:32:36Z | 2018-12-03T15:45:49Z |
ENH: Improve error message for empty object array | diff --git a/pandas/io/stata.py b/pandas/io/stata.py
index 7e8ab002f7978..d7beeb02a13c4 100644
--- a/pandas/io/stata.py
+++ b/pandas/io/stata.py
@@ -1868,7 +1868,14 @@ def _dtype_to_default_stata_fmt(dtype, column, dta_version=114,
inferred_dtype = infer_dtype(column.dropna())
if not (inferred_dtype i... | Improve the error message shown when an object array is empty
closes #23572
- [x] closes #23572
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
No what's new since too small a change and no test needed. | https://api.github.com/repos/pandas-dev/pandas/pulls/23718 | 2018-11-15T09:03:32Z | 2018-11-17T23:14:13Z | 2018-11-17T23:14:13Z | 2019-03-21T13:27:34Z |
Add option for DataFrame.to_html() to render URL data as links (#2679) | diff --git a/doc/source/io.rst b/doc/source/io.rst
index fd83f1a24edab..f9da5ee6d6737 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -2596,6 +2596,28 @@ table CSS classes. Note that these classes are *appended* to the existing
print(df.to_html(classes=['awesome_table_class', 'even_more_awesome_class'])... | - [X] closes #2679
- [X] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Two lines were added to tests that exceed the 79 character limit. | https://api.github.com/repos/pandas-dev/pandas/pulls/23715 | 2018-11-15T06:11:16Z | 2018-12-13T07:09:41Z | 2018-12-13T07:09:40Z | 2018-12-13T14:30:11Z |
DOC: Handle exceptions when computing contributors. | diff --git a/doc/sphinxext/contributors.py b/doc/sphinxext/contributors.py
index 0f04d47435699..8c9fa5bc961d1 100644
--- a/doc/sphinxext/contributors.py
+++ b/doc/sphinxext/contributors.py
@@ -10,6 +10,7 @@
"""
from docutils import nodes
from docutils.parsers.rst import Directive
+import git
from announce import ... | We're failing on master right now https://travis-ci.org/pandas-dev/pandas/jobs/455255389#L4369
```
Exception occurred:
File "/home/travis/miniconda3/envs/pandas/lib/python3.6/site-packages/git/cmd.py", line 825, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitComman... | https://api.github.com/repos/pandas-dev/pandas/pulls/23714 | 2018-11-15T03:20:20Z | 2018-11-15T11:53:40Z | 2018-11-15T11:53:40Z | 2018-11-15T11:54:22Z |
MAINT: Add more pytest idiom to parser tests | diff --git a/pandas/tests/io/parser/c_parser_only.py b/pandas/tests/io/parser/c_parser_only.py
deleted file mode 100644
index 88db1080642c5..0000000000000
--- a/pandas/tests/io/parser/c_parser_only.py
+++ /dev/null
@@ -1,494 +0,0 @@
-# -*- coding: utf-8 -*-
-
-"""
-Tests that apply specifically to the CParser. Unless s... | This is only a start. To keep the diff small, we are only converting `c_parser_only`.
If this looks good, the other test classes will soon follow in subsequent PR's.
cc @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/23712 | 2018-11-15T01:09:02Z | 2018-11-17T22:48:32Z | 2018-11-17T22:48:32Z | 2018-11-17T23:13:43Z |
ERR: Fail-fast with incompatible skipfooter combos | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 007f5b7feb060..34774f76de213 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1368,6 +1368,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form
- Bug in :func:`Dat... | Setup:
~~~python
from pandas import read_csv
from pandas.compat import StringIO
data = "a\n1\n2\n3\n4\n5"
# Case 1:
read_csv(StringIO(data), skipfooter=1, nrows=2)
# Case 2:
read_csv(StringIO(data), skipfooter=1, chunksize=2)
~~~
Currently, we get:
~~~python
# Case 1:
...
ValueError: skipfoote... | https://api.github.com/repos/pandas-dev/pandas/pulls/23711 | 2018-11-14T23:21:44Z | 2018-11-16T14:09:30Z | 2018-11-16T14:09:30Z | 2018-11-16T21:27:37Z |
DOC: Implement javascript to redirect old whatsnew pages to new ones | diff --git a/doc/source/_static/js/whatsnew_links.js b/doc/source/_static/js/whatsnew_links.js
new file mode 100644
index 0000000000000..bbe7d531a687d
--- /dev/null
+++ b/doc/source/_static/js/whatsnew_links.js
@@ -0,0 +1,22 @@
+(function() {
+ /* Reformats last part of 'whatsnew' URLs */
+ const generateWhatsNew = (wh... | - [x] closes #23695
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Javascript file to reformat / redirect 'whatsnew' href links in documentation. | https://api.github.com/repos/pandas-dev/pandas/pulls/23708 | 2018-11-14T21:50:43Z | 2018-12-25T00:13:54Z | null | 2018-12-25T00:13:54Z |
DOC: flake8-per-pr for windows users | diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst
index 514a58456bcd9..88a159a23c29a 100644
--- a/doc/source/contributing.rst
+++ b/doc/source/contributing.rst
@@ -591,21 +591,14 @@ run this slightly modified command::
git diff master --name-only -- "*.py" | grep "pandas/" | xargs flake8
-N... | This was vaguely inspired by #23658, and by me finding out that windows has a built-in kinda-sorta-grep called `findstr`.
I've already started using it, and it's proven very useful. However, windows CLI tools are horrible, horribly documented, and just generally have terrible syntax. The command was built together f... | https://api.github.com/repos/pandas-dev/pandas/pulls/23707 | 2018-11-14T21:23:42Z | 2018-11-15T12:02:34Z | 2018-11-15T12:02:34Z | 2018-11-15T19:01:48Z |
CLN/CI: Catch that stderr-warning! | diff --git a/pandas/tests/io/parser/python_parser_only.py b/pandas/tests/io/parser/python_parser_only.py
index 590736f720e67..6a41b4636e532 100644
--- a/pandas/tests/io/parser/python_parser_only.py
+++ b/pandas/tests/io/parser/python_parser_only.py
@@ -8,6 +8,7 @@
"""
import csv
+import sys
import pytest
@@ -2... | - [x] closes one of the three problems in #23680
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
There's an uncaught warning to stderr that bubbles up occasionally without failing the build (as far as I can tell), but it was one of the headfakes on the hunt for the R... | https://api.github.com/repos/pandas-dev/pandas/pulls/23706 | 2018-11-14T20:50:50Z | 2018-11-15T13:23:08Z | 2018-11-15T13:23:08Z | 2018-11-15T19:01:19Z |
BUG: Don't extract header names if none specified | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 44c467795d1ed..71c05981782f6 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1324,6 +1324,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form
- Bug in :meth:`HDF... | Closes #11733. | https://api.github.com/repos/pandas-dev/pandas/pulls/23703 | 2018-11-14T19:13:48Z | 2018-11-18T21:42:59Z | 2018-11-18T21:42:59Z | 2018-11-18T21:45:00Z |
Catch exception around much smaller piece of code | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 0eb2ffeab28f1..d4721cf895062 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -236,77 +236,176 @@ def _convert_listlike_datetimes(arg, box, format, name=None, tz=None,
require_iso8601 = not... | Broken off of #23675, followed by refactor.
The refactor has a non-trivial diff, but the only actual _logic_ changed here is the `except ValueError as e`, instead of catching everything from L240-L303, now specifically only catches errors raised by `tslib.array_to_datetime`. Everything else is just moving code outs... | https://api.github.com/repos/pandas-dev/pandas/pulls/23702 | 2018-11-14T18:28:19Z | 2018-11-15T02:54:53Z | null | 2020-04-05T17:37:59Z |
DEP/CI: Pin flake8-rst version | diff --git a/ci/deps/travis-36.yaml b/ci/deps/travis-36.yaml
index 8aa551f6194d9..1880fa2501581 100644
--- a/ci/deps/travis-36.yaml
+++ b/ci/deps/travis-36.yaml
@@ -9,7 +9,7 @@ dependencies:
- fastparquet
- flake8>=3.5
- flake8-comprehensions
- - flake8-rst
+ - flake8-rst=0.4.2
- gcsfs
- geopandas
-... | - [x] closes #23665
Pins version of `flake8-rst` to `0.4.2`.
* Newer versions of this plugin will cover more code-blocks within the documentation. Thus CI will fail when new version is released to conda-forge.
* Devs using pip already get issues as version `0.4.3` is released to PyPI.
`flake8-rst` is gettin... | https://api.github.com/repos/pandas-dev/pandas/pulls/23699 | 2018-11-14T16:26:24Z | 2018-11-14T17:04:09Z | 2018-11-14T17:04:08Z | 2018-11-22T20:52:14Z |
DOC: Delete more trailing blank lines in docstrings. | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 333f4e5ea21b4..d226d8c2e7ee2 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -2435,7 +2435,6 @@ class CategoricalAccessor(PandasDelegate, PandasObject, NoNewAttributesMixin):
>>> s.cat... | - [x] closes #23632
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` | https://api.github.com/repos/pandas-dev/pandas/pulls/23698 | 2018-11-14T16:00:27Z | 2018-11-15T20:54:24Z | 2018-11-15T20:54:24Z | 2018-11-16T13:48:56Z |
CLN: Remove unnecessary code | diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py
index d178c66da2cc1..f2ae7f6b56551 100644
--- a/pandas/core/accessor.py
+++ b/pandas/core/accessor.py
@@ -11,7 +11,7 @@
class DirNamesMixin(object):
- _accessors = frozenset([])
+ _accessors = frozenset()
_deprecations = frozenset(
... | `frozenset()` and `frozenset([])` essentially produce identical results, and thus there is no need to pass an empty list to create an empty `frozenset`.
- [ ] tests added / passed (CI is still running...)
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry (no new feature)
| https://api.github.com/repos/pandas-dev/pandas/pulls/23696 | 2018-11-14T15:05:47Z | 2018-11-14T17:05:37Z | 2018-11-14T17:05:37Z | 2018-11-15T06:55:34Z |
ENH: Allow export of mixed columns to Stata strl | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index d836ef3441e89..ec5b496278184 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -239,6 +239,7 @@ Other Enhancements
- :meth:`Timestamp.tz_localize`, :meth:`DatetimeIndex.tz_localize`, and :meth:`Seri... | Enable export of large columns to Stata strls when the column
contains None as a null value
closes #23633
- [x] closes #23633
- [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/23692 | 2018-11-14T12:26:42Z | 2018-11-14T17:06:46Z | 2018-11-14T17:06:46Z | 2019-03-21T13:27:36Z |
REF: Move Excel names parameter handling to CSV | diff --git a/pandas/io/excel.py b/pandas/io/excel.py
index a7e0e48de0a75..2b964a88a9695 100644
--- a/pandas/io/excel.py
+++ b/pandas/io/excel.py
@@ -651,6 +651,7 @@ def _parse_cell(cell_contents, cell_typ):
# GH 12292 : error when read one empty column from excel file
try:
par... | Let the CSV `TextFileParser` do the work. No need to duplicate logic in the `ExcelFile` class.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23690 | 2018-11-14T09:17:29Z | 2018-11-14T14:24:49Z | 2018-11-14T14:24:49Z | 2018-11-14T17:58:13Z |
BUG: Fix Series/DataFrame.rank(pct=True) with more than 2**24 rows | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index d836ef3441e89..9f92d7cbd9657 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1205,6 +1205,7 @@ Numeric
- Bug in :class:`DataFrame` with ``timedelta64[ns]`` dtype arithmetic operations with ``ndar... | - [X] closes #18271
- [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/23688 | 2018-11-14T07:27:34Z | 2018-11-14T14:26:26Z | 2018-11-14T14:26:25Z | 2018-11-16T16:21:59Z |
BUG: 'Unnamed' != unnamed column in CSV | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 007f5b7feb060..4ca65975605c3 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1359,6 +1359,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form
- :func:`read_csv()... | False criterion was causing errors when specified headers appeared to capture
a seemingly unnamed row, just because they had the string "Unnamed" in it.
Setup:
~~~python
from pandas import read_csv
from pandas.compat import StringIO
data = "Unnamed,NotUnnamed\n0,1\n2,3\n4,5"
read_csv(StringIO(data), header... | https://api.github.com/repos/pandas-dev/pandas/pulls/23687 | 2018-11-14T06:30:39Z | 2018-11-16T14:02:13Z | 2018-11-16T14:02:13Z | 2020-02-27T22:45:47Z |
BUG: Append DataFrame to Series with dateutil timezone | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 44c467795d1ed..7dac2d03514a6 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1372,6 +1372,7 @@ Reshaping
- Bug in :func:`pandas.concat` when concatenating a multicolumn DataFrame with tz-aware da... | - [x] closes #23682
- [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/23685 | 2018-11-14T05:49:28Z | 2018-11-15T13:26:46Z | 2018-11-15T13:26:45Z | 2018-12-14T18:12:11Z |
TST: Test cleanup, parametrization for datetime64 arithmetic tests | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 03e09175bdb09..479471332a274 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1,10 +1,12 @@
import importlib
import os
+from dateutil.tz import tzutc
import hypothesis
from hypothesis import strategies as st
import numpy as np
import pytest
... | Avoids overlap with #23642. | https://api.github.com/repos/pandas-dev/pandas/pulls/23681 | 2018-11-14T01:57:21Z | 2018-11-16T16:23:46Z | 2018-11-16T16:23:46Z | 2018-11-16T17:27:18Z |
DOC: Surface / doc mangle_dupe_cols in read_excel | diff --git a/pandas/io/excel.py b/pandas/io/excel.py
index a7e0e48de0a75..3ce8953a6edb2 100644
--- a/pandas/io/excel.py
+++ b/pandas/io/excel.py
@@ -175,12 +175,16 @@
convert integral floats to int (i.e., 1.0 --> 1). If False, all numeric
data will be read in as floats: Excel stores all numbers as floats
... | xref https://github.com/pandas-dev/pandas/issues/10523#issuecomment-438465073.
We already support `mangle_dupe_cols` (in the same vein as CSV). It was just hidden in `**kwds`. This just documents it in `read_excel` (it behaves exactly as it does in `read_csv`) and tests that we inform the end user that `mangle_dup... | https://api.github.com/repos/pandas-dev/pandas/pulls/23678 | 2018-11-13T22:42:36Z | 2018-11-14T12:59:24Z | 2018-11-14T12:59:24Z | 2018-11-14T17:58:20Z |
REF/DEPR: DatetimeIndex constructor | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 2341187c40a9e..45630f8109932 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -1503,6 +1503,83 @@ def maybe_convert_dtype(data, copy):
return data, copy
+def objects_to_datetime64ns(data, d... | This is preliminary to implementing DatetimeArray._from_sequence. The attempt to implement that directly (i.e. without existing circularity) failed, so trying it as a 2-parter.
Similar to #23539, this deprecates the option of passing timedelta64 data to DatetimeIndex.
There are a few places where I've made TODO ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23675 | 2018-11-13T21:10:02Z | 2018-12-03T13:19:33Z | 2018-12-03T13:19:33Z | 2018-12-03T15:18:09Z |
Fix errorbar visualization | diff --git a/doc/source/visualization.rst b/doc/source/visualization.rst
index 569a6fb7b7a0d..dd8ccfcfd28ac 100644
--- a/doc/source/visualization.rst
+++ b/doc/source/visualization.rst
@@ -1405,7 +1405,7 @@ Here is an example of one way to easily plot group means with standard deviation
# Plot
fig, ax = plt.sub... | - [x] closes #17467
- [ ] ~tests added / passed~
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23674 | 2018-11-13T20:30:13Z | 2018-11-14T13:04:33Z | 2018-11-14T13:04:33Z | 2018-11-14T13:04:42Z |
DOC: Add missing docstring error to validate_docstrings.py | diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py
index ca3efbfce20a7..0c88b7f684c49 100644
--- a/scripts/tests/test_validate_docstrings.py
+++ b/scripts/tests/test_validate_docstrings.py
@@ -407,6 +407,9 @@ def sections_in_wrong_order(self):
before Examples... | This is an update of a previous pull request -- https://github.com/pandas-dev/pandas/pull/23669
with all unrelated commits and merges removed and and updates added from code review of that pull request.
- [x] closes #23648
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --d... | https://api.github.com/repos/pandas-dev/pandas/pulls/23673 | 2018-11-13T19:01:40Z | 2018-12-07T12:49:41Z | 2018-12-07T12:49:40Z | 2018-12-07T12:49:44Z |
BUG: Preserve categorical dtypes when melting (#15853) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 20496c9fb3f31..0b6086a62d97f 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -211,6 +211,7 @@ Other Enhancements
- :func:`to_csv` now supports ``compression`` keyword when a file handle is passed.... | This addresses loss of Categorical status for columns used as id_vars by following Jeff's suggestion to introduce tiling, so Index, Series, and Categorical all grew a `.tile` method.
- [X] closes #15853
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23671 | 2018-11-13T17:37:24Z | 2019-01-05T15:40:02Z | null | 2019-01-05T15:40:02Z |
DOC: Add validation error when a docstring is missing | diff --git a/ci/deps/travis-36-doc.yaml b/ci/deps/travis-36-doc.yaml
index ce095b887f189..6bf8cb38e0b7c 100644
--- a/ci/deps/travis-36-doc.yaml
+++ b/ci/deps/travis-36-doc.yaml
@@ -11,7 +11,7 @@ dependencies:
- html5lib
- hypothesis>=3.58.0
- ipykernel
- - ipython==6.5.0
+ - ipython
- ipywidgets
- lxml... | - [x] closes #23648
- [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/23669 | 2018-11-13T16:25:52Z | 2018-11-13T17:40:47Z | null | 2018-11-13T18:55:37Z |
#23648 - Validate docstring now checks for existence of docstring first. | diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py
index 7da77a1f60ad5..f7093be5e2644 100755
--- a/scripts/validate_docstrings.py
+++ b/scripts/validate_docstrings.py
@@ -76,6 +76,7 @@
'{allowed_sections}',
'GL07': 'Wrong order of sections. "{wrong_section}" should be located... | TST - validate_one() will check if docstring exists before performing other checks. If it does not exist, then a single error will be returned reading 'Docstring does not exist'
PERF - validate_one will skip other validation checks if docstring doesn't exist, which will save time in cases of high volumes of function c... | https://api.github.com/repos/pandas-dev/pandas/pulls/23668 | 2018-11-13T15:58:52Z | 2018-11-13T21:47:38Z | null | 2018-11-13T21:47:39Z |
WIP/API: rename MultiIndex.labels to MultiIndex.codes | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index f8d153327f135..c1b421ed8f373 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1807,7 +1807,7 @@ def to_panel(self):
selfsorted = self
major_axis, minor_axis = selfsorted.index.levels
- major_labels, minor_label... | - [x] closes #13443
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This PR renames ``MultiIndex.labels`` to ``MultiIndex.codes``.
This is a work in progress. Still need to do:
* go though the docs and doc strings, especially ``advanced.rst`... | https://api.github.com/repos/pandas-dev/pandas/pulls/23663 | 2018-11-13T08:44:10Z | 2018-11-13T09:42:05Z | null | 2018-11-13T09:42:05Z |
ENH: update pandas-gbq to 0.8.0, adds credentials arg | diff --git a/doc/source/install.rst b/doc/source/install.rst
index 89f7b580303f5..9a62c6a89457a 100644
--- a/doc/source/install.rst
+++ b/doc/source/install.rst
@@ -286,7 +286,9 @@ Optional Dependencies
`xsel <http://www.vergenet.net/~conrad/software/xsel/>`__, or
`xclip <https://github.com/astrand/xclip/>`__: ne... | - N/A closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23662 | 2018-11-13T05:50:21Z | 2018-11-17T23:47:21Z | 2018-11-17T23:47:21Z | 2018-11-18T05:00:51Z |
BUG: Fix read_excel w/parse_cols & empty dataset | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 3938fba4648b1..9945629cbecd1 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1263,9 +1263,6 @@ MultiIndex
I/O
^^^
-- Bug in :meth:`to_sql` when writing timezone aware data (``datetime64[ns, tz... | Closes #9208.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23661 | 2018-11-13T04:56:45Z | 2018-11-13T17:32:53Z | 2018-11-13T17:32:52Z | 2018-11-13T17:34:30Z |
TST: IntervalTree.get_loc_interval should return platform int | diff --git a/pandas/_libs/intervaltree.pxi.in b/pandas/_libs/intervaltree.pxi.in
index aa53f5086b894..7be3bdbc1048a 100644
--- a/pandas/_libs/intervaltree.pxi.in
+++ b/pandas/_libs/intervaltree.pxi.in
@@ -116,7 +116,7 @@ cdef class IntervalTree(IntervalMixin):
enclosing = self.get_loc(0.5 * (key_left + key_rig... | One line change: missed this conversion in #23609 | https://api.github.com/repos/pandas-dev/pandas/pulls/23660 | 2018-11-13T02:52:53Z | 2018-11-13T13:48:58Z | 2018-11-13T13:48:58Z | 2018-11-14T06:17:30Z |
API/DEPR: replace "raise_conflict" with "errors" for df.update | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 44c467795d1ed..1441a84dfddc7 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -981,6 +981,7 @@ Deprecations
- The ``fastpath`` keyword of the different Index constructors is deprecated (:issue:`231... | - [x] closes #23585
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This is split off from #23192, as requested per review (because the PR was getting larger and larger).
| https://api.github.com/repos/pandas-dev/pandas/pulls/23657 | 2018-11-12T23:24:48Z | 2018-11-15T13:30:40Z | 2018-11-15T13:30:40Z | 2018-11-15T19:00:49Z |
CLN: Move to_excel to generic.py | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index f6f91ff5081f1..b23e76c8cd25c 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1829,24 +1829,6 @@ def to_panel(self):
return self._constructor_expanddim(new_mgr)
- @Appender(_shared_docs['to_excel'] % _shared_doc_kwargs)
- ... | No need to define the same method twice for `DataFrame` and `Series` if we can do it in one place. | https://api.github.com/repos/pandas-dev/pandas/pulls/23656 | 2018-11-12T22:42:06Z | 2018-11-13T13:50:46Z | 2018-11-13T13:50:46Z | 2018-11-13T17:34:37Z |
CI: Allow to compile docs with ipython 7.11 #22990 | diff --git a/ci/deps/travis-36-doc.yaml b/ci/deps/travis-36-doc.yaml
index ce095b887f189..6bf8cb38e0b7c 100644
--- a/ci/deps/travis-36-doc.yaml
+++ b/ci/deps/travis-36-doc.yaml
@@ -11,7 +11,7 @@ dependencies:
- html5lib
- hypothesis>=3.58.0
- ipykernel
- - ipython==6.5.0
+ - ipython
- ipywidgets
- lxml... | - [ ] closes #22990
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/23655 | 2018-11-12T21:26:26Z | 2018-11-13T02:11:21Z | 2018-11-13T02:11:20Z | 2018-11-13T02:20:20Z |
DOC: Fix format of the See Also descriptions | diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py
index 6694737737562..d178c66da2cc1 100644
--- a/pandas/core/accessor.py
+++ b/pandas/core/accessor.py
@@ -247,7 +247,7 @@ def plot(self):
>>> ds.geo.plot()
# plots data on a map
-See also
+See Also
--------
%(others)s
"""
diff --git a/pandas/... | - [ ] does not close, but partially contributes to #23630
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23654 | 2018-11-12T21:22:09Z | 2018-11-14T20:56:58Z | 2018-11-14T20:56:57Z | 2018-11-14T23:24:11Z |
DOC: Fix docstring title sections | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index a284d8fb544e7..d651e75674239 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -1739,7 +1739,7 @@ cdef class _Period(object):
-------
Timestamp
- See also
+ See Also
... | Changed "See also" section titles to "See Also" to fit with the new validator
- [x] closes #23640
- [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/23653 | 2018-11-12T21:07:59Z | 2018-11-13T00:45:51Z | 2018-11-13T00:45:50Z | 2018-11-13T00:45:51Z |
DOC: Improve error message to show correct order | diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py
index c1bdab73c2671..254162b7d1ffb 100644
--- a/scripts/tests/test_validate_docstrings.py
+++ b/scripts/tests/test_validate_docstrings.py
@@ -738,8 +738,8 @@ def test_bad_generic_functions(self, func):
('BadGener... | - [x] closes #23644
- [x] Test udpated for `sections_in_wrong_order`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23652 | 2018-11-12T21:01:26Z | 2018-11-17T23:26:02Z | 2018-11-17T23:26:02Z | 2018-11-17T23:26:05Z |
DOC: Delete trailing blank lines in docstrings. | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 20e4720a3bde7..e3b7c6b8d055b 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -314,7 +314,6 @@ def from_array(cls, arr, index=None, name=None, dtype=None, copy=False,
.. deprecated :: 0.23.0
Use pd.Series(..) const... | re: issue #23632
- [ ] refs #23632
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/23651 | 2018-11-12T20:55:02Z | 2018-11-14T23:27:26Z | 2018-11-14T23:27:26Z | 2018-11-16T13:49:37Z |
DOC: Add ignore-deprecate argument to validate_docstrings.py | diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py
index 60b60603f0289..d71f91febc778 100644
--- a/scripts/tests/test_validate_docstrings.py
+++ b/scripts/tests/test_validate_docstrings.py
@@ -817,6 +817,20 @@ def test_bad_examples(self, capsys, klass, func, msgs):
... | - [X] closes #23631
- [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/23650 | 2018-11-12T20:22:35Z | 2018-11-18T09:37:03Z | 2018-11-18T09:37:03Z | 2018-11-18T09:37:03Z |
DOC: Improve GL03 message re: blank lines at end of docstrings. | diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py
index a996cb35fb84f..ca3efbfce20a7 100644
--- a/scripts/tests/test_validate_docstrings.py
+++ b/scripts/tests/test_validate_docstrings.py
@@ -288,6 +288,34 @@ def astype3(self, dtype):
"""
pass
+ de... | re: conversation with @datapythonista in issue #23632
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/23649 | 2018-11-12T20:21:57Z | 2018-11-20T02:18:36Z | 2018-11-20T02:18:36Z | 2018-11-20T20:20:16Z |
DOC: Capitalize docstring summaries of Series | diff --git a/pandas/core/arrays/sparse.py b/pandas/core/arrays/sparse.py
index 672261c2a407e..24e33c32d0898 100644
--- a/pandas/core/arrays/sparse.py
+++ b/pandas/core/arrays/sparse.py
@@ -1861,6 +1861,10 @@ def _make_index(length, indices, kind):
'sp_values'],
typ='prope... | Updated documentation to resolve SS02 errors in pandas.Series
- [x] closes #23641
- [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/23647 | 2018-11-12T19:56:45Z | 2018-11-21T12:56:27Z | 2018-11-21T12:56:27Z | 2018-11-21T12:56:30Z |
More helpful Stata object dtype error. (#23572) | diff --git a/pandas/io/stata.py b/pandas/io/stata.py
index 66e996075f1ed..8affc90773d9a 100644
--- a/pandas/io/stata.py
+++ b/pandas/io/stata.py
@@ -466,6 +466,12 @@ def parse_dates_safe(dates, delta=False, year=False, days=False):
"""
+general_object_array_error = """
+Writing non-string object columns is not sup... | - [x] closes #23572
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This changes the error message shown when trying to write a non-string column with dtype `object` to Stata. It also includes the name of the offending column in the error messag... | https://api.github.com/repos/pandas-dev/pandas/pulls/23646 | 2018-11-12T19:54:17Z | 2018-11-17T23:28:26Z | null | 2018-11-18T00:14:48Z |
BUG: Keep column level names during resample nunique (#23222) | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 665649aead33c..32cc7aa91cff1 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -2346,6 +2346,7 @@ application to columns of a specific data type.
DataFrameGroupBy.idxmax
DataFrameGroupBy.idxmin
DataFrameGroupBy.mad
+ DataFrameGroupBy.nun... | - [X] closes #23222
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
nunique is the only one I found in a quick search which manifested the problem. | https://api.github.com/repos/pandas-dev/pandas/pulls/23645 | 2018-11-12T19:51:29Z | 2019-02-27T23:47:55Z | null | 2019-02-28T04:25:17Z |
Implement _most_ of the EA interface for DTA/TDA | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index daf2dcccd284b..094c9c3df0bed 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -39,7 +39,7 @@
from pandas.core.dtypes.missing import isna
import pandas.core.common as com
-from pandas... | @TomAugspurger as promised, this implements a handful of tests, and a few more can be ported from #23415, but the EA-specific tests haven't been started.
The big missing piece is DatetimeArray._from_sequence, which I'm getting started on now in a new branch.
Closes #23586 | https://api.github.com/repos/pandas-dev/pandas/pulls/23643 | 2018-11-12T18:22:41Z | 2018-11-14T15:23:03Z | 2018-11-14T15:23:03Z | 2018-11-14T16:25:04Z |
TST: Extend timedelta64 arithmetic tests to TimedeltaArray | diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py
index 38e28e8b77359..d1e6d979b554c 100644
--- a/pandas/core/arrays/timedeltas.py
+++ b/pandas/core/arrays/timedeltas.py
@@ -1,5 +1,8 @@
# -*- coding: utf-8 -*-
+from __future__ import division
+
from datetime import timedelta
+import ope... | A handful of non-test changes to make the tests pass, all non-test changes are strictly necessary.
Some of the tests are not yet extended, as making the TDA case work will require more invasive changes. | https://api.github.com/repos/pandas-dev/pandas/pulls/23642 | 2018-11-12T18:09:26Z | 2018-11-20T19:18:44Z | 2018-11-20T19:18:43Z | 2018-11-20T20:05:30Z |
DOC: Accessing files from a S3 bucket. | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 34dc185c200e6..92fc28af0281a 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -1580,12 +1580,19 @@ You can pass in a URL to a CSV file:
df = pd.read_csv('https://download.bls.gov/pub/time.series/cu/cu.item',
sep='\t')
-S3 URLs ... | Add some documentation about accessing files from a remote S3 bucket in pandas.
- [x] closes #12206
- [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/23639 | 2018-11-12T16:43:03Z | 2018-11-14T13:58:16Z | 2018-11-14T13:58:16Z | 2018-11-14T13:58:17Z |
DOC: avoid SparseArray.take error | diff --git a/doc/source/whatsnew/v0.18.1.txt b/doc/source/whatsnew/v0.18.1.txt
index 34921505a46bf..2445daebb580a 100644
--- a/doc/source/whatsnew/v0.18.1.txt
+++ b/doc/source/whatsnew/v0.18.1.txt
@@ -266,7 +266,7 @@ These changes conform sparse handling to return the correct types and work to ma
``SparseArray.take`... | Closes https://github.com/pandas-dev/pandas/issues/22215
SparseArray.take not accepting scalars is already in 0.24.0.txt | https://api.github.com/repos/pandas-dev/pandas/pulls/23637 | 2018-11-12T13:28:07Z | 2018-11-12T17:02:52Z | 2018-11-12T17:02:52Z | 2018-11-12T17:02:52Z |
DOC: clean-up recent doc errors/warnings | diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst
index 24c117a534209..563c869eff54d 100644
--- a/doc/source/advanced.rst
+++ b/doc/source/advanced.rst
@@ -702,7 +702,7 @@ Index Types
We have discussed ``MultiIndex`` in the previous sections pretty extensively.
Documentation about ``DatetimeIndex`` and... | Fixing some sphinx errors / warnings.
We really should revive the PR to let travis fail on new warnings/errors... | https://api.github.com/repos/pandas-dev/pandas/pulls/23636 | 2018-11-12T13:01:54Z | 2018-11-12T20:54:49Z | 2018-11-12T20:54:49Z | 2018-11-12T20:54:52Z |
DEPR: Deprecate usecols as int in read_excel | diff --git a/doc/source/io.rst b/doc/source/io.rst
index beb1c1daba962..34dc185c200e6 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -2854,6 +2854,11 @@ It is often the case that users will insert columns to do temporary computations
in Excel and you may not want to read in those columns. ``read_excel`` tak... | Follow-up to https://github.com/pandas-dev/pandas/pull/23544#discussion_r232441155
Pretty standard, cut and dry deprecation. | https://api.github.com/repos/pandas-dev/pandas/pulls/23635 | 2018-11-12T05:42:14Z | 2018-11-12T13:04:41Z | 2018-11-12T13:04:41Z | 2018-11-12T19:43:13Z |
PERF: Datetime/Timestamp.normalize for timezone naive datetimes | diff --git a/asv_bench/benchmarks/timestamp.py b/asv_bench/benchmarks/timestamp.py
index 8eaf815eaa962..a0f3bfa6298f3 100644
--- a/asv_bench/benchmarks/timestamp.py
+++ b/asv_bench/benchmarks/timestamp.py
@@ -87,7 +87,7 @@ def time_microsecond(self, tz, freq):
class TimestampOps(object):
- params = [None, 'US/E... | - [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
```
before after ratio
[bb32564c] [ff171f75]
- 281±2μs 197±2μs 0.70 timeseries.DatetimeIndex.time_normalize('dst')
- 4.26±0.05ms ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23634 | 2018-11-12T04:32:11Z | 2018-11-18T18:27:39Z | 2018-11-18T18:27:38Z | 2018-11-18T18:29:01Z |
More helpful Stata string length error. | diff --git a/pandas/io/stata.py b/pandas/io/stata.py
index df0d47b063411..66e996075f1ed 100644
--- a/pandas/io/stata.py
+++ b/pandas/io/stata.py
@@ -461,7 +461,8 @@ def parse_dates_safe(dates, delta=False, year=False, days=False):
excessive_string_length_error = """
Fixed width strings in Stata .dta files are limit... | The current error string when trying to write a string longer than 244 characters does not point users toward a solution that already exists: using the `version=117` parameter.
xref #23564
- [x] closes: no issue that I see
- [x] tests: not needed; error string change only
- [ ] passes `git diff upstream/master -u ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23629 | 2018-11-11T21:53:39Z | 2018-11-12T12:31:45Z | 2018-11-12T12:31:45Z | 2018-11-12T13:26:54Z |
Ensure Index._data is an ndarray | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 2f449b4b33d8d..454d029c266f5 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -19,7 +19,7 @@
ABCSeries, ABCDataFrame,
ABCMultiIndex,
ABCPeriodIndex, ABCTimedeltaIndex, ABCDatetimeIndex,
- ABCDateO... | Split from https://github.com/pandas-dev/pandas/pull/23623, where it was
causing issues. | https://api.github.com/repos/pandas-dev/pandas/pulls/23628 | 2018-11-11T21:14:22Z | 2018-11-15T12:57:54Z | 2018-11-15T12:57:54Z | 2018-11-15T12:58:03Z |
CI: Check in the CI that assert_raises_regex is not being used | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index eba96f0c6c2fc..2eb3fabd04df2 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -119,6 +119,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
! grep -R --include="*.py" --include="*.pyx" --include="*.rst" -E "\.\. (autosummary|contents|curren... | Follow up of #23592.
As `assert_raises_regex`is now deprecated, add to the CI a check to fail if a PR uses it.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23627 | 2018-11-11T20:18:56Z | 2018-11-12T05:31:09Z | 2018-11-12T05:31:09Z | 2018-11-12T05:31:09Z |
fix | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index c7c6f89eb13a4..05dc9bdcd499c 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1220,8 +1220,13 @@ def construct_1d_arraylike_from_scalar(value, length, dtype):
# GH 22858: only cast to float if an index
... | https://api.github.com/repos/pandas-dev/pandas/pulls/23626 | 2018-11-11T19:54:52Z | 2018-11-11T19:55:20Z | null | 2018-11-11T19:55:20Z | |
CLN: remove incorrect usages of com.AbstractMethodError | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 34f25c5634d5b..2c7f6ae8e3533 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -11,6 +11,8 @@
import pandas as pd
from pandas._libs import properties, Timestamp, iNaT
+from pandas.errors import AbstractMethodError
+
from pandas.co... | - [ ] 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/23625 | 2018-11-11T18:42:32Z | 2018-11-12T16:58:52Z | 2018-11-12T16:58:52Z | 2018-11-12T18:10:25Z |
API: Public data for Series and Index: .array and .to_numpy() | diff --git a/doc/source/10min.rst b/doc/source/10min.rst
index ddcb9b5fc26c7..e04a8253e0bef 100644
--- a/doc/source/10min.rst
+++ b/doc/source/10min.rst
@@ -113,13 +113,40 @@ Here is how to view the top and bottom rows of the frame:
df.head()
df.tail(3)
-Display the index, columns, and the underlying NumPy da... | Closes https://github.com/pandas-dev/pandas/issues/19954.
TODO:
- [ ] update references to `.values` in the docs to use `.array` or `.to_numpy()`
- [ ] cross ref between `.values` and the rest | https://api.github.com/repos/pandas-dev/pandas/pulls/23623 | 2018-11-11T13:17:53Z | 2018-11-29T15:53:22Z | 2018-11-29T15:53:21Z | 2018-11-29T15:59:45Z |
DEPR: tz_convert in the Timestamp constructor | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 98941b6d353bb..a214ee41e99a7 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1036,6 +1036,7 @@ Deprecations
- Constructing a :class:`TimedeltaIndex` from data with ``datetime64``-dtyped data is d... | - [x] closes #23579
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
To have consistent behavior with `DatetimeIndex`, deprecate the `tz_convert` behavior of the `Timestamp` constructor with the `tz` arg. | https://api.github.com/repos/pandas-dev/pandas/pulls/23621 | 2018-11-11T00:24:27Z | 2018-11-18T18:30:18Z | 2018-11-18T18:30:17Z | 2018-11-18T18:30:53Z |
TST: Fix xfailing DataFrame arithmetic tests by transposing | diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py
index cf1abc6f79101..9ee5e05638978 100644
--- a/pandas/tests/arithmetic/conftest.py
+++ b/pandas/tests/arithmetic/conftest.py
@@ -158,19 +158,18 @@ def box_df_fail(request):
return request.param
-@pytest.fixture(params=[
- ... | - [ ] 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/23620 | 2018-11-10T22:37:02Z | 2018-11-12T00:15:18Z | 2018-11-12T00:15:18Z | 2018-11-12T00:24:40Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.