title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
DOC removed unnecessary use of parameter in example rename function call | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ba58382db4e76..e4725d24421f2 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3995,20 +3995,28 @@ def rename(self, *args, **kwargs):
We *highly* recommend using keyword arguments to clarify your
intent.
+ Rename co... | removed unnecessary (and misleading) use of index parameter in docstring example function call of rename function
xref #26248
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26250 | 2019-04-30T18:32:34Z | 2019-05-07T01:38:09Z | 2019-05-07T01:38:09Z | 2019-05-07T01:38:26Z |
TST: make test_astype_categorical_to_other deterministic | diff --git a/pandas/tests/series/test_dtypes.py b/pandas/tests/series/test_dtypes.py
index afa0377205236..945b89e7c6f99 100644
--- a/pandas/tests/series/test_dtypes.py
+++ b/pandas/tests/series/test_dtypes.py
@@ -268,7 +268,8 @@ def test_astype_from_categorical(self):
def test_astype_categorical_to_other(self):
... | The use of an unseeded random number generator means that this test can
occasionally fail for no particular reason.
In particular, I saw the following error:
```
=================================== FAILURES ===================================
______________ TestSeriesDtypes.test_astype_categorical_to_other _____... | https://api.github.com/repos/pandas-dev/pandas/pulls/26244 | 2019-04-30T00:01:21Z | 2019-04-30T10:25:38Z | 2019-04-30T10:25:38Z | 2019-04-30T10:25:44Z |
ENH: Poisson exponential window | diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst
index c96e066a5874b..466486586f50b 100644
--- a/doc/source/user_guide/computation.rst
+++ b/doc/source/user_guide/computation.rst
@@ -365,7 +365,8 @@ The list of recognized types are the `scipy.signal window functions
* ``kaiser... | - [x] closes #21303
- [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/26243 | 2019-04-29T20:23:07Z | 2019-05-07T11:31:42Z | 2019-05-07T11:31:41Z | 2019-05-07T11:31:46Z |
ENH: clearer error msg for unequal categoricals in merge_asof (GH#26136) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index b2a379d9fe6f5..9d7868ed1394e 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -37,6 +37,7 @@ Other Enhancements
- :class:`RangeIndex` has gained :attr:`~RangeIndex.start`, :attr:`~RangeIndex.stop`,... | - [x] closes #26136
- [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/26242 | 2019-04-29T19:55:45Z | 2019-05-01T21:48:01Z | 2019-05-01T21:48:00Z | 2019-05-02T14:02:58Z |
BUG: Enable plotting with PeriodIndex with arbitrary frequencies, resolves #14763 | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1fff30525853d..1de02e24910ec 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -458,6 +458,8 @@ Plotting
- Fixed bug where :class:`api.extensions.ExtensionArray` could not be used in matplotlib plot... | - [x] closes #14763
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Enables plotting of data with PeriodIndex with frequencies which are multiples of the `data.index.freq.rule_code`.
Hopefully I'll find some time to include tests within the next 3 weeks. Since this... | https://api.github.com/repos/pandas-dev/pandas/pulls/26241 | 2019-04-29T19:32:17Z | 2019-05-28T20:56:00Z | 2019-05-28T20:55:59Z | 2019-06-05T11:51:23Z |
TST: Test pd.Grouper base floating point error (#25161) | diff --git a/pandas/tests/resample/test_datetime_index.py b/pandas/tests/resample/test_datetime_index.py
index b5cc28e07fca6..c2868979e9d8d 100644
--- a/pandas/tests/resample/test_datetime_index.py
+++ b/pandas/tests/resample/test_datetime_index.py
@@ -751,6 +751,19 @@ def test_resample_base():
tm.assert_index_equ... | - [x] closes #25161
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26240 | 2019-04-29T18:25:21Z | 2019-05-02T12:17:37Z | 2019-05-02T12:17:37Z | 2019-07-11T15:47:58Z |
Fix Memory Leak in to_json with Numeric Values | diff --git a/asv_bench/benchmarks/io/json.py b/asv_bench/benchmarks/io/json.py
index ec2ddc11b7c1d..19d11e6610198 100644
--- a/asv_bench/benchmarks/io/json.py
+++ b/asv_bench/benchmarks/io/json.py
@@ -124,4 +124,26 @@ def time_float_int_str_lines(self, orient):
self.df_int_float_str.to_json(self.fname, orient=... | - [X] closes #24889
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
It looks like the extension module is unnecessarily incrementing the reference count for numeric objects and never releasing it, which causes a leak in to_json.
Still trying ... | https://api.github.com/repos/pandas-dev/pandas/pulls/26239 | 2019-04-29T18:03:12Z | 2019-04-30T13:04:06Z | 2019-04-30T13:04:06Z | 2020-01-16T00:34:07Z |
CLN: Remove unnecessary io function returns | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e539391ba011e..ee2a700de6c62 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1394,13 +1394,12 @@ def to_gbq(self, destination_table, project_id=None, chunksize=None,
read_gbq : Read a DataFrame from Google BigQuery.
"""
... | These functions return a function either with empty return statement or doesn’t return. It causes docstring validation error with type RT01 (See #26234).
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26238 | 2019-04-29T17:12:34Z | 2019-04-30T13:02:12Z | 2019-04-30T13:02:12Z | 2019-07-11T15:48:02Z |
DOC: Fix validation error type `RT01` and check in CI (#25356) | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 4468b5e07cc07..2eb6d08ce22e5 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -261,8 +261,8 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
- MSG='Validate docstrings (GL03, GL06, GL07, GL09, SS04, SS05, PR03, PR04,... | - [x] closes #25356
- [x] passes `./scripts/validate_docstrings.py --errors=RT01`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26234 | 2019-04-28T20:41:58Z | 2019-05-08T03:57:10Z | 2019-05-08T03:57:09Z | 2019-07-11T15:47:55Z |
Refactor init for Excel readers to _BaseExcelReader | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index c5f6019d7aeb5..a41e97831d104 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -1,13 +1,14 @@
import abc
from collections import OrderedDict
from datetime import date, datetime, timedelta
+from io import BytesIO
import os
... | Pre-cursor for #25092. To support multiple excel readers the init function is moved to _BaseExcelReader. The function is made a bit more general to be able to support multiple excel readers.
- [ ] tests passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26233 | 2019-04-28T19:50:00Z | 2019-04-30T15:17:59Z | 2019-04-30T15:17:59Z | 2019-05-01T10:12:37Z |
Revert "xref #26189, xfail scipy interpolate test for pchip with timedelta | diff --git a/pandas/tests/series/test_missing.py b/pandas/tests/series/test_missing.py
index 2f9f11c272814..4c722406ab60f 100644
--- a/pandas/tests/series/test_missing.py
+++ b/pandas/tests/series/test_missing.py
@@ -1440,12 +1440,10 @@ def test_interpolate_timedelta_index(self, interp_methods_ind):
if method ... | closes #26189
This reverts commit e134ddb727069e50bd76c319d9d220fc23ca170f.
| https://api.github.com/repos/pandas-dev/pandas/pulls/26231 | 2019-04-28T15:29:19Z | 2019-04-28T16:11:15Z | 2019-04-28T16:11:15Z | 2019-04-28T16:11:16Z |
CLN: Clean uses of super, part II | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index e7444fe56ab4d..d2889a65fbf86 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -144,6 +144,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
invgrep -R --include="*.py" --include="*.pyx" -E "class\s\S*\(object\):" pandas scripts
RET=$((... | - [x] xref #25725 & #26177
Continuation from #26177. In addition to the uses of ``super`` dealt with in #26177, there were some more advanced uses of ``super`` in the code base, e.g. in classmethods and using ``super`` to jump to a specific point in the MRO-chain.
This PR specifically deals with:
* ``super(..., ... | https://api.github.com/repos/pandas-dev/pandas/pulls/26230 | 2019-04-28T07:28:01Z | 2019-04-28T08:28:31Z | null | 2019-05-01T20:07:14Z |
BUG: Fix #10355, std() groupby calculation | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index d38ee7b8b589a..d718eaf697f8d 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -442,6 +442,7 @@ Groupby/Resample/Rolling
- Bug in :meth:`pandas.core.groupby.GroupBy.idxmax` and :meth:`pandas.core.gr... | - [x] closes #10355
- [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/26229 | 2019-04-27T22:37:59Z | 2019-08-28T16:13:53Z | null | 2019-08-28T16:13:53Z |
Fix .transform crash when SeriesGroupBy is empty (#26208) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 506b0b7a850e5..2b04a58c4b9da 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -403,6 +403,7 @@ Groupby/Resample/Rolling
- Bug in :meth:`pandas.core.groupby.GroupBy.idxmax` and :meth:`pandas.core.gr... | - [X] closes #26208
- [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/26228 | 2019-04-27T18:01:07Z | 2019-05-15T13:01:29Z | 2019-05-15T13:01:28Z | 2019-05-15T13:01:33Z |
[CI] Remove duplicate config in .pep8speaks.yml | diff --git a/.pep8speaks.yml b/.pep8speaks.yml
index cbcb098c47125..5a83727ddf5f8 100644
--- a/.pep8speaks.yml
+++ b/.pep8speaks.yml
@@ -2,18 +2,3 @@
scanner:
diff_only: True # If True, errors caused by only the patch are shown
-
-# Opened issue in pep8speaks, so we can directly use the config in setup.cfg
-# ... | - closes #25605
| https://api.github.com/repos/pandas-dev/pandas/pulls/26226 | 2019-04-27T15:10:13Z | 2019-04-28T15:30:22Z | 2019-04-28T15:30:22Z | 2019-04-28T15:30:27Z |
[PERF] Get rid of MultiIndex conversion in IntervalIndex.intersection | diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py
index 78fe2ae966896..de72f08515246 100644
--- a/asv_bench/benchmarks/index_object.py
+++ b/asv_bench/benchmarks/index_object.py
@@ -196,11 +196,20 @@ def setup(self, N):
self.intv = IntervalIndex.from_arrays(left, right)
... | - xref #24813
- passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- whatsnew entry
```
before after ratio
[64104ec3] [e9ddf02b]
<master> <GH24813-inter>
- 1.76±0.01ms 233±0.5μs 0.13 index_object.IntervalIndexMethod.time_intersect... | https://api.github.com/repos/pandas-dev/pandas/pulls/26225 | 2019-04-27T14:32:30Z | 2019-06-06T14:30:38Z | 2019-06-06T14:30:38Z | 2019-06-07T12:24:49Z |
Continued ujson cleanups | diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c
index ef6ff61a29630..55e508eab816e 100644
--- a/pandas/_libs/src/ujson/python/objToJSON.c
+++ b/pandas/_libs/src/ujson/python/objToJSON.c
@@ -48,10 +48,9 @@ Numeric decoder derived from from TCL library
#include <../../.... | ref some of the comments by @jbrockmendel in #26212
| https://api.github.com/repos/pandas-dev/pandas/pulls/26222 | 2019-04-26T21:49:12Z | 2019-04-30T13:07:17Z | 2019-04-30T13:07:17Z | 2020-01-16T00:34:08Z |
Don't cache metadata in GCS connections | diff --git a/pandas/io/gcs.py b/pandas/io/gcs.py
index 89dade27ad543..a4383ed075150 100644
--- a/pandas/io/gcs.py
+++ b/pandas/io/gcs.py
@@ -11,7 +11,7 @@ def get_filepath_or_buffer(filepath_or_buffer, encoding=None,
if mode is None:
mode = 'rb'
- fs = gcsfs.GCSFileSystem()
+ fs = gcsfs.GCSFileSys... | Currently if you access a bucket, change the contents, and try to read a new file w/ e.g. `read_parquet`, you see a `FileNotFoundError`; restarting Python fixes this. IMO since the `gcsfs` connection is hidden from the user, caching metadata doesn't really make sense (how would you even go about clearing this manually?... | https://api.github.com/repos/pandas-dev/pandas/pulls/26221 | 2019-04-26T21:24:54Z | 2019-04-28T16:44:12Z | null | 2019-04-28T16:44:12Z |
PERF: added no exception versions of '_string_to_dts' and 'parse_iso_8601_datetime' functions | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 50e3fb1c38cc7..68ad38dc37165 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -204,7 +204,7 @@ def _test_parse_iso8601(object ts):
elif ts == 'today':
return Timestamp.now().normalize()
- _string_to_dts(ts, &obj.dts... | - [x] closes #N/A
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
`asv continuous -f 1.05 origin/master HEAD -b ^io.csv -b ^timeseries -a warmup_time=1 -a sample_time=1`:
master| patch| ratio| test name
-|-|-|-
98.4±3ms| 76.2±2ms| ... | https://api.github.com/repos/pandas-dev/pandas/pulls/26220 | 2019-04-26T21:07:53Z | 2019-05-07T01:08:38Z | 2019-05-07T01:08:38Z | 2019-05-10T08:24:08Z |
CLN: Remove inheritance from object in pyx-files | diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py
index 11ff5444223d0..908eaa3a9d214 100644
--- a/asv_bench/benchmarks/index_object.py
+++ b/asv_bench/benchmarks/index_object.py
@@ -181,7 +181,7 @@ def time_get_loc(self):
self.ind.get_loc(0)
-class IntervalIndexMethod... | - [x] xref #25725 and #26128
Continuation of #26128, this time dealing with pyx-files. | https://api.github.com/repos/pandas-dev/pandas/pulls/26217 | 2019-04-26T18:15:44Z | 2019-04-27T07:08:21Z | 2019-04-27T07:08:21Z | 2019-04-27T08:18:56Z |
Removed Unnecessary Compat Directives from ujson | diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c
index 36bf69c50217f..ef6ff61a29630 100644
--- a/pandas/_libs/src/ujson/python/objToJSON.c
+++ b/pandas/_libs/src/ujson/python/objToJSON.c
@@ -62,10 +62,6 @@ npy_int64 get_nat(void) { return NPY_MIN_INT64; }
typedef void ... | Continuing cleanup of ujson source there are some preprocessor directives in there which are no longer valid given minimum Python and NumPy versions | https://api.github.com/repos/pandas-dev/pandas/pulls/26211 | 2019-04-25T17:09:15Z | 2019-04-26T00:45:12Z | 2019-04-26T00:45:11Z | 2020-01-16T00:34:11Z |
DOC: Fix misspelling in get_dummies docstring | diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py
index beb497fb96e7e..bd695e2d0d83d 100644
--- a/pandas/core/reshape/reshape.py
+++ b/pandas/core/reshape/reshape.py
@@ -718,7 +718,7 @@ def get_dummies(data, prefix=None, prefix_sep='_', dummy_na=False,
If `columns` is None then all t... | - [ ] 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/26207 | 2019-04-24T21:44:03Z | 2019-04-24T22:27:14Z | 2019-04-24T22:27:14Z | 2019-04-24T22:27:22Z |
PERF: Cython version of Python _TIMEPAT regexp in parsing.pyx | diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py
index 260c1c3905628..add0943c5ce9f 100644
--- a/asv_bench/benchmarks/io/csv.py
+++ b/asv_bench/benchmarks/io/csv.py
@@ -252,11 +252,12 @@ def mem_parser_chunks(self):
class ReadCSVParseSpecialDate(StringIORewind):
- params = (['mY', 'm... | - [x] closes #N/A
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
`asv continuous -f 1.05 origin/master HEAD -b ^io.csv.ReadCSVParseSpecialDate -a warmup_time=2 -a sample_time=2`:
master | patch | ratio | test_name
-|-|-|-
276±1ms| ... | https://api.github.com/repos/pandas-dev/pandas/pulls/26204 | 2019-04-24T09:43:45Z | 2019-04-24T15:05:20Z | 2019-04-24T15:05:20Z | 2019-04-24T15:05:25Z |
Relaxed error message for failing test | diff --git a/pandas/tests/indexes/datetimes/test_tools.py b/pandas/tests/indexes/datetimes/test_tools.py
index 2ad7b931aae78..d6627f0fb8b72 100644
--- a/pandas/tests/indexes/datetimes/test_tools.py
+++ b/pandas/tests/indexes/datetimes/test_tools.py
@@ -1323,8 +1323,7 @@ def test_string_na_nat_conversion(self, cache):
... | xref #26200 | https://api.github.com/repos/pandas-dev/pandas/pulls/26201 | 2019-04-23T23:05:51Z | 2019-04-24T12:12:31Z | 2019-04-24T12:12:31Z | 2019-04-25T15:57:39Z |
ujson Py2 compat removal | diff --git a/pandas/_libs/src/ujson/python/JSONtoObj.c b/pandas/_libs/src/ujson/python/JSONtoObj.c
index 85cf1d5e5e7a1..7fd5fb4eb8e83 100644
--- a/pandas/_libs/src/ujson/python/JSONtoObj.c
+++ b/pandas/_libs/src/ujson/python/JSONtoObj.c
@@ -35,14 +35,12 @@ Numeric decoder derived from from TCL library
* Copyright (c)... | There was a header file in the ujson source specifically meant to bridge compatibility between Py2 and Py3. With the Py2 support drop this could be removed and the source code simplified.
Most of these changes are simply verbatim, though there are probably a few follow ups on context to simplify further that could b... | https://api.github.com/repos/pandas-dev/pandas/pulls/26199 | 2019-04-23T22:52:59Z | 2019-04-24T21:00:57Z | 2019-04-24T21:00:57Z | 2019-04-25T15:57:29Z |
Remove Unused Functions from ujson | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 3e00ec9cbb742..49b8c49573b6a 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -417,7 +417,7 @@ Sparse
Other
^^^^^
--
+- Removed unused C functions from vendored UltraJSON implementation (:issue:... | dump and load don't appear anywhere in the code base except for UltraJSON tests. Since they are part of the exposed API I figure makes just as much sense to remove | https://api.github.com/repos/pandas-dev/pandas/pulls/26198 | 2019-04-23T22:17:31Z | 2019-04-25T14:53:25Z | 2019-04-25T14:53:25Z | 2019-04-25T15:57:15Z |
CLN: remove '# -*- coding: utf-8 -*-' pattern | diff --git a/asv_bench/benchmarks/offset.py b/asv_bench/benchmarks/offset.py
index 6811e3c9841e9..26e344758596f 100644
--- a/asv_bench/benchmarks/offset.py
+++ b/asv_bench/benchmarks/offset.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
import warnings
from datetime import datetime
diff --git a/ci/code_checks.sh b/ci/... | - [x] xref #25725 & #26196
Remove usage of ``-# -*- coding: utf-8 -*-`` pattern from code base.
| https://api.github.com/repos/pandas-dev/pandas/pulls/26197 | 2019-04-23T18:08:47Z | 2019-04-28T15:51:08Z | 2019-04-28T15:51:08Z | 2019-05-01T20:03:21Z |
CLN: remove python2 file encodings | diff --git a/pandas/tests/frame/test_asof.py b/pandas/tests/frame/test_asof.py
index 4ba3431d102df..4c21895f2d4ec 100644
--- a/pandas/tests/frame/test_asof.py
+++ b/pandas/tests/frame/test_asof.py
@@ -1,5 +1,3 @@
-# coding=utf-8
-
import numpy as np
import pytest
diff --git a/pandas/tests/series/indexing/test_alter... | - [x] xref #25725
Remove usage of ``# coding=utf-8`` pattern from code base. | https://api.github.com/repos/pandas-dev/pandas/pulls/26196 | 2019-04-23T17:39:25Z | 2019-04-24T12:23:57Z | 2019-04-24T12:23:57Z | 2019-05-05T06:59:22Z |
Revert "DOC: temporary remove pyarrow example of reading subset columns (#18661) | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 98cba6969587b..9ec39c0ff2b23 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -4704,7 +4704,8 @@ Read only certain columns of a parquet file.
result = pd.read_parquet('example_fp.parquet',
... | This reverts commit 695e89345a46c0cab06c479c83007f5adbb70ad5.
Closes https://github.com/pandas-dev/pandas/issues/18628 (reverts https://github.com/pandas-dev/pandas/pull/18661)
| https://api.github.com/repos/pandas-dev/pandas/pulls/26194 | 2019-04-23T11:18:30Z | 2019-04-23T12:16:28Z | 2019-04-23T12:16:27Z | 2019-04-23T12:16:32Z |
TST: Remove bare pytest.raises in some test files | diff --git a/pandas/tests/util/test_assert_produces_warning.py b/pandas/tests/util/test_assert_produces_warning.py
index e125f01a494e7..79b2a56537613 100644
--- a/pandas/tests/util/test_assert_produces_warning.py
+++ b/pandas/tests/util/test_assert_produces_warning.py
@@ -12,8 +12,9 @@ def f():
@pytest.mark.filterwa... | https://api.github.com/repos/pandas-dev/pandas/pulls/26193 | 2019-04-23T08:02:07Z | 2019-04-23T12:24:18Z | 2019-04-23T12:24:18Z | 2019-04-24T03:43:50Z | |
xref #26189, xfail scipy interpolate test for pchip with timedelta | diff --git a/pandas/tests/series/test_missing.py b/pandas/tests/series/test_missing.py
index 94b643900ee0f..0f0e1511b0c3f 100644
--- a/pandas/tests/series/test_missing.py
+++ b/pandas/tests/series/test_missing.py
@@ -1441,10 +1441,12 @@ def test_interpolate_timedelta_index(self, interp_methods_ind):
if method ... | xref #26189 | https://api.github.com/repos/pandas-dev/pandas/pulls/26190 | 2019-04-22T23:56:31Z | 2019-04-23T00:39:35Z | 2019-04-23T00:39:35Z | 2019-04-23T00:39:35Z |
Fixed code issue from compat with new numpydoc | diff --git a/environment.yml b/environment.yml
index 48b873d4c3a3d..cf17dc1281ec9 100644
--- a/environment.yml
+++ b/environment.yml
@@ -24,7 +24,7 @@ dependencies:
- pytest>=4.0.2
- pytest-mock
- sphinx
- - numpydoc
+ - numpydoc>=0.9.0
- pip
# optional
diff --git a/requirements-dev.txt b/requirement... | - [X] closes #26187
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26188 | 2019-04-22T22:36:45Z | 2019-04-23T12:10:36Z | 2019-04-23T12:10:36Z | 2020-01-16T00:34:11Z |
BUG: Plotting use FixedLocator | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index accfeee484430..383ec7cda82cd 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -371,7 +371,7 @@ Plotting
- Fixed bug where :class:`api.extensions.ExtensionArray` could not be used in matplotlib pl... | For string x values or multiindex, the axis locator is now set to a
FixedLocator for Line and Area plot. The ticklabel stay consistent
when scaling and zooming.
closes #7612
closes #15912
closes #22334
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whats... | https://api.github.com/repos/pandas-dev/pandas/pulls/26185 | 2019-04-22T17:46:51Z | 2019-04-30T12:59:54Z | 2019-04-30T12:59:53Z | 2019-05-01T14:00:04Z |
BUG: Preserve sparse dtype when reindexing | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index bf8c6acae0445..363b29da31e08 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -4502,7 +4502,7 @@ def reindex_axis(self, labels, axis=0, method=None, level=None, copy=True,
fill_value=fill_va... | - [ ] closes #26123.
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Hi, I've been taking a look at this but I need to verify some of the surrounding functionality so that I prevent introducing more breakages.
In this test, https://github.com... | https://api.github.com/repos/pandas-dev/pandas/pulls/26183 | 2019-04-22T12:31:10Z | 2019-06-08T20:26:54Z | null | 2019-06-08T20:26:54Z |
DOC: satisfy codechecks | diff --git a/doc/source/reference/groupby.rst b/doc/source/reference/groupby.rst
index d6124f0ddfdc4..5c8a563a47d00 100644
--- a/doc/source/reference/groupby.rst
+++ b/doc/source/reference/groupby.rst
@@ -58,8 +58,6 @@ Computations / Descriptive Stats
GroupBy.first
GroupBy.head
GroupBy.last
- GroupBy.idxm... | https://api.github.com/repos/pandas-dev/pandas/pulls/26180 | 2019-04-21T19:42:50Z | 2019-04-21T23:28:49Z | 2019-04-21T23:28:49Z | 2019-04-21T23:28:49Z | |
BUG: Resolving fallback from skipna flag in groupby().sum() | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 01784513704b4..e646bfceb998d 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -63,7 +63,7 @@ def _iterate_slices(self):
yield val, slicer(val)
def _cython_agg_general(self, how, alt=... | - [x] closes #20824
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Issue #20824 found that a fallback was occuring when df.Groupby().sum() was called with the skipna flag. This was occurring because the _cython_agg_general function was not accepting the argument, which h... | https://api.github.com/repos/pandas-dev/pandas/pulls/26179 | 2019-04-21T19:37:43Z | 2019-05-07T01:49:51Z | null | 2020-05-18T14:32:33Z |
CLN: remove __metaclass__ from code base | diff --git a/pandas/core/computation/engines.py b/pandas/core/computation/engines.py
index 85dfbc56d5187..0c2342082e9ef 100644
--- a/pandas/core/computation/engines.py
+++ b/pandas/core/computation/engines.py
@@ -35,12 +35,9 @@ def _check_ne_builtin_clash(expr):
.format(expr=expr, ... | - [x] xref #25725 & #26165
Removes uses of ``__metaclass__`` from the code base. After #26165 there was actually only one left.
| https://api.github.com/repos/pandas-dev/pandas/pulls/26178 | 2019-04-21T19:05:26Z | 2019-04-23T04:45:02Z | 2019-04-23T04:45:02Z | 2019-05-05T06:58:55Z |
CLN: Clean-up use of super() in instance methods. | diff --git a/asv_bench/benchmarks/io/stata.py b/asv_bench/benchmarks/io/stata.py
index b4d78c5d8f528..fff10cf10a4d3 100644
--- a/asv_bench/benchmarks/io/stata.py
+++ b/asv_bench/benchmarks/io/stata.py
@@ -38,7 +38,7 @@ def time_write_stata(self, convert_dates):
class StataMissing(Stata):
def setup(self, convert... | - [x] xref #25725
Simplifies the use of simple uses of ``super`` by converting to use python3 idioms. This is a quite big PR, but only deals with converting ``super(MyClass, self)`` to ``super()`` so it's very simple.
In addition to the uses of ``super`` dealt with in this PR, there are some more advanced uses of... | https://api.github.com/repos/pandas-dev/pandas/pulls/26177 | 2019-04-21T18:55:05Z | 2019-04-24T21:02:12Z | 2019-04-24T21:02:12Z | 2019-04-25T04:28:05Z |
BUG: fallback from issue 20824 no longer occurs due to skipna flag | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 01784513704b4..2787bacb8f418 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -63,7 +63,7 @@ def _iterate_slices(self):
yield val, slicer(val)
def _cython_agg_general(self, how, alt=... | - [ ] closes #20824
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Issue #20824 found that a fallback was occuring when df.Groupby().sum() was called with the skipna flag. This was occurring because the _cython_agg_general function was not acce... | https://api.github.com/repos/pandas-dev/pandas/pulls/26176 | 2019-04-21T18:41:25Z | 2019-04-21T18:53:51Z | null | 2019-04-21T19:19:48Z |
ENH: adding functionality to support 'skipdatarows' flag in read_csv to … | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 2a0bc0afc095c..1cdf2a50431a3 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -368,6 +368,8 @@ I/O
- Improved :meth:`pandas.read_stata` and :class:`pandas.io.stata.StataReader` to read incorrectly ... | - [x] closes #23067
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Adding feature for issue https://github.com/pandas-dev/pandas/issues/23067#issue-368463820. The newly added 'skipdatarows' flag allows the first n rows excluding comments to be... | https://api.github.com/repos/pandas-dev/pandas/pulls/26172 | 2019-04-21T08:05:35Z | 2019-04-21T18:29:56Z | null | 2023-05-11T01:18:53Z |
BUG: read_json converted date strings with Z to UTC | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 957b4f6284d74..e8a774579b8ae 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -290,6 +290,7 @@ Timezones
- Bug in :func:`Series.at` where setting :class:`Timestamp` with timezone raises ``TypeError... | - [x] closes #25546
- [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/26170 | 2019-04-21T05:23:24Z | 2019-05-07T04:19:24Z | 2019-05-07T04:19:24Z | 2019-05-07T15:19:45Z |
ENH: Functionality for read_csv to ignore comments when skipping rows… | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 2a0bc0afc095c..1cdf2a50431a3 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -368,6 +368,8 @@ I/O
- Improved :meth:`pandas.read_stata` and :class:`pandas.io.stata.StataReader` to read incorrectly ... | … and only skip data rows
- [ ] 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/26169 | 2019-04-21T04:34:37Z | 2019-04-21T05:09:53Z | null | 2019-04-21T05:10:08Z |
CLN: Unused imports in tslibs | diff --git a/pandas/_libs/tslibs/c_timestamp.pyx b/pandas/_libs/tslibs/c_timestamp.pyx
index 67d9092ceb0d5..30f3f1c24e607 100644
--- a/pandas/_libs/tslibs/c_timestamp.pyx
+++ b/pandas/_libs/tslibs/c_timestamp.pyx
@@ -23,8 +23,6 @@ cimport numpy as cnp
from numpy cimport int64_t, int8_t
cnp.import_array()
-from date... | Removed unused imports in tslibs found via PyCharm. | https://api.github.com/repos/pandas-dev/pandas/pulls/26168 | 2019-04-20T23:07:16Z | 2019-04-21T15:49:19Z | 2019-04-21T15:49:19Z | 2019-04-21T15:50:18Z |
BUG: DataFrame/Series constructor with tz aware data and datetime64[ns] dtype converts to naive | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 2a0bc0afc095c..b4a2b1ccb09d3 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -271,7 +271,7 @@ Datetimelike
- Bug in :func:`to_datetime` which would raise an (incorrect) ``ValueError`` when calle... | - [x] closes #25843
- [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/26167 | 2019-04-20T22:12:20Z | 2019-04-21T16:37:05Z | 2019-04-21T16:37:05Z | 2019-04-21T17:51:36Z |
CLN: remove abc.abstractproperty from code base | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index b99908fd902c8..301647bf29e35 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -600,14 +600,16 @@ def __new__(cls, path, engine=None, **kwargs):
curr_sheet = None
path = None
- @abc.abstractproperty
+ @propert... | - [x] xref #25725
- [x] xref #26165
While doing #26165 I discovered some uses of ``abc.abstractproperty`` in the codebase. This propery was deprecated in Python 3.3 and superseeded by using ``abc.abstractmethod`` and ``property`` together instead (see [python abc.abstractproperty docs](https://docs.python.org/3.7/... | https://api.github.com/repos/pandas-dev/pandas/pulls/26166 | 2019-04-20T21:15:28Z | 2019-04-21T15:54:27Z | 2019-04-21T15:54:27Z | 2019-04-21T16:31:32Z |
CLN: remove compat.add_metaclass | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 332b435d33403..5c256a53b5036 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -6,8 +6,6 @@
Key items to import for compatible code:
* lists: lrange(), lmap(), lzip()
-* add_metaclass(metaclass) - class decorator that r... | - [x] xref #25725
This removes the ``compat.add_metaclass`` function from the code base and replaces it with a metaclass parameter in class instation.
I don't understand why ``ExcelWriter`` needs to use a abc.ABCMeta metaclass, as the class is being used directly in the code base and I thought abstract classes c... | https://api.github.com/repos/pandas-dev/pandas/pulls/26165 | 2019-04-20T21:00:25Z | 2019-04-21T15:50:51Z | 2019-04-21T15:50:50Z | 2019-04-21T16:31:42Z |
CLN: remove util._doctools._WritableDoc | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 7b20c7e1b6336..5de265eb83561 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -7,10 +7,8 @@
from pandas._libs.interval import (
Interval, IntervalMixin, intervals_to_interval_bounds)
-from panda... | - [x] xref #25725
Removes the metaclass ``_WritableDoc`` from the code base. | https://api.github.com/repos/pandas-dev/pandas/pulls/26164 | 2019-04-20T17:56:51Z | 2019-04-20T18:44:50Z | 2019-04-20T18:44:50Z | 2019-04-20T18:45:52Z |
TST: add strict=False; xref #26069 | diff --git a/pandas/tests/series/test_analytics.py b/pandas/tests/series/test_analytics.py
index 325056b789162..4a7729dc15671 100644
--- a/pandas/tests/series/test_analytics.py
+++ b/pandas/tests/series/test_analytics.py
@@ -1404,7 +1404,7 @@ def test_value_counts_with_nan(self):
"dtype",
["int_", "ui... | xref #26069 | https://api.github.com/repos/pandas-dev/pandas/pulls/26163 | 2019-04-20T17:21:20Z | 2019-04-20T18:20:12Z | 2019-04-20T18:20:12Z | 2019-04-20T18:22:42Z |
BUG: groupby ffill adds labels as extra column (#21521) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index dacd433f112a5..338d5bcc4cb44 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -153,6 +153,37 @@ Providing any ``SparseSeries`` or ``SparseDataFrame`` to :func:`concat` will
cause a ``SparseSeries``... | - [x] closes #21521
- [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/26162 | 2019-04-20T17:10:04Z | 2019-05-15T01:41:43Z | 2019-05-15T01:41:43Z | 2019-05-15T19:02:34Z |
TST: parameterize indexes base test to introspect ufuncs fails on numpy_dev | diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py
index b694d2c2dc44c..660eb244b3cfc 100644
--- a/pandas/tests/indexes/common.py
+++ b/pandas/tests/indexes/common.py
@@ -9,9 +9,9 @@
import pandas as pd
from pandas import (
- CategoricalIndex, DatetimeIndex, Float64Index, Index, Int64In... | https://api.github.com/repos/pandas-dev/pandas/pulls/26161 | 2019-04-20T14:38:53Z | 2019-04-20T16:43:43Z | 2019-04-20T16:43:42Z | 2019-04-20T16:45:59Z | |
CLN: replace %s syntax with .format in pandas.core.indexes | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index ade8474b251d1..fa41c87da6c67 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -927,14 +927,15 @@ def __unicode__(self):
attrs = self._format_attrs()
space = self._format_space()
- prepr =... | 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/26159 | 2019-04-20T05:08:06Z | 2019-05-07T01:50:18Z | null | 2019-05-07T01:50:18Z |
GH26139, DOC: Explicit statement of default complevel for HDFStore | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 70fa8a48cafe4..85cc738667a34 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -422,7 +422,7 @@ class HDFStore(StringMixin):
It is similar to ``'a'``, but the file must already exist.
complevel : int, 0-9, default None
... | State what `None` complevel in `HDFStore` means explicitly.
- [x] closes #26139
| https://api.github.com/repos/pandas-dev/pandas/pulls/26158 | 2019-04-20T05:07:41Z | 2019-04-21T10:52:32Z | 2019-04-21T10:52:32Z | 2019-04-22T10:32:07Z |
BUG: Series.nlargest thinks True < False | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index accfeee484430..9afcf3ddcdbb1 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -402,6 +402,7 @@ Reshaping
- Bug in :func:`merge` where merging with equivalent Categorical dtypes was raising an error... | - use `1-arr` instead of `-arr` when sorting a boolean array casted to uint
- [x] closes #26154
- [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/26157 | 2019-04-20T04:10:14Z | 2019-04-23T12:12:28Z | 2019-04-23T12:12:28Z | 2019-04-23T12:12:32Z |
BUG: Raise KeyError when indexing a Series with MultiIndex | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index c25bc87a00d2e..e73c5c441608a 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -327,6 +327,7 @@ Indexing
^^^^^^^^
- Improved exception message when calling :meth:`DataFrame.iloc` with a list of n... | - [x] closes #14885
- [x] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26155 | 2019-04-20T01:20:03Z | 2019-04-26T01:12:43Z | 2019-04-26T01:12:43Z | 2019-04-26T08:30:02Z |
Removed NDFrameSplitter class | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index dcd854ada9d45..7b142eae9e272 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -884,33 +884,10 @@ def _chop(self, sdata, slice_obj):
return sdata._slice(slice_obj, axis=1) # .loc[:, slice_obj]
-class N... | More GroupBy cleanup post Panel removal
| https://api.github.com/repos/pandas-dev/pandas/pulls/26153 | 2019-04-19T17:19:29Z | 2019-04-19T19:48:59Z | 2019-04-19T19:48:59Z | 2019-04-19T20:33:27Z |
Fix Bug with NA value in Grouping for Groupby.nth | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index b2a379d9fe6f5..5d611069ebd0a 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -393,6 +393,7 @@ Groupby/Resample/Rolling
- Bug in :meth:`pandas.core.window.Rolling.count` and `pandas.core.window.Exp... | - [X] closes #26011
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Would ideally like to combine first, nth and last implementations. Consider this a precursor
| https://api.github.com/repos/pandas-dev/pandas/pulls/26152 | 2019-04-19T16:54:38Z | 2019-05-05T22:20:01Z | 2019-05-05T22:20:00Z | 2020-01-16T00:34:07Z |
Fix Type Annotation in pandas.core.accessor | diff --git a/mypy.ini b/mypy.ini
index 80c34260acdd1..9d7262213413e 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -11,15 +11,9 @@ ignore_errors=True
[mypy-pandas.compat.numpy.function]
ignore_errors=True
-[mypy-pandas.core.accessor]
-ignore_errors=True
-
[mypy-pandas.core.api]
ignore_errors=True
-[mypy-pandas.core.ap... | - [x] closes #26146
- [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26147 | 2019-04-19T07:59:17Z | 2019-04-21T16:04:47Z | 2019-04-21T16:04:47Z | 2019-04-21T16:56:39Z |
Add gitpython to requirements | diff --git a/requirements-dev.txt b/requirements-dev.txt
index 5600e43ea09c5..dd0a1d79ecbc8 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -16,6 +16,7 @@ pytest>=4.0.2
pytest-mock
sphinx
numpydoc
+gitpython
pip
beautifulsoup4>=4.2.1
blosc
| - [X] closes #26142
- [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/26143 | 2019-04-19T01:54:57Z | 2019-04-19T02:30:18Z | null | 2019-04-19T02:34:31Z |
Added example to docstring | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index eb5511c2f91cb..8707288c2c6c2 100755
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -73,6 +73,50 @@
By file-like object, we refer to objects with a ``read()`` method, such as
a file handler (e.g. via builtin ``open`` function) or ``Stri... | - [X] closes #22055
- [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/26141 | 2019-04-19T00:12:06Z | 2019-05-01T13:14:52Z | null | 2019-05-01T13:57:49Z |
BUG: update cython to fix segfault accessing __kwdefaults__ | diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml
index d0a48bd3f8b27..a1ebefddc2d30 100644
--- a/ci/deps/azure-35-compat.yaml
+++ b/ci/deps/azure-35-compat.yaml
@@ -18,7 +18,7 @@ dependencies:
- xlsxwriter=0.7.7
- xlwt=1.0.0
# universal
- - cython=0.28.2
+ - cython=0.29.7
- hypothe... | - [x] closes #26127
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This ups the cython minimum version to fix bugs as seen in #26127. I've added a test which goes through the members of `_libs` to check that they don't segfault when accessed. I... | https://api.github.com/repos/pandas-dev/pandas/pulls/26140 | 2019-04-18T23:19:39Z | 2019-05-03T05:22:18Z | null | 2019-05-03T05:22:19Z |
Cython Unicode Method Cleanups | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 1fd72cf763e6b..d80cc482be5b3 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -549,41 +549,6 @@ def astype_intsafe(ndarray[object] arr, new_dtype):
return result
-@cython.wraparound(False)
-@cython.boundscheck(False)
-def astype_unic... | Removal of some items that should no longer be required after Py2 drop | https://api.github.com/repos/pandas-dev/pandas/pulls/26138 | 2019-04-18T19:06:22Z | 2019-04-18T19:47:01Z | 2019-04-18T19:47:01Z | 2019-04-18T20:02:55Z |
Deprecate SparseDataFrame and SparseSeries | diff --git a/doc/source/user_guide/sparse.rst b/doc/source/user_guide/sparse.rst
index 20962749e2040..8fed29d7a6316 100644
--- a/doc/source/user_guide/sparse.rst
+++ b/doc/source/user_guide/sparse.rst
@@ -6,27 +6,27 @@
Sparse data structures
**********************
-We have implemented "sparse" versions of ``Series`... | Closes https://github.com/pandas-dev/pandas/issues/19239
This currently includes the changes from https://github.com/pandas-dev/pandas/pull/25682, which I think is mergeable.
I think this would be good to have for 0.25.0. I think it's close, but I may not have time to push this across the finish line. Anyone inte... | https://api.github.com/repos/pandas-dev/pandas/pulls/26137 | 2019-04-18T18:32:25Z | 2019-05-29T02:15:24Z | 2019-05-29T02:15:24Z | 2019-05-29T14:06:24Z |
ENH: allow saving wide dataframes to hdf with format table | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index da9264557931d..93d27a8bd4374 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -1759,6 +1759,7 @@ def infer(self, handler):
"""infer this column from the table: create and return a new object"""
table = handler.table
... | based on #11788
closes #6245
This PR allows to save wide dataframes to hdf. It will break forward compatibility, old versions of pandas will not be able to read hdfs from new versions.
The column is saved to a vlarray with object atomic. This is rather slow for very wide dfs but does not require any type checks.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/26135 | 2019-04-18T15:28:30Z | 2019-09-20T14:41:04Z | null | 2019-09-20T14:41:04Z |
BUG: errors and segfaults in groupby cython transforms (#16771) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 20d4f46348be6..353af98f5b64d 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -387,7 +387,8 @@ Groupby/Resample/Rolling
- Ensured that ordering of outputs in ``groupby`` aggregation functions is co... | - [x] closes #16771
- [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/26134 | 2019-04-18T13:02:18Z | 2019-04-20T16:45:02Z | 2019-04-20T16:45:02Z | 2019-04-20T16:45:06Z |
DOC: add deprecated to docstring of Series.data/itemsize/strides/flags/base | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 1d3eb880f32e3..0b3d8b601864d 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -703,6 +703,8 @@ def item(self):
def data(self):
"""
Return the data pointer of the underlying data.
+
+ .. deprecated:: 0.23.0
"... | xref https://github.com/pandas-dev/pandas/issues/20419#issuecomment-481773575 | https://api.github.com/repos/pandas-dev/pandas/pulls/26132 | 2019-04-18T08:28:09Z | 2019-04-18T15:31:40Z | 2019-04-18T15:31:40Z | 2019-04-18T15:31:45Z |
CLN: rename test method parameter name 'object' to 'self' | diff --git a/pandas/tests/arrays/categorical/test_warnings.py b/pandas/tests/arrays/categorical/test_warnings.py
index 23d00585f950e..4a37d5097648f 100644
--- a/pandas/tests/arrays/categorical/test_warnings.py
+++ b/pandas/tests/arrays/categorical/test_warnings.py
@@ -18,14 +18,14 @@ def test_tab_complete_warning(self,... | As part of #26128, I saw that in three test methods, their first parameter has been named ``object`` rather than ``self``. This rectifies that. | https://api.github.com/repos/pandas-dev/pandas/pulls/26129 | 2019-04-18T00:25:15Z | 2019-04-18T03:48:23Z | 2019-04-18T03:48:23Z | 2019-04-19T17:13:36Z |
CLN: remove unneeded inheritance from base object | diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py
index 74849d330f2bc..45ef47fde0a56 100644
--- a/asv_bench/benchmarks/algorithms.py
+++ b/asv_bench/benchmarks/algorithms.py
@@ -13,7 +13,7 @@
pass
-class Factorize(object):
+class Factorize:
params = [[True, False],... | - [x] xref #25725
Bit of a tedious whopper to review (sorry), but this PR removes all instances of inheriting from the base ``object`` from the code base, as dropping Python2 support means that this particular idiom is no longer needed.
Additionally, as part of the above, I've removed the check in code_checks.sh... | https://api.github.com/repos/pandas-dev/pandas/pulls/26128 | 2019-04-17T23:48:09Z | 2019-04-18T21:52:15Z | 2019-04-18T21:52:15Z | 2019-04-19T17:13:24Z |
DOC: bunch of docstring formatting fixes (sphinx warnings) | diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx
index 99f0d77e9bd34..a81941da4a05a 100644
--- a/pandas/_libs/tslibs/nattype.pyx
+++ b/pandas/_libs/tslibs/nattype.pyx
@@ -512,8 +512,8 @@ class NaTType(_NaT):
- 'raise' will raise an AmbiguousTimeError for an ambiguous time
... | WIP towards getting sphinx doc build warning free | https://api.github.com/repos/pandas-dev/pandas/pulls/26117 | 2019-04-17T08:03:47Z | 2019-04-17T12:45:50Z | 2019-04-17T12:45:50Z | 2019-04-17T12:51:00Z |
DOC: fixup code-block directives from GH26076 | diff --git a/doc/source/whatsnew/v0.10.0.rst b/doc/source/whatsnew/v0.10.0.rst
index 3671a5e24bdaa..9d497f2fc658d 100644
--- a/doc/source/whatsnew/v0.10.0.rst
+++ b/doc/source/whatsnew/v0.10.0.rst
@@ -430,7 +430,7 @@ Updated PyTables Support
- added mixed-dtype support!
- .. ipython:: python
+ .. code-block:: ... | Forgot to change some ipython directives to code-block directives in #26076 (should have checked the travis doc build log there ..) | https://api.github.com/repos/pandas-dev/pandas/pulls/26116 | 2019-04-17T07:25:55Z | 2019-04-17T08:06:44Z | 2019-04-17T08:06:44Z | 2019-04-17T08:06:48Z |
Updated PeriodIndex docstrings #10094 | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 70312f2e61445..b0b87d98ce518 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -439,19 +439,16 @@ def asfreq(self, freq=None, how='E'):
--------
>>> pidx = pd.period_range('2010-01-01', '2015-0... | - [x] closes #10094
- [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/26115 | 2019-04-17T00:31:11Z | 2019-04-17T20:43:59Z | 2019-04-17T20:43:59Z | 2019-04-18T23:17:23Z |
CLN: replace usage internally of .iteritems with .items | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index 5008b77d9fb28..e2f6764c76eef 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -115,15 +115,15 @@ def setup(self):
)
self.df4 = DataFrame(np.random.randn(N *... | - [x] xref #25725
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Now that Python2 is being removed, ``.iteritems`` should be deprecated, and ``.items`` should be used instead.
EDIT: This PR ended up not deprecating .iteritems, but only chang... | https://api.github.com/repos/pandas-dev/pandas/pulls/26114 | 2019-04-16T23:09:29Z | 2019-07-10T19:16:55Z | 2019-07-10T19:16:55Z | 2019-07-10T23:01:51Z |
BUG: Preserve index order when constructing DataFrame from dict | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index da712f84eb1b5..19c24c9f9bbfb 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -305,7 +305,7 @@ Conversion
^^^^^^^^^^
- Bug in :func:`DataFrame.astype()` when passing a dict of columns and types ... | - [x] closes #24859
- [x] tests added / passed
(no new tests added)
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This resolves the issue of `pd.DataFrame(dict)` or `pd.DataFrame.from_dict(dict)` not preserving the order of the index specified in `dict`.
This re... | https://api.github.com/repos/pandas-dev/pandas/pulls/26113 | 2019-04-16T23:05:15Z | 2019-05-03T05:26:38Z | null | 2019-05-03T05:26:38Z |
BUG: GroupBy.size with all-null data raises ValueError | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index da712f84eb1b5..5f6483ede5544 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -381,6 +381,7 @@ Groupby/Resample/Rolling
- Bug in :meth:`pandas.core.groupby.DataFrameGroupBy.nunique` in which the na... | - [x] closes #23050
- [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/26112 | 2019-04-16T21:53:06Z | 2019-04-17T12:51:13Z | 2019-04-17T12:51:12Z | 2019-04-17T12:51:16Z |
CLN: remove compat.lfilter | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 7e201920f4331..332b435d33403 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -5,7 +5,7 @@
Cross-compatible functions for different versions of Python.
Key items to import for compatible code:
-* lists: lrange(), lmap(... | - [x] xref #25725
Removes ``compat.lfilter``. | https://api.github.com/repos/pandas-dev/pandas/pulls/26110 | 2019-04-16T15:27:46Z | 2019-04-16T17:17:17Z | 2019-04-16T17:17:16Z | 2019-05-05T06:59:30Z |
Improve documentation for assert_frame|series_equal #26101 | diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index 9659cb33686d0..0278432117631 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -990,6 +990,12 @@ def assert_series_equal(left, right, check_dtype=True,
Specify comparison precision. Only used when check_exact is False.
... | - [x] closes #26101
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26106 | 2019-04-16T10:58:30Z | 2019-04-22T15:31:40Z | 2019-04-22T15:31:40Z | 2019-04-22T15:31:48Z |
ENH: Add parameter to download BigQuery results with the BigQuery Storage API | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1953132c826ba..f2393161e7eac 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -364,6 +364,7 @@ I/O
- Improved the explanation for the failure when value labels are repeated in Stata dta files and s... | pandas-gbq 0.10.0 adds a new `use_bqstorage_api` parameter to speed up downloads of large dataframes.
- [ ] ~closes #xxxx~
- [x] tests added / passed
```
$ pytest pandas/tests/io/test_gbq.py
=============================== test session starts ================================
platform darwin -- Python 3.6.4, p... | https://api.github.com/repos/pandas-dev/pandas/pulls/26104 | 2019-04-15T21:20:55Z | 2019-04-20T18:33:34Z | 2019-04-20T18:33:34Z | 2019-04-22T15:54:34Z |
CI/DOC: fix clipboard on travis | diff --git a/.travis.yml b/.travis.yml
index 022e11b7db950..ce8817133a477 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -86,6 +86,14 @@ install:
- ci/submit_cython_cache.sh
- echo "install done"
+before_script:
+ # display server (for clipboard functionality) needs to be started here,
+ # does not work if don... | - [ ] closes #26075
| https://api.github.com/repos/pandas-dev/pandas/pulls/26103 | 2019-04-15T18:20:37Z | 2019-05-16T13:11:18Z | 2019-05-16T13:11:17Z | 2019-05-17T06:32:24Z |
Include missing data count in pd.DataFrame.describe() | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 485a0a06fc247..d2274c3571e34 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -420,7 +420,7 @@ Other
^^^^^
- Removed unused C functions from vendored UltraJSON implementation (:issue:`26198`)
-
... | - [x] closes #21689
- [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/26102 | 2019-04-15T16:31:16Z | 2019-06-27T03:35:13Z | null | 2022-10-29T17:55:57Z |
CLN: remove compat.itervalues | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index e92c053a282bc..7e201920f4331 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -6,8 +6,6 @@
Key items to import for compatible code:
* lists: lrange(), lmap(), lzip(), lfilter()
-* iterable method compatibility: iterval... | - [x] xref #25725
Removes ``compat.itervalues``. | https://api.github.com/repos/pandas-dev/pandas/pulls/26099 | 2019-04-15T12:47:06Z | 2019-04-15T17:09:20Z | 2019-04-15T17:09:20Z | 2019-04-15T22:22:29Z |
BLD: add __pycache__ to .gitignore | diff --git a/.gitignore b/.gitignore
index f4f64aac23905..56828fa1d9331 100644
--- a/.gitignore
+++ b/.gitignore
@@ -65,6 +65,7 @@ coverage_html_report
*.pytest_cache
# hypothesis test database
.hypothesis/
+__pycache__
# OS generated files #
######################
| https://api.github.com/repos/pandas-dev/pandas/pulls/26098 | 2019-04-15T12:28:31Z | 2019-04-15T13:35:36Z | 2019-04-15T13:35:35Z | 2019-04-15T13:35:36Z | |
BUG: _convert_and_box_cache raise ValueError: Tz-aware datetime.datetime cannot be converted to datetime64 unless utc=True | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 2030bb4d974c3..02210ed4897f5 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -705,6 +705,8 @@ Datetimelike
- Bug in :func:`date_range` with unnecessary ``OverflowError`` being raised for very larg... | - [x] closes #N/A
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Bug was found there: https://github.com/pandas-dev/pandas/pull/26043#issuecomment-483214458
Reproduction:
```python
import pandas as pd
N = 10
half = int(N / 2)
ts_string_1 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/26097 | 2019-04-15T12:22:57Z | 2019-07-03T13:17:59Z | 2019-07-03T13:17:59Z | 2019-07-03T13:18:04Z |
CLN: Remove accidentally added pycache | diff --git a/pandas/tests/io/json/__pycache__/tmp2c7r4efu b/pandas/tests/io/json/__pycache__/tmp2c7r4efu
deleted file mode 100644
index d1258abbcdf40..0000000000000
Binary files a/pandas/tests/io/json/__pycache__/tmp2c7r4efu and /dev/null differ
| Removes this accidentally committed file https://github.com/pandas-dev/pandas/pull/26079/files#diff-0e2f9eb4477870d5461d93c7d8add1ec
| https://api.github.com/repos/pandas-dev/pandas/pulls/26095 | 2019-04-15T05:40:43Z | 2019-04-15T12:25:29Z | 2019-04-15T12:25:29Z | 2019-04-15T17:04:05Z |
day_of_week | diff --git a/asv_bench/benchmarks/period.py b/asv_bench/benchmarks/period.py
index 6d2c7156a0a3d..b3ae36dc97332 100644
--- a/asv_bench/benchmarks/period.py
+++ b/asv_bench/benchmarks/period.py
@@ -8,7 +8,7 @@ class PeriodProperties(object):
params = (['M', 'min'],
['year', 'month', 'day', 'hour', 'm... | - [ ] closes #9606
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26094 | 2019-04-15T03:17:44Z | 2019-06-08T20:38:18Z | null | 2019-06-08T20:38:18Z |
STY: Turn on flake8 for pandas/compat/__init__.py | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 54a7afd90a09a..e7ca0d4c846c0 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -14,14 +14,11 @@
Other items:
* platform checker
"""
-# pylint disable=W0611
-# flake8: noqa
-import re
-from distutils.version import Loos... | With all of the great cleanup in this file, let's ensure that it remains nice and tidy. | https://api.github.com/repos/pandas-dev/pandas/pulls/26093 | 2019-04-15T01:21:58Z | 2019-04-15T02:50:04Z | 2019-04-15T02:50:04Z | 2019-04-15T02:50:19Z |
CLN: pylint references | diff --git a/pandas/__init__.py b/pandas/__init__.py
index d3e6d97960fb3..bd367bbe27d5e 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -1,5 +1,3 @@
-# pylint: disable-msg=W0614,W0401,W0611,W0622
-
# flake8: noqa
__docformat__ = 'restructuredtext'
diff --git a/pandas/compat/__init__.py b/pandas/compat/_... | Removing leftover `pylint` references since we exclusively use `flake8` for style checking. | https://api.github.com/repos/pandas-dev/pandas/pulls/26091 | 2019-04-15T00:31:30Z | 2019-04-15T04:07:48Z | 2019-04-15T04:07:48Z | 2019-04-15T05:19:58Z |
Cleanup of GroupBy Code | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index b6fc31bb6f015..1c5a69e164c86 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -69,27 +69,6 @@ def _cython_agg_general(self, how, alt=None, numeric_only=True,
how, alt=alt, numeric_only=nume... | Removing some dead code I came across on review of the module which appears in NDFrameGroupBy but is overridden by its only public child class DataFrameGroupBy
FWIW with the removal of PanelGroupBy the NDFrameGroupBy is an unnecessary layer of inheritance and could probably be merged in with DataFrameGroupBy, though... | https://api.github.com/repos/pandas-dev/pandas/pulls/26090 | 2019-04-14T23:54:15Z | 2019-04-16T11:56:03Z | 2019-04-16T11:56:03Z | 2020-01-16T00:34:12Z |
Fix Up Typing in GroupBy | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1953132c826ba..20d4f46348be6 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -218,6 +218,7 @@ Other API Changes
- :meth:`Timestamp.strptime` will now rise a ``NotImplementedError`` (:issue:`25016`... | More typing cleanups
Original failures:
```sh
pandas/core/groupby/ops.py:13: error: Module 'pandas._libs' has no attribute 'groupby'
pandas/core/groupby/ops.py:13: error: Module 'pandas._libs' has no attribute 'reduction'
pandas/core/groupby/groupby.py:22: error: Module 'pandas._libs' has no attribute 'groupby... | https://api.github.com/repos/pandas-dev/pandas/pulls/26089 | 2019-04-14T23:49:31Z | 2019-04-17T22:00:11Z | 2019-04-17T22:00:11Z | 2020-01-16T00:34:12Z |
CLN: Misc Python 2 references | diff --git a/LICENSES/SIX b/LICENSES/SIX
deleted file mode 100644
index 6fd669af222d3..0000000000000
--- a/LICENSES/SIX
+++ /dev/null
@@ -1,21 +0,0 @@
-six license (substantial portions used in the python 3 compatibility module)
-===========================================================================
-Copyright (c)... | - [x] xref https://github.com/pandas-dev/pandas/issues/25725#issuecomment-482460520
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
The notable change here is removing the SIX license since I think we've removed any borrowed compatibility code. | https://api.github.com/repos/pandas-dev/pandas/pulls/26085 | 2019-04-14T18:42:26Z | 2019-04-15T12:12:58Z | 2019-04-15T12:12:58Z | 2019-04-15T17:03:33Z |
DOC: Add test for encoding of docstring validation for Windows | diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py
index 120f8d79819ff..9f304a3f194ba 100644
--- a/scripts/tests/test_validate_docstrings.py
+++ b/scripts/tests/test_validate_docstrings.py
@@ -6,7 +6,7 @@
import numpy as np
import pandas as pd
-import validate_docstri... | Add a test for PR #25466 | https://api.github.com/repos/pandas-dev/pandas/pulls/26084 | 2019-04-14T16:57:26Z | 2019-04-14T16:59:26Z | null | 2019-04-14T16:59:26Z |
BUG: positional getitem indexing with list on Series with duplicate integer index fails | diff --git a/pandas/tests/indexing/test_indexing.py b/pandas/tests/indexing/test_indexing.py
index 3cdae198cad31..03916ead17dc3 100644
--- a/pandas/tests/indexing/test_indexing.py
+++ b/pandas/tests/indexing/test_indexing.py
@@ -243,6 +243,14 @@ def test_dups_fancy_indexing2(self):
result = df.loc[[1, 2], ['a'... | Create test case for issue GH17347
- [x] closes #17347
- [x] tests added / passed | https://api.github.com/repos/pandas-dev/pandas/pulls/26083 | 2019-04-14T10:46:53Z | 2019-04-16T11:59:05Z | 2019-04-16T11:59:04Z | 2019-12-06T15:06:35Z |
CLN: collect ordered fixtures in pandas.conftest | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 462ee10f11975..4088697fa6f5f 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -126,6 +126,12 @@ def observed(request):
return request.param
+@pytest.fixture(params=[True, False, None])
+def ordered_fixture(request):
+ """Boolean 'ordered'... | Currently, ``Categorical .ordered``, ``CategoricaDtype.ordered`` and similar is tested using different fixtures + parametrization in some places. This PR collects the ordered fixtures/parametrizations and places a common ``ordered`` fixture in pandas.conftest. | https://api.github.com/repos/pandas-dev/pandas/pulls/26082 | 2019-04-14T09:49:58Z | 2019-04-16T11:47:54Z | 2019-04-16T11:47:54Z | 2019-05-08T04:47:02Z |
CLN: remove compat.iterkeys | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 815f39ef6ebe6..e92c053a282bc 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -6,7 +6,7 @@
Key items to import for compatible code:
* lists: lrange(), lmap(), lzip(), lfilter()
-* iterable method compatibility: iterkey... | - [x] xref #25725
Removes ``compat.iterkeys``. | https://api.github.com/repos/pandas-dev/pandas/pulls/26081 | 2019-04-14T09:33:37Z | 2019-04-15T12:13:34Z | 2019-04-15T12:13:34Z | 2019-04-15T22:22:41Z |
ERR: better error message on too large excel sheet | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 276812a564e03..1a0df4789f4c7 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -466,6 +466,7 @@ I/O
- Fixed memory leak in :meth:`DataFrame.to_json` when dealing with numeric data (:issue:`24889`)
... | - [ ] closes #26051
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26080 | 2019-04-14T04:21:39Z | 2019-06-01T14:04:15Z | 2019-06-01T14:04:15Z | 2019-06-01T14:04:21Z |
CLN: remove compat.iteritems | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 54a7afd90a09a..549359259bbd4 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -6,7 +6,7 @@
Key items to import for compatible code:
* lists: lrange(), lmap(), lzip(), lfilter()
-* iterable method compatibility: iterite... | - [x] xref #25725
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Removes ``compat.iteritems``. | https://api.github.com/repos/pandas-dev/pandas/pulls/26079 | 2019-04-13T21:07:10Z | 2019-04-15T04:05:36Z | 2019-04-15T04:05:36Z | 2019-04-15T22:22:53Z |
BUG: pd.to_datetime() throws if caching is on with Null-like arguments | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index c441244b4415d..856fbd1237a03 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -266,7 +266,7 @@ Datetimelike
^^^^^^^^^^^^
- Bug in :func:`to_datetime` which would raise an (incorrect) ``ValueErro... | - [x] closes #22305
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
The problem was in contradictory behavior between `pd.Index([pd.NaT, None]).is_unique` that returns `False` and `algorithms.unique([pd.NaT, None])` that returns `array([NaT, Non... | https://api.github.com/repos/pandas-dev/pandas/pulls/26078 | 2019-04-13T18:18:49Z | 2019-04-17T12:48:32Z | 2019-04-17T12:48:31Z | 2022-02-23T14:11:33Z |
DOC: fix errors/warnings in running code blocks | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 1b05c53df4516..98cba6969587b 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -3565,13 +3565,6 @@ HDFStore will by default not drop rows that are all missing. This behavior can b
os.remove('file.h5')
-.... | Cleaning up errors / warnings in the doc build, related to the ipython code blocks:
- put a section about hdf5 and Panel in verbatim code blocks + added some `:okwarning:` for Panel (will need to be properly cleaned up when Panel is removed)
- fixed cases that raised deprecation warning for `TimedeltaIndex.fillna()... | https://api.github.com/repos/pandas-dev/pandas/pulls/26076 | 2019-04-13T13:33:53Z | 2019-04-16T07:26:01Z | 2019-04-16T07:26:01Z | 2019-04-16T07:26:05Z |
#26065 Fix Type Annotations in pandas.core.arrays | diff --git a/mypy.ini b/mypy.ini
index 2069c736a2eb4..596d71c77317e 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -11,24 +11,6 @@ ignore_errors=True
[mypy-pandas.core.api]
ignore_errors=True
-[mypy-pandas.core.arrays.array_]
-ignore_errors=True
-
-[mypy-pandas.core.arrays.datetimelike]
-ignore_errors=True
-
-[mypy-pandas... | - [X] closes #26065
- [X] tests passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26071 | 2019-04-12T22:53:35Z | 2019-04-30T13:05:48Z | 2019-04-30T13:05:48Z | 2019-04-30T19:32:00Z |
DOC: better document Dtypes docstrings + avoid sphinx warnings | diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst
index 4cf8db895f0ac..fb9a95b6736d5 100644
--- a/doc/source/reference/arrays.rst
+++ b/doc/source/reference/arrays.rst
@@ -146,6 +146,11 @@ If the data are tz-aware, then every value in the array must have the same timez
:toctree: api/
... | - Use ``class_without_autosummary`` template for the dtypes (similar to what `CategoricalDtype` already did) to avoid a bunch of sphinx warnings
- Therefore, explicitly list some attributes in the docstrings (for now, I went with only documenting the dtype-specific "metadata")
- And while at it, I also gave the docst... | https://api.github.com/repos/pandas-dev/pandas/pulls/26067 | 2019-04-12T18:44:44Z | 2019-04-20T16:50:39Z | 2019-04-20T16:50:39Z | 2019-04-22T07:41:41Z |
Add project_urls to setup | diff --git a/setup.py b/setup.py
index 7f7e58088d2ee..d121a54ded2a1 100755
--- a/setup.py
+++ b/setup.py
@@ -203,6 +203,11 @@ def build_extensions(self):
EMAIL = "pydata@googlegroups.com"
URL = "http://pandas.pydata.org"
DOWNLOAD_URL = ''
+PROJECT_URLS = {
+ 'Bug Tracker': 'https://github.com/pandas-dev/pandas/is... | These are used by PyPI and other services.
- [ ] 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/26066 | 2019-04-12T18:33:16Z | 2019-04-12T21:58:10Z | 2019-04-12T21:58:10Z | 2019-04-12T21:58:15Z |
BUG: prevent overflowing diffs raising error in cut (#26045) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1953132c826ba..68cfaf539c3f1 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -399,6 +399,7 @@ Reshaping
- Bug in :func:`concat` where the resulting ``freq`` of two :class:`DatetimeIndex` with the ... | - [X] closes #26045
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I added a relevant test with the example reported in the issue in `\tests\reshape\test_cut.py`.
I also tested with `grep -rn pandas -e 'np.diff(bins'` if we could have a simil... | https://api.github.com/repos/pandas-dev/pandas/pulls/26063 | 2019-04-12T13:30:10Z | 2019-04-19T01:03:55Z | 2019-04-19T01:03:54Z | 2019-04-19T01:04:06Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.