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: Add `Series` type to `to_sql` docstring | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index 437e279e90979..a582d32741ae9 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -404,7 +404,7 @@ def to_sql(frame, name, con, schema=None, if_exists='fail', index=True,
Parameters
----------
- frame : DataFrame
+ frame : DataFrame, Series
... | https://api.github.com/repos/pandas-dev/pandas/pulls/20004 | 2018-03-05T21:57:28Z | 2018-03-07T14:33:10Z | 2018-03-07T14:33:10Z | 2018-03-11T16:03:23Z | |
API & BUG: allow list-like y argument to df.plot & fix integer arg to x,y | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index acbfa2eb3ccac..3cef716069ba2 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -986,6 +986,7 @@ Plotting
^^^^^^^^
- :func:`DataFrame.plot` now raises a ``ValueError`` when the ``x`` or ``y`` argu... | - [x] closes #19699
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
@TomAugspurger
I added support for the user to pass a list-like to y, as discussed in #19699. The API to `df.plot` is relatively complex with lots of args, so lmk with quest... | https://api.github.com/repos/pandas-dev/pandas/pulls/20000 | 2018-03-05T20:01:24Z | 2018-03-22T14:31:51Z | 2018-03-22T14:31:50Z | 2018-03-22T14:31:51Z |
DOC: Updated kurt docstring (for pandas sprint) | diff --git a/pandas/core/window.py b/pandas/core/window.py
index 417888ce80b46..cef012bb33e9f 100644
--- a/pandas/core/window.py
+++ b/pandas/core/window.py
@@ -899,7 +899,53 @@ def skew(self, **kwargs):
return self._apply('roll_skew', 'skew',
check_minp=_require_min_periods(3), **k... | Assigned docstring for pandas documentation sprint
Please note that I also removed **kwargs from the call signature here as they were not being used, so I thought it would be strange to document. For what it's worth I started a discussion on the G[oogle groups list ](https://groups.google.com/forum/#!topic/pandas-do... | https://api.github.com/repos/pandas-dev/pandas/pulls/19999 | 2018-03-05T19:50:58Z | 2018-03-07T13:56:16Z | 2018-03-07T13:56:16Z | 2018-03-07T22:20:48Z |
DOC: updating docstring of Index.shift | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 0813c12d573d5..44a63029df0fc 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2211,13 +2211,55 @@ def sortlevel(self, level=None, ascending=True, sort_remaining=None):
return self.sort_values(return_index... | Docstring assigned to PyData Budapest chapter of the Worldwide Documentation Sprint.
As Index.shift is an abstract method, this is more of a docstring for developers implementing a subclass than for end users. | https://api.github.com/repos/pandas-dev/pandas/pulls/19996 | 2018-03-05T16:35:48Z | 2018-03-07T13:56:49Z | 2018-03-07T13:56:49Z | 2018-03-07T14:09:43Z |
DOC: require returns section in validation script | diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py
index ce3814a1314c1..8425882f07be1 100755
--- a/scripts/validate_docstrings.py
+++ b/scripts/validate_docstrings.py
@@ -235,6 +235,10 @@ def see_also(self):
def examples(self):
return self.doc['Examples']
+ @property
+ de... | Are there cases where do not want a "Returns" section?
cc @datapythonista
| https://api.github.com/repos/pandas-dev/pandas/pulls/19994 | 2018-03-05T14:48:57Z | 2018-03-08T13:09:13Z | 2018-03-08T13:09:13Z | 2018-03-08T13:09:16Z |
CLN/DOC: cache_readonly: remove allow_setting + preserve docstring | diff --git a/pandas/_libs/properties.pyx b/pandas/_libs/properties.pyx
index 4beb24f07c21c..67f58851a9a70 100644
--- a/pandas/_libs/properties.pyx
+++ b/pandas/_libs/properties.pyx
@@ -6,31 +6,28 @@ from cpython cimport (
PyDict_Contains, PyDict_GetItem, PyDict_SetItem)
-cdef class cache_readonly(object):
+cde... | Closes https://github.com/pandas-dev/pandas/issues/18197
This kind of 'works' in that `?` or `__doc__` now give the correct docstring, but it's not yet fully ideal as it is now seen as a class (which will probably mess up sphinx' autodoc/autosummary, which I didn't check yet) | https://api.github.com/repos/pandas-dev/pandas/pulls/19991 | 2018-03-05T10:58:42Z | 2018-03-06T21:42:42Z | 2018-03-06T21:42:41Z | 2018-03-06T21:42:45Z |
DOC: update contributing guide regarding updating a pull request (merge master) | diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst
index 9a5e184884e76..f7fc9575566b7 100644
--- a/doc/source/contributing.rst
+++ b/doc/source/contributing.rst
@@ -246,16 +246,16 @@ changes in this branch specific to one bug or feature so it is clear
what the branch brings to *pandas*. You can hav... | Closes https://github.com/pandas-dev/pandas/issues/19412
Reference discussion: https://mail.python.org/pipermail/pandas-dev/2017-November/000632.html
cc @datapythonista | https://api.github.com/repos/pandas-dev/pandas/pulls/19990 | 2018-03-05T10:26:36Z | 2018-03-16T12:55:18Z | 2018-03-16T12:55:17Z | 2018-03-16T12:55:21Z |
CLN: Python comprehensions and generators cleanup followup | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 89d2de6de213a..52ca3d1226f79 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -1045,7 +1045,7 @@ cdef class TextReader:
usecols = set()
if callable(self.usecols):
if self.... | xref #18276, #18383
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Some multiline comprehensions and cleanups I missed in the two passes xref'd above.
| https://api.github.com/repos/pandas-dev/pandas/pulls/19989 | 2018-03-05T06:18:05Z | 2018-03-05T11:23:49Z | 2018-03-05T11:23:49Z | 2018-03-05T17:32:18Z |
fixed pytest deprecation warning | diff --git a/pandas/tests/test_base.py b/pandas/tests/test_base.py
index 6247079e4ac3a..b455073665442 100644
--- a/pandas/tests/test_base.py
+++ b/pandas/tests/test_base.py
@@ -1224,10 +1224,11 @@ def test_values_consistent(array, expected_type, dtype):
(pd.DatetimeIndex(['2017-01-01T00:00:00'], tz="US/Eastern"),
... | - closes #19703
fixed pytest deprecation warning | https://api.github.com/repos/pandas-dev/pandas/pulls/19987 | 2018-03-04T23:52:12Z | 2018-03-05T11:35:00Z | 2018-03-05T11:35:00Z | 2018-03-05T11:35:04Z |
DOC: is confusing for ddof parameter of sem, var and std functions | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index c411e29b5cc02..3f0cb8a5bfcca 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7767,7 +7767,8 @@ def _doc_parms(cls):
If the axis is a MultiIndex (hierarchical), count along a
particular level, collapsing into a %(name1)s
d... | Closes #18903 | https://api.github.com/repos/pandas-dev/pandas/pulls/19986 | 2018-03-04T22:03:37Z | 2018-03-06T21:47:46Z | 2018-03-06T21:47:46Z | 2018-03-07T19:54:00Z |
DOC: Improve docstring for pandas.Index.repeat | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 0813c12d573d5..880e283af9186 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -696,12 +696,38 @@ def memory_usage(self, deep=False):
@deprecate_kwarg(old_arg_name='n', new_arg_name='repeats')
def repeat(s... | String assigned to ChiPy (Chicago Python Users Group) chapter of the Worldwide Documentation Sprint
While `Index.repeat` does accept `args` and `kwargs`, it does not pass them through to the underlying `numpy` function.
The only additional parameter the numpy function takes is `axis` ([numpy docs](https://docs.sc... | https://api.github.com/repos/pandas-dev/pandas/pulls/19985 | 2018-03-04T21:04:26Z | 2018-03-09T08:20:00Z | 2018-03-09T08:20:00Z | 2018-03-09T09:36:58Z |
DOC: Update is_sparse docstring | diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index 94e9b72b001b1..a01266870b8fc 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -150,32 +150,59 @@ def is_object_dtype(arr_or_dtype):
def is_sparse(arr):
"""
- Check whether an array-like is a pandas s... | `is_sparse(pd.SparseDataFrame([1,2,3]))` returns `False`.
The is_sparse function checks to see if
an array-like is spare by checking to see
if it is an instance of ABCSparseArray or
ABCSparseSeries. This commit adds
ABCSparseDataFrame to that list -- so it
can detect that a DataFrame (which is an
array-like ob... | https://api.github.com/repos/pandas-dev/pandas/pulls/19983 | 2018-03-04T14:57:49Z | 2018-11-13T17:52:42Z | 2018-11-13T17:52:42Z | 2018-11-13T17:52:59Z |
DOC: Improved the docstring of Series.str.findall | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 6b427ed1da834..fac607f4621a8 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -898,23 +898,94 @@ def str_join(arr, sep):
def str_findall(arr, pat, flags=0):
"""
- Find all occurrences of pattern or regular expression in the... | Docstring assigned to PyData Mallorca in Pandas Documentation Sprint (https://python-sprints.github.io/pandas/).
Please, any indication to improve our PR will be appreciated!
Happy to contribute :-) | https://api.github.com/repos/pandas-dev/pandas/pulls/19982 | 2018-03-04T14:52:40Z | 2018-03-10T12:24:36Z | 2018-03-10T12:24:36Z | 2018-03-10T12:24:41Z |
CLN: deprecate the pandas.tseries.plotting.tsplot function (GH18627) | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index a976fca66a57a..79d85513efa26 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -731,6 +731,8 @@ Deprecations
- The ``order`` parameter of :func:`factorize` is deprecated and will be removed in a fut... | - [X] closes #18627
- [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/19980 | 2018-03-04T02:35:22Z | 2018-03-06T08:29:27Z | 2018-03-06T08:29:27Z | 2018-03-06T08:29:30Z |
ENH: Parse %z and %Z directive in format for to_datetime | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 43e513c9d03f5..079766f0bc635 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -12,7 +12,7 @@ New features
Other Enhancements
^^^^^^^^^^^^^^^^^^
--
+- :func:`to_datetime` now supports the ``%Z`` ... | - [x] closes #13486
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
The implimentiontion is near identical to https://github.com/python/cpython/blob/master/Lib/_strptime.py an currently works as `datetime.strptime` would:
```
In [3]: f = '%Y... | https://api.github.com/repos/pandas-dev/pandas/pulls/19979 | 2018-03-03T04:49:33Z | 2018-05-29T00:28:41Z | 2018-05-29T00:28:41Z | 2018-05-29T05:00:19Z |
BUG: Fixes to msgpack support. | diff --git a/pandas/io/packers.py b/pandas/io/packers.py
index d3e6f0cf4a1bc..f9b1d1574d45c 100644
--- a/pandas/io/packers.py
+++ b/pandas/io/packers.py
@@ -55,7 +55,8 @@
from pandas import (Timestamp, Period, Series, DataFrame, # noqa
Index, MultiIndex, Float64Index, Int64Index,
... | Adds support for IntervalIndex and Interval; fixes Period and
TimedeltaIndex. Closes #19967 and #13463.
- [ ] closes #19967
- [ ] closes #13463
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/19975 | 2018-03-02T21:27:20Z | 2018-03-07T18:04:24Z | 2018-03-07T18:04:23Z | 2018-03-07T18:04:25Z |
fix: scalar timestamp assignment (#19843) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 3cff1522274ef..9fc087dce752f 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -559,6 +559,7 @@ Timezones
- Bug in :class:`DatetimeIndex` where constructing with an integer and tz would not localize... | - [x] closes #19843
- [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/19973 | 2018-03-02T20:36:25Z | 2018-08-02T17:27:23Z | 2018-08-02T17:27:23Z | 2018-08-02T17:27:23Z |
Small ops cleanups | diff --git a/pandas/core/ops.py b/pandas/core/ops.py
index 931e91b941a7e..83879cdaaa63c 100644
--- a/pandas/core/ops.py
+++ b/pandas/core/ops.py
@@ -971,9 +971,9 @@ def _arith_method_SERIES(cls, op, special):
code duplication.
"""
str_rep = _get_opstr(op, cls)
- name = _get_op_name(op, special)
- e... | Consistently use `op_name` and `res_name` and avoid `name`
Use find_common_type instead of np.find_common_type, moving towards de-duping Series/Frame code. | https://api.github.com/repos/pandas-dev/pandas/pulls/19972 | 2018-03-02T19:45:30Z | 2018-03-07T14:19:22Z | 2018-03-07T14:19:22Z | 2018-06-22T03:32:10Z |
DOC: clarify version of ActivePython that includes pandas | diff --git a/doc/source/install.rst b/doc/source/install.rst
index e3667221e5166..07f57dbd65709 100644
--- a/doc/source/install.rst
+++ b/doc/source/install.rst
@@ -137,7 +137,10 @@ pandas can be installed via pip from
Installing with ActivePython
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Installation instructions for `ActiveP... | Follow-up on https://github.com/pandas-dev/pandas/pull/19908
cc @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/19964 | 2018-03-02T12:42:21Z | 2018-03-02T12:50:00Z | 2018-03-02T12:50:00Z | 2018-03-02T12:50:52Z |
DOC: fix some sphinx syntax warnings | diff --git a/doc/source/merging.rst b/doc/source/merging.rst
index 4d9746eed0f0b..cfd3f9e88e4ea 100644
--- a/doc/source/merging.rst
+++ b/doc/source/merging.rst
@@ -152,7 +152,7 @@ functionality below.
Set logic on the other axes
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-When gluing together multiple ``DataFrame``s, you have a ... | https://api.github.com/repos/pandas-dev/pandas/pulls/19962 | 2018-03-02T10:44:29Z | 2018-03-02T21:33:49Z | 2018-03-02T21:33:49Z | 2018-03-02T21:33:54Z | |
DOC: update docstring validation script | diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py
index 7807785c24751..a90a55c6ce1ab 100755
--- a/scripts/validate_docstrings.py
+++ b/scripts/validate_docstrings.py
@@ -23,7 +23,7 @@
import inspect
import importlib
import doctest
-import textwrap
+import pydoc
try:
from io import St... | Follow-up on https://github.com/pandas-dev/pandas/pull/19898
cc @datapythonista | https://api.github.com/repos/pandas-dev/pandas/pulls/19960 | 2018-03-02T10:32:57Z | 2018-03-02T21:18:10Z | 2018-03-02T21:18:10Z | 2018-03-02T21:18:24Z |
Implement integer array add/sub for datetimelike indexes | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index b94377af770f4..58dee1c20ee57 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -22,6 +22,13 @@ Other Enhancements
Backwards incompatible API changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.. _whatsn... | AFAICT this is the next-to-last non-raising case for these operations. After this is just object-dtype, and for that we already have the correct implementation in addsub_offset_array, just need to make the condition less strict and add appropriate tests.
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes ... | https://api.github.com/repos/pandas-dev/pandas/pulls/19959 | 2018-03-02T05:55:58Z | 2018-05-29T01:42:55Z | 2018-05-29T01:42:55Z | 2018-05-29T03:47:37Z |
ENH: Sorting of ExtensionArrays | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index fa565aa802faf..f4c77263bf21b 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -2,6 +2,7 @@
import numpy as np
from pandas.errors import AbstractMethodError
+from pandas.compat.numpy import function as nv
_not_im... | This enables {Series,DataFrame}.sort_values and {Series,DataFrame}.argsort. These are required for `factorize`, which is required for `groupby` (my end goal).
I haven't implemented `ExtensionArray.sort_values` yet because it hasn't become necessary. But I can if needed / desired.
| https://api.github.com/repos/pandas-dev/pandas/pulls/19957 | 2018-03-01T20:48:41Z | 2018-03-22T23:20:06Z | 2018-03-22T23:20:06Z | 2018-03-23T12:43:22Z |
DOC/CI: run doctests on travis | diff --git a/.travis.yml b/.travis.yml
index 2d2a0bc019c80..32e6d2eae90a7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -56,7 +56,7 @@ matrix:
- python-gtk2
- dist: trusty
env:
- - JOB="3.6, coverage" ENV_FILE="ci/travis-36.yaml" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="... | Trying to see if we can check the doctests on travis. We were already running them, but at this point they were not failing travis if they failed.
Closes https://github.com/pandas-dev/pandas/issues/19934
Closes https://github.com/pandas-dev/pandas/issues/3439 | https://api.github.com/repos/pandas-dev/pandas/pulls/19952 | 2018-03-01T13:48:26Z | 2018-08-17T07:20:12Z | 2018-08-17T07:20:12Z | 2018-08-17T07:20:15Z |
DOC: small updates to make.py script | diff --git a/doc/make.py b/doc/make.py
index 2819a62347627..53635498f2adb 100755
--- a/doc/make.py
+++ b/doc/make.py
@@ -78,9 +78,11 @@ class DocBuilder:
All public methods of this class can be called as parameters of the
script.
"""
- def __init__(self, num_jobs=1, include_api=True, single_doc=None):... | - alias `python make.py --single api` to `api.rst` (like is done for the other .rst pages)
- pass through verbose flag to sphinx | https://api.github.com/repos/pandas-dev/pandas/pulls/19951 | 2018-03-01T12:57:37Z | 2018-03-02T21:35:46Z | 2018-03-02T21:35:46Z | 2018-03-02T21:35:52Z |
DOC: remove empty attribute/method lists from class docstrings html page | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 835127e5094e4..c81d38db05cca 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -552,6 +552,45 @@ def remove_flags_docstring(app, what, name, obj, options, lines):
del lines[:]
+def process_class_docstrings(app, what, name, obj, options, l... | Follow-up on https://github.com/pandas-dev/pandas/pull/18202 (RangeIndex was forgotten)
This is not really ideal, as we then get warnings about None not being a method. Maybe we could somehow connect with the numpydoc process and after its processing remove it .. | https://api.github.com/repos/pandas-dev/pandas/pulls/19949 | 2018-03-01T10:06:01Z | 2018-03-01T21:48:39Z | 2018-03-01T21:48:39Z | 2018-03-01T21:48:52Z |
BUG: Preserve column metadata with DataFrame.astype | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 90ce6b47728fb..fb19fd81fe7c7 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -954,6 +954,7 @@ Reshaping
- Bug in :func:`qcut` where datetime and timedelta data with ``NaT`` present raised a ``Valu... | - [X] closes #19920
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Follow-up to #18099 | https://api.github.com/repos/pandas-dev/pandas/pulls/19948 | 2018-03-01T08:40:54Z | 2018-03-01T11:14:20Z | 2018-03-01T11:14:19Z | 2018-03-01T16:15:02Z |
CLN: remove redundant clean_fill_method calls | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index c4eb7dd7e7a7e..79c783040dc97 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -4711,7 +4711,7 @@ def fillna(self, value=None, method=None, axis=None, inplace=False,
if axis is None:
axis = 0
axis = self.... | The ` method = missing.clean_fill_method(method)` is already called in `value, method = validate_fillna_kwargs(value, method)` | https://api.github.com/repos/pandas-dev/pandas/pulls/19947 | 2018-03-01T08:32:07Z | 2018-03-01T11:12:36Z | 2018-03-01T11:12:36Z | 2018-03-01T11:12:39Z |
DOC: Add comparison with Stata page to documentation | diff --git a/doc/source/comparison_with_stata.rst b/doc/source/comparison_with_stata.rst
new file mode 100644
index 0000000000000..6c518983d5904
--- /dev/null
+++ b/doc/source/comparison_with_stata.rst
@@ -0,0 +1,680 @@
+.. currentmodule:: pandas
+.. _compare_with_stata:
+
+Comparison with Stata
+*********************
... | - [ ] closes #####
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I noticed that the pandas documentation has pages for [Comparison with SAS](https://pandas.pydata.org/pandas-docs/stable/comparison_with_sas.html), [Comparison with R](https://pa... | https://api.github.com/repos/pandas-dev/pandas/pulls/19945 | 2018-03-01T05:10:48Z | 2018-03-29T14:39:09Z | 2018-03-29T14:39:09Z | 2018-03-29T14:39:14Z |
BUG: Compat for pre-0.20 TimedeltaIndex and Float64Index pickles #19939 | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index cf2a5de583878..08ac6f491793b 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -957,6 +957,7 @@ I/O
- :class:`Interval` now supported in :func:`DataFrame.to_excel` for all Excel file types (:issue:`... | - [x] closes #19939
- [x] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Added pre-0.20 locations of TimedeltaIndex and Float64Index to pickle_compat.py. | https://api.github.com/repos/pandas-dev/pandas/pulls/19943 | 2018-03-01T00:36:35Z | 2018-03-04T19:58:23Z | 2018-03-04T19:58:22Z | 2018-03-05T19:46:46Z |
REF/BUG/API: factorizing categorical data | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index c08e22af295f4..e838afdbbd083 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -843,6 +843,8 @@ Categorical
- Bug in :meth:`Series.astype` and ``Categorical.astype()`` where an existing categorical ... | This changes / fixes how Categorical data are factorized. The return value of a
factorized categorical is now `Tuple[ndarray[int], Categorical]`.
Before
```python
In [2]: l, u = pd.factorize(pd.Categorical(['a', 'a', 'b']))
In [3]: l
Out[3]: array([0, 0, 1])
In [4]: u
Out[4]: array([0, 1])
```
after... | https://api.github.com/repos/pandas-dev/pandas/pulls/19938 | 2018-02-28T15:19:15Z | 2018-03-15T10:40:59Z | 2018-03-15T10:40:59Z | 2018-05-02T13:10:14Z |
Making to_datetime('today') and Timestamp('today') consistent | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 1ede0310aa902..08363cd54c606 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -652,6 +652,7 @@ Other API Changes
- Set operations (union, difference...) on :class:`IntervalIndex` with incompatible ... | This PR changes `pd.to_datetime` to be consistent with `Timestamp('today')`.
- [x] closes #19935
- [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/19937 | 2018-02-28T15:09:56Z | 2018-03-01T23:02:32Z | 2018-03-01T23:02:32Z | 2018-03-01T23:02:35Z |
DOC: add doc on ExtensionArray and extending pandas | diff --git a/doc/source/developer.rst b/doc/source/developer.rst
index 0ef097da090f2..b8bb2b2fcbe2f 100644
--- a/doc/source/developer.rst
+++ b/doc/source/developer.rst
@@ -140,46 +140,3 @@ As an example of fully-formed metadata:
'metadata': None}
],
'pandas_version': '0.20.0'}
-
-.. _developer.regi... | - Added a new page on extending pandas
- Added some prose on extension arrays / extension dtypes
- Moved subclassing there
- Added a section to ecosystem.rst about libraries providing extension types and accessors. | https://api.github.com/repos/pandas-dev/pandas/pulls/19936 | 2018-02-28T13:00:28Z | 2018-03-06T15:38:33Z | 2018-03-06T15:38:32Z | 2018-05-02T13:10:21Z |
DOC: fix Series.reset_index example | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 6822f1f6b58b5..660bf3f5d4805 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1021,31 +1021,31 @@ def reset_index(self, level=None, drop=False, name=None, inplace=False):
>>> s = pd.Series([1, 2, 3, 4], index=pd.Index(['a', 'b',... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Show correct values in idx column. | https://api.github.com/repos/pandas-dev/pandas/pulls/19930 | 2018-02-27T21:12:59Z | 2018-02-28T08:05:56Z | 2018-02-28T08:05:56Z | 2018-02-28T08:06:11Z |
Add CodeTriage badge to pandas-dev/pandas | diff --git a/README.md b/README.md
index 4b9c9505e320a..86cf95508a5d9 100644
--- a/README.md
+++ b/README.md
@@ -216,13 +216,16 @@ Further, general questions and discussions can also take place on the [pydata ma
## Discussion and Development
Most development discussion is taking place on github in this repo. Further,... | Adds a badge showing the number of people helping this repo on CodeTriage.
[](https://www.codetriage.com/pandas-dev/pandas)
## What is CodeTriage?
CodeTriage is an Open Source app that is designed to make contributing to Open Sourc... | https://api.github.com/repos/pandas-dev/pandas/pulls/19928 | 2018-02-27T20:41:15Z | 2018-02-28T11:07:28Z | 2018-02-28T11:07:28Z | 2018-02-28T11:07:32Z |
Added seek to buffer to fix xlwt asv failure | diff --git a/pandas/io/excel.py b/pandas/io/excel.py
index 0d3d4286f5a3c..78af86cc00f7f 100644
--- a/pandas/io/excel.py
+++ b/pandas/io/excel.py
@@ -387,6 +387,10 @@ def __init__(self, io, **kwds):
self.book = io
elif not isinstance(io, xlrd.Book) and hasattr(io, "read"):
# N.B. xlrd.... | - [X] closes #19779
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Sample ASV results from this as follows. Across 5 runs I got the upstream/master error every time and none on HEAD
```bash
(pandas_dev) williams-imac:asv_bench williamayd$... | https://api.github.com/repos/pandas-dev/pandas/pulls/19926 | 2018-02-27T16:01:35Z | 2018-02-27T21:28:23Z | 2018-02-27T21:28:23Z | 2018-02-28T00:54:52Z |
TST: Debug flaky plotting test | diff --git a/pandas/tests/plotting/test_datetimelike.py b/pandas/tests/plotting/test_datetimelike.py
index 94adf349fe2cd..08a047a2e7707 100644
--- a/pandas/tests/plotting/test_datetimelike.py
+++ b/pandas/tests/plotting/test_datetimelike.py
@@ -689,14 +689,17 @@ def test_mixed_freq_regular_first(self):
s2 = s1... | Maybe closes https://github.com/pandas-dev/pandas/issues/19924. I can't reproduce this locally so who knows.
A while back I went through and added `plt.subplots()` and explicit `ax=ax` to a bunch of the plotting tests. I apparently missed this one. It seemed to help, but they're flaky tests so who knows.
Also ch... | https://api.github.com/repos/pandas-dev/pandas/pulls/19925 | 2018-02-27T15:47:51Z | 2018-02-27T21:31:56Z | 2018-02-27T21:31:56Z | 2018-05-02T13:10:22Z |
DOC: fixes pipe example in basics.rst due to statsmodel changes | diff --git a/doc/source/basics.rst b/doc/source/basics.rst
index e1b36a6acad70..8d09f1fc04c1f 100644
--- a/doc/source/basics.rst
+++ b/doc/source/basics.rst
@@ -746,7 +746,7 @@ What if the function you wish to apply takes its data as, say, the second argume
In this case, provide ``pipe`` with a tuple of ``(callable, d... | To work around changes in statsmodel api.
- [ ] closes #19713
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/19923 | 2018-02-27T03:04:00Z | 2018-02-28T08:14:24Z | 2018-02-28T08:14:24Z | 2018-02-28T08:14:35Z |
Consistent Timedelta Writing for all Excel Engines | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 5330f7e7e998b..6865428c352c1 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -867,7 +867,7 @@ I/O
- Bug in :func:`read_json` where large numeric values were causing an ``OverflowError`` (:issue:`1... | - [X] closes #19900
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
I've basically copied the implementation that was done for the `XlwtWriter` class in #19244 over to the other engine subclasses for an easy fix. This might also fix #19911 | https://api.github.com/repos/pandas-dev/pandas/pulls/19921 | 2018-02-27T01:30:24Z | 2018-02-28T00:16:49Z | 2018-02-28T00:16:49Z | 2018-05-14T21:11:43Z |
Cythonized GroupBy pct_change | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 233816600ec0f..31007adc9ab6a 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -794,6 +794,7 @@ Performance Improvements
- Improved performance of variable ``.rolling()`` on ``.min()`` and ``.max()`... | - [ ] progress towards #19165
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
This seemed like a logical follow up to #19673. ASV benchmarks below:
```bash
before after ratio
[1e4c50a5] [c8285b5c]
+ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/19919 | 2018-02-26T22:41:17Z | 2018-03-10T02:06:44Z | 2018-03-10T02:06:44Z | 2018-03-21T23:45:07Z |
transition period_helper to use pandas_datetimestruct | diff --git a/pandas/_libs/src/period_helper.c b/pandas/_libs/src/period_helper.c
index 19a7282f38049..cb6f0a220fafe 100644
--- a/pandas/_libs/src/period_helper.c
+++ b/pandas/_libs/src/period_helper.c
@@ -58,18 +58,6 @@ npy_int64 unix_date_from_ymd(int year, int month, int day) {
return unix_date;
}
-/* Sets th... | In the last round we transitioned period.pyx to use pandas_datetimestruct instead of date_info. This does the same thing for period_helper. | https://api.github.com/repos/pandas-dev/pandas/pulls/19918 | 2018-02-26T22:07:41Z | 2018-03-04T20:00:40Z | 2018-03-04T20:00:40Z | 2018-06-22T03:30:59Z |
DOC fix incorrect example in DataFrame.to_dict docstring. Close GH19868 | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e4ef1b97882d9..c39664047a01b 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -957,8 +957,8 @@ def to_dict(self, orient='dict', into=dict):
{'col1': [1, 2], 'col2': [0.5, 0.75]}, index=['a', 'b'])
>>> df
... | - [x] closes #19868
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] What's new: Fix incorrect example
| https://api.github.com/repos/pandas-dev/pandas/pulls/19915 | 2018-02-26T19:34:50Z | 2018-02-27T01:24:58Z | 2018-02-27T01:24:58Z | 2018-02-27T01:48:43Z |
BUG: Adding skipna as an option to groupby cumsum and cumprod | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index f2c96ba3f53a8..7a19f87051746 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -927,6 +927,7 @@ Groupby/Resample/Rolling
- Bug in :func:`DataFrame.groupby` passing the `on=` kwarg, and subsequently ... | - [x] closes #19806
- [x] tests added in `test_groupby.py`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This handles #19806 by adding skipna as an option to both `cumsum` and `cumprod` after groupby. I'm assuming that default behavior is what is described in the docs, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/19914 | 2018-02-26T19:11:45Z | 2018-03-01T23:13:58Z | 2018-03-01T23:13:58Z | 2018-03-01T23:14:01Z |
API: Added ExtensionArray constructors | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index cec881394a021..37074b563efbd 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -18,6 +18,7 @@ class ExtensionArray(object):
The interface includes the following abstract methods that must be
implemented by sub... | Adds two new (private, but part of the interface) constructors to EA.
Closes #19906 | https://api.github.com/repos/pandas-dev/pandas/pulls/19913 | 2018-02-26T18:03:54Z | 2018-03-02T21:20:29Z | 2018-03-02T21:20:29Z | 2018-05-02T13:10:20Z |
Datetimelike add/sub catch cases more explicitly, tests | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 4c6effc65a4d3..e673bfe411cb4 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -37,7 +37,7 @@
is_period_dtype,
is_timedelta64_dtype)
from pandas.core.dtypes.generic import ... | Align some of the dispatching logic between that is currently special-cased by PeriodIndex.
Should avoid overlap with #19903.
Catch some currently-implicit cases explicitly. | https://api.github.com/repos/pandas-dev/pandas/pulls/19912 | 2018-02-26T16:49:24Z | 2018-03-06T12:27:22Z | 2018-03-06T12:27:22Z | 2018-06-22T03:31:34Z |
ENH: ExtensionArray.fillna | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index e838afdbbd083..4add3b9e80280 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -843,6 +843,7 @@ Categorical
- Bug in :meth:`Series.astype` and ``Categorical.astype()`` where an existing categorical ... | xref https://github.com/pandas-dev/pandas/issues/19696
This adds `ExtensionArray.fillna`, and support for `NDFrame.fillna` with extension arrays.
Like `Categorical.fillna`, `limit` is not implemented. This shouldn't make it any harder to support that in the future. | https://api.github.com/repos/pandas-dev/pandas/pulls/19909 | 2018-02-26T16:25:55Z | 2018-03-16T21:44:35Z | 2018-03-16T21:44:35Z | 2018-05-02T13:10:12Z |
DOC: update install.rst to include ActivePython distribution | diff --git a/doc/source/install.rst b/doc/source/install.rst
index 4ff63d59024b2..e3667221e5166 100644
--- a/doc/source/install.rst
+++ b/doc/source/install.rst
@@ -12,7 +12,7 @@ cross platform distribution for data analysis and scientific computing.
This is the recommended installation method for most users.
Instr... | PR associated with [Issue #19845](https://github.com/pandas-dev/pandas/issues/19845#issuecomment-367879282): update Installation webpage to include ActivePython distribution
per @jreback
- [ ] closes #19845
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] ... | https://api.github.com/repos/pandas-dev/pandas/pulls/19908 | 2018-02-26T16:09:02Z | 2018-03-02T11:33:50Z | 2018-03-02T11:33:50Z | 2018-03-02T12:50:40Z |
ENH: ExtensionArray.setitem | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 7c0e367e74ffa..26c51ce93a47b 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3330,7 +3330,11 @@ def reindexer(value):
value = reindexer(value).T
elif isinstance(value, ExtensionArray):
+ from pandas.core.s... | xref https://github.com/pandas-dev/pandas/issues/19696
Adds `ExtensionBlock.__setitem__`.
This is only tested for with `DecimalArray` and `Categorical`. Supporting something like `JSONArray` where the "scalar" elements are actual sequences runs into issues elsewhere in internals. Maybe someday we can support that... | https://api.github.com/repos/pandas-dev/pandas/pulls/19907 | 2018-02-26T16:05:47Z | 2018-04-16T10:33:14Z | 2018-04-16T10:33:14Z | 2018-04-16T10:33:26Z |
handle NaT add/sub in one place | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 8e56fc2775a56..4c6effc65a4d3 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
"""
Base and utility classes for tseries type pandas objects.
"... | ATM DatetimeIndex/TimedeltaIndex/PeriodIndex each have special-casing for addition/subtraction of NaT. This checks for NaT up-front and puts all of that logic into add_nat and sub_nat methods.
Also makes another step towards centralizing all of the wrapping of the add/sub ops at the end of `__add__` and `__sub__`.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/19903 | 2018-02-26T07:23:12Z | 2018-02-27T11:36:23Z | 2018-02-27T11:36:23Z | 2018-06-22T03:31:13Z |
ENH: implement DatetimeLikeArray | diff --git a/pandas/core/arrays/__init__.py b/pandas/core/arrays/__init__.py
index f57348116c195..1b8a43d4293a5 100644
--- a/pandas/core/arrays/__init__.py
+++ b/pandas/core/arrays/__init__.py
@@ -1,3 +1,6 @@
from .base import (ExtensionArray, # noqa
ExtensionScalarOpsMixin)
from .categorical i... | The medium-term goal: refactor out of `DatetimeIndexOpsMixin`/`DatetimeIndex`/`TimedeltaIndex`/`PeriodIndex` the bare minimum subset of functionality to implement arithmetic+comparisons for `DatetimeArray`/`TimedeltaArray`/`PeriodArray`. This PR does _not_ do that.
What it _does_ do is refactor out the subset of th... | https://api.github.com/repos/pandas-dev/pandas/pulls/19902 | 2018-02-26T05:26:43Z | 2018-07-02T23:58:48Z | 2018-07-02T23:58:48Z | 2018-07-02T23:59:52Z |
DOC: small typo fix | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index 852ad04cd8a2e..00643614e8803 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -1440,7 +1440,7 @@ def resample(self, rule, *args, **kwargs):
def rolling(self, *args, **kwargs):
"""
Return a rolling grouper, provi... | "functionaility" -> "functionality"
- [ ] 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/19901 | 2018-02-26T03:07:45Z | 2018-02-26T10:34:59Z | 2018-02-26T10:34:59Z | 2018-02-26T10:35:04Z |
DOC: fix numpydoc section titles in misc plotting docstrings | diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py
index d6048f54993e6..45594e9c6ea95 100644
--- a/pandas/plotting/_misc.py
+++ b/pandas/plotting/_misc.py
@@ -149,8 +149,8 @@ def _get_marker_compat(marker):
def radviz(frame, class_column, ax=None, color=None, colormap=None, **kwds):
"""RadViz - a mu... | https://api.github.com/repos/pandas-dev/pandas/pulls/19899 | 2018-02-25T22:44:21Z | 2018-02-26T08:48:11Z | 2018-02-26T08:48:11Z | 2018-02-26T08:48:14Z | |
DOC: Adding script to validate docstrings, and generate list of all functions/methods with state | diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py
new file mode 100755
index 0000000000000..7807785c24751
--- /dev/null
+++ b/scripts/validate_docstrings.py
@@ -0,0 +1,355 @@
+#!/usr/bin/env python
+"""
+Analyze docstrings to detect errors.
+
+If no argument is provided, it does a quick check... | - [ ] closes #xxxx
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Adding a new script to check whether a docstring follows the defined standards or not. Also, without arguments, the script returns a report of all the functions and methods in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/19898 | 2018-02-25T21:37:27Z | 2018-03-02T09:39:46Z | 2018-03-02T09:39:46Z | 2018-03-02T09:40:02Z |
parameterize test_pct_change_periods_freq | diff --git a/pandas/tests/frame/test_timeseries.py b/pandas/tests/frame/test_timeseries.py
index 9f94439a71a57..e1bc310e1e934 100644
--- a/pandas/tests/frame/test_timeseries.py
+++ b/pandas/tests/frame/test_timeseries.py
@@ -122,36 +122,31 @@ def test_pct_change_shift_over_nas(self):
edf = DataFrame({'a': expe... | - [x] closes https://github.com/pandas-dev/pandas/pull/19410
- [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/19897 | 2018-02-25T21:18:36Z | 2018-02-25T23:06:26Z | 2018-02-25T23:06:26Z | 2018-02-25T23:12:18Z |
cleanup order of operations kludges | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 99a3773603fc4..72487faf933c7 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -586,6 +586,7 @@ Datetimelike API Changes
- Operations between a :class:`Series` with dtype ``dtype='datetime64[ns]'`` ... | DatetimeIndexOpsMixin has an unfortunate kludge where it checks if `self` is a `TimedeltaIndex` and if so dispatches to a reversed operation. This then makes subsequent checks less straightforward than they could/should be. This fixes that.
This is in preparation for separating out DatetimeArray/TimedeltaArray/Per... | https://api.github.com/repos/pandas-dev/pandas/pulls/19895 | 2018-02-25T19:00:46Z | 2018-02-26T11:10:15Z | 2018-02-26T11:10:15Z | 2018-06-22T03:29:35Z |
EHN: Implement method argument for DataFrame.replace | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 79d85513efa26..feca90aae6237 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -338,6 +338,7 @@ Other Enhancements
- For subclassed ``DataFrames``, :func:`DataFrame.apply` will now preserve the ``Se... | - [x] closes #19632
- [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/19894 | 2018-02-25T12:49:20Z | 2018-03-07T14:32:12Z | 2018-03-07T14:32:12Z | 2018-03-07T22:19:06Z |
CLN: Remove Series._from_array | diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py
index d306d0d78f1f4..0501493e718d0 100644
--- a/pandas/core/dtypes/concat.py
+++ b/pandas/core/dtypes/concat.py
@@ -101,6 +101,27 @@ def _get_frame_result_type(result, objs):
ABCSparseData... | This PR transfers the class check of `Series._from_array` to `DataFrame._box_col_values`; removing the need for calling the `Series._from_array` and allowing for user-defined slice-inheritance of metadata.
I opted to delete the function as it was private but leave the `Series.from_array` public access working and it... | https://api.github.com/repos/pandas-dev/pandas/pulls/19893 | 2018-02-25T09:40:50Z | 2018-02-27T01:15:32Z | 2018-02-27T01:15:31Z | 2018-02-27T01:15:36Z |
BUG: Retain timezone dtype with cut and qcut | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 233816600ec0f..bf267f2299f90 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -1018,6 +1018,7 @@ Reshaping
- Bug in :func:`DataFrame.iterrows`, which would infers strings not compliant to `ISO8601 ... | - [x] closes #19872
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Timezone dtypes were getting lost as the `_preprocess_for_cut` function called `np.asarray` on all incomming data. I added an additional check that the input array is 1D as stat... | https://api.github.com/repos/pandas-dev/pandas/pulls/19890 | 2018-02-25T06:41:12Z | 2018-03-09T11:13:51Z | 2018-03-09T11:13:51Z | 2023-09-06T15:09:40Z |
ENH: Allow Timestamp to accept Nanosecond argument | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index fb22dc40e335f..6bfd8fcca45b1 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -587,6 +587,7 @@ Datetimelike API Changes
- Subtraction of :class:`Series` with timezone-aware ``dtype='datetime64[ns]'... | - [x] closes #18898
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Needed to add a new `nanos` argument to `convert_to_tsobject` arguments from `Timestamp.__new__` dispatches to this function (and `datetime.datetime` cannot take a nanosecond ar... | https://api.github.com/repos/pandas-dev/pandas/pulls/19889 | 2018-02-25T02:22:00Z | 2018-03-01T01:32:25Z | 2018-03-01T01:32:24Z | 2018-03-01T02:05:05Z |
CI: pin jemalloc=4.5.0.poast for 2.7 build per | diff --git a/ci/requirements-2.7.sh b/ci/requirements-2.7.sh
index e3bd5e46026c5..95169e5dcce57 100644
--- a/ci/requirements-2.7.sh
+++ b/ci/requirements-2.7.sh
@@ -4,4 +4,4 @@ source activate pandas
echo "install 27"
-conda install -n pandas -c conda-forge feather-format pyarrow=0.4.1 fastparquet
+conda install -... | https://issues.apache.org/jira/browse/ARROW-2208
| https://api.github.com/repos/pandas-dev/pandas/pulls/19888 | 2018-02-25T01:15:06Z | 2018-02-25T01:44:50Z | 2018-02-25T01:44:50Z | 2018-02-25T01:44:50Z |
Assorted _libs cleanups | diff --git a/pandas/_libs/lib.pxd b/pandas/_libs/lib.pxd
deleted file mode 100644
index b06c071c358c1..0000000000000
--- a/pandas/_libs/lib.pxd
+++ /dev/null
@@ -1,3 +0,0 @@
-# prototypes for sharing
-
-cpdef bint is_period(val)
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index e1d59f807a7fd..30521760327b4... | Moves a few functions only ever used in groupby/index to libgroupby and libindex, respectively. | https://api.github.com/repos/pandas-dev/pandas/pulls/19887 | 2018-02-24T21:42:55Z | 2018-02-28T00:11:48Z | 2018-02-28T00:11:48Z | 2018-06-22T03:29:25Z |
ENH: Let initialisation from dicts use insertion order for python >= 3.6 (part III) | diff --git a/doc/source/dsintro.rst b/doc/source/dsintro.rst
index 1ba00b8fb6f23..ca6cefac9e842 100644
--- a/doc/source/dsintro.rst
+++ b/doc/source/dsintro.rst
@@ -81,9 +81,28 @@ index is passed, one will be created having values ``[0, ..., len(data) - 1]``.
**From dict**
-If ``data`` is a dict, if **index** is p... | - [x] closes #19018
- [x] xref #19830 and #19859
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This PR lets pandas allow initialisation using insertion order for python>=3.6. E.g. ``Series({'B': 1, 'A': 2})`` will retain order and not convert to ``Series({'A': 2, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/19884 | 2018-02-24T17:10:42Z | 2018-03-02T11:19:08Z | 2018-03-02T11:19:07Z | 2018-03-02T12:14:37Z |
COMPAT: fixup decimal extension for indexing compat | diff --git a/pandas/tests/extension/base/getitem.py b/pandas/tests/extension/base/getitem.py
index 31ed8b9e01225..566ba1721d13c 100644
--- a/pandas/tests/extension/base/getitem.py
+++ b/pandas/tests/extension/base/getitem.py
@@ -18,7 +18,8 @@ def test_iloc_series(self, data):
self.assert_series_equal(result, e... | https://api.github.com/repos/pandas-dev/pandas/pulls/19882 | 2018-02-24T15:38:30Z | 2018-02-24T17:21:03Z | 2018-02-24T17:21:03Z | 2018-02-24T17:21:03Z | |
Include MultiIndex slice in non-reducing slices | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 1fe5e4e6e7087..da1ea62e6f49a 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1538,6 +1538,7 @@ Missing
MultiIndex
^^^^^^^^^^
+- Bug in :func:`io.formats.style.Styler.applymap` where ``subset=`... | Changes behaviour of user-passed IndexSlice to return DataFrame instead of
reducing to Series. MultiIndex slices are tuples so this explicitly checks type
and guards with braces.
This seems deceptively simple. WDYT?
- [x] closes #19861
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/19881 | 2018-02-24T15:22:36Z | 2019-01-02T01:15:58Z | 2019-01-02T01:15:58Z | 2019-01-02T09:40:42Z |
CLN: remove obsolete code in Categorical.fillna | diff --git a/.gitignore b/.gitignore
index 4bbbcad0c97ad..96b1f945870de 100644
--- a/.gitignore
+++ b/.gitignore
@@ -61,6 +61,7 @@ dist
.coverage
coverage.xml
coverage_html_report
+*.pytest_cache
# OS generated files #
######################
@@ -90,7 +91,6 @@ scikits
# Unit / Performance Testing #
##########... | closes #19787
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Deleted code and tested block of code associated with NaN that should be unreachable. | https://api.github.com/repos/pandas-dev/pandas/pulls/19880 | 2018-02-24T08:54:13Z | 2018-03-15T23:02:40Z | 2018-03-15T23:02:40Z | 2018-03-15T23:02:44Z |
Fixed issue with leftover test.json file | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index ba24c93121dcb..c6156c5310e99 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -214,13 +214,22 @@ Please note that the string `index` is not supported with the round trip format,
:okwarning:
... | - [ ] closes #19815
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/19879 | 2018-02-24T07:56:42Z | 2018-02-25T16:17:11Z | 2018-02-25T16:17:10Z | 2018-02-25T16:17:13Z |
DOC: misc. typos | diff --git a/doc/source/basics.rst b/doc/source/basics.rst
index 749d4be11ad45..e1b36a6acad70 100644
--- a/doc/source/basics.rst
+++ b/doc/source/basics.rst
@@ -2312,4 +2312,4 @@ All NumPy dtypes are subclasses of ``numpy.generic``:
.. note::
Pandas also defines the types ``category``, and ``datetime64[ns, tz]`... | Found via `codespell -q 3 -I ../pandas-whitelist.txt`
Where whitelists consists of:
```
ans
behaviour
doubleclick
indicies
initialise
initialised
initialising
nd
resetted
splitted
thru
valu
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/19876 | 2018-02-24T01:31:42Z | 2018-02-24T13:26:06Z | 2018-02-24T13:26:06Z | 2018-03-11T15:29:29Z |
Fixed pct_change with 'fill_method' returning NaN instead of 0 | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index fd3c3a5a7a301..ed37892aeff9e 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -807,6 +807,7 @@ Numeric
- Bug in :class:`Index` constructor with ``dtype='uint64'`` where int-like floats were not coe... | - [X] closes #19873
- [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/19875 | 2018-02-24T00:20:28Z | 2018-02-25T16:07:00Z | 2018-02-25T16:06:59Z | 2018-05-14T21:11:44Z |
Use pandas_datetimestruct instead of date_info | diff --git a/pandas/_libs/src/period_helper.c b/pandas/_libs/src/period_helper.c
index e3d250aa44f17..19a7282f38049 100644
--- a/pandas/_libs/src/period_helper.c
+++ b/pandas/_libs/src/period_helper.c
@@ -89,14 +89,12 @@ static npy_int64 daytime_conversion_factor_matrix[7][7] = {
{0, 0, 0, 0, 0, ... | Changes test file name from previous pass | https://api.github.com/repos/pandas-dev/pandas/pulls/19874 | 2018-02-23T23:32:46Z | 2018-02-25T16:09:36Z | 2018-02-25T16:09:36Z | 2018-06-22T03:29:20Z |
templatize timedelta arith ops | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index c4578a289b020..7aeff9bec75b5 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -471,9 +471,12 @@ def _binary_op_method_timedeltalike(op, name):
# define a binary operation that only ... | Some Timedelta operations are constructed using `_binary_op_method_timedeltalike`, while a bunch of others re-implement shared logic. This PR is an attempt to get rid of the small differences in this shared logic so they can eventually use a single template.
| https://api.github.com/repos/pandas-dev/pandas/pulls/19871 | 2018-02-23T17:45:06Z | 2018-02-24T16:38:23Z | 2018-02-24T16:38:23Z | 2018-06-22T03:29:14Z |
ENH: ExtensionArray.unique | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index d616e3f92aa4d..9101fca58d5fa 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -10,8 +10,9 @@
maybe_promote, construct_1d_object_array_from_listlike)
from pandas.core.dtypes.generic import (
ABCSeries, ABCIndex,
... | https://api.github.com/repos/pandas-dev/pandas/pulls/19869 | 2018-02-23T17:26:26Z | 2018-03-13T10:17:19Z | 2018-03-13T10:17:19Z | 2018-05-02T13:10:18Z | |
BUG: Decrement start date with a negative, non-Tick frequency | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index d0aa156cf5059..7dc86b9c1e608 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -914,6 +914,7 @@ Datetimelike
- Bug in rounding methods of :class:`DatetimeIndex` (:meth:`~DatetimeIndex.round`, :meth:... | - [x] closes #23270
- [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/23278 | 2018-10-22T17:34:06Z | 2018-10-23T03:09:10Z | 2018-10-23T03:09:10Z | 2018-10-23T16:52:36Z |
TST: Condense tests in test_interval_new.py and add new test based on TODO | diff --git a/pandas/tests/indexes/interval/test_interval_new.py b/pandas/tests/indexes/interval/test_interval_new.py
index c5daa7271926f..02801f6bbc7ee 100644
--- a/pandas/tests/indexes/interval/test_interval_new.py
+++ b/pandas/tests/indexes/interval/test_interval_new.py
@@ -12,13 +12,6 @@
class TestIntervalIndex(o... | - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Combined a some pairs of similar tests into single tests, e.g. `test_get_indexer_with_interval_multiple_queries` and `test_get_indexer_with_interval_single_queries` are essentially testing the same functionality but with different input to `get_ind... | https://api.github.com/repos/pandas-dev/pandas/pulls/23275 | 2018-10-22T14:48:17Z | 2018-10-23T03:08:46Z | 2018-10-23T03:08:46Z | 2018-10-25T03:42:01Z |
Implement Series.__rdivmod__, un-xfail tests | diff --git a/pandas/core/ops.py b/pandas/core/ops.py
index daa87ad173772..c14e9edcc75d7 100644
--- a/pandas/core/ops.py
+++ b/pandas/core/ops.py
@@ -518,7 +518,7 @@ def _get_op_name(op, special):
'df_examples': None},
'divmod': {'op': 'divmod',
'desc': 'Integer division and modulo... | - [x] closes #19252
- [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/23271 | 2018-10-22T04:35:44Z | 2018-10-23T02:56:49Z | 2018-10-23T02:56:49Z | 2018-10-23T02:59:57Z |
CLN: Removed all occurances of `goal_time` and enabled linting for benchmarks | diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py
index baac179355022..1ab88dc9f9e6d 100644
--- a/asv_bench/benchmarks/algorithms.py
+++ b/asv_bench/benchmarks/algorithms.py
@@ -15,8 +15,6 @@
class Factorize(object):
- goal_time = 0.2
-
params = [True, False]
param_n... | - [X] closes #23075
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
The following changes were made:
- All occurances of `goal_time` have been removed. Running `grep -rnw asv_bench/benchmarks/ -e goal_time --include "*.py"` should no longer r... | https://api.github.com/repos/pandas-dev/pandas/pulls/23265 | 2018-10-21T20:05:04Z | 2018-10-23T03:07:42Z | 2018-10-23T03:07:42Z | 2018-10-23T03:07:48Z |
DEPR: Add Deprecated warning for timedelta with passed units M and Y | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index cbefae07b07f1..c9efe43c35adf 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -42,10 +42,7 @@ Other API Changes
Deprecations
~~~~~~~~~~~~
--
--
--
-
+- Deprecated the `M (months)` and `Y (year)`... | - [x] closes #16344
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] tests passed locally - `pytest pandas/tests/scalar/timedelta/test_timedelta.py -k test_unit_m_y_deprecated` and `pytest pandas/tests/indexes/timedeltas/test_timedelta.py -k test_unit_m_y_deprecated`
- [x] checked import ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23264 | 2018-10-21T17:36:32Z | 2019-02-08T23:37:38Z | 2019-02-08T23:37:38Z | 2019-02-08T23:42:59Z |
BUG: merging an Integer EA rasises | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 0bd695f5a40ea..7a6d7fed6fae8 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1051,6 +1051,7 @@ update the ``ExtensionDtype._metadata`` tuple to match the signature of your
- :meth:`DataFrame.stac... | - [ ] closes #23020
- [ ] 1 test added
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23262 | 2018-10-21T14:27:16Z | 2018-12-19T14:28:58Z | 2018-12-19T14:28:57Z | 2018-12-19T14:29:13Z |
Add tests in methods.py | diff --git a/pandas/tests/extension/base/methods.py b/pandas/tests/extension/base/methods.py
index f7649415f2471..60de5d4db03d9 100644
--- a/pandas/tests/extension/base/methods.py
+++ b/pandas/tests/extension/base/methods.py
@@ -105,6 +105,30 @@ def test_factorize_equivalence(self, data_for_grouping, na_sentinel):
... | Closes #23241
| https://api.github.com/repos/pandas-dev/pandas/pulls/23261 | 2018-10-21T00:04:49Z | 2018-10-30T11:42:06Z | 2018-10-30T11:42:05Z | 2019-01-02T20:26:25Z |
CLN: remove unused `mgr` kwarg | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 8a4754542b5b6..f89d4c51c9a6f 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -299,7 +299,7 @@ def _slice(self, slicer):
""" return a slice of my values """
return self.values[slic... | - [ ] 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/23260 | 2018-10-20T21:48:37Z | 2018-10-23T11:52:58Z | 2018-10-23T11:52:58Z | 2020-04-05T17:39:26Z |
DOC: Fixed timedelta docstring and examples | diff --git a/pandas/core/tools/timedeltas.py b/pandas/core/tools/timedeltas.py
index db93820c6942f..b6ceabb759954 100644
--- a/pandas/core/tools/timedeltas.py
+++ b/pandas/core/tools/timedeltas.py
@@ -16,31 +16,43 @@
def to_timedelta(arg, unit='ns', box=True, errors='raise'):
"""
- Convert argument to timede... | - [x] closes #23248
- [x] tests added / passed
- [x] passes `git diff upstream/master --name-only -- "*.py" | grep "pandas/" | xargs flake8`
- [x] passes `python scripts/validate_docstrings.py pandas.to_timedelta`
| https://api.github.com/repos/pandas-dev/pandas/pulls/23259 | 2018-10-20T21:43:56Z | 2018-11-20T10:26:33Z | 2018-11-20T10:26:33Z | 2018-11-20T10:26:47Z |
CLN: remove unused try_cast kwarg from ops | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 257e8a8c6d726..6dd9174028f18 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4971,14 +4971,14 @@ def _combine_match_index(self, other, func, level=None):
index=left.index, columns=self.columns,
... | - [ ] 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/23258 | 2018-10-20T20:33:24Z | 2018-10-23T12:32:08Z | 2018-10-23T12:32:08Z | 2020-04-05T17:39:19Z |
TST: stricter monotonicity/uniqueness tests | diff --git a/pandas/tests/indexes/multi/test_monotonic.py b/pandas/tests/indexes/multi/test_monotonic.py
index f02447e27ab81..b9492794c479b 100644
--- a/pandas/tests/indexes/multi/test_monotonic.py
+++ b/pandas/tests/indexes/multi/test_monotonic.py
@@ -9,31 +9,31 @@
def test_is_monotonic_increasing():
i = MultiIn... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Asserting a method always passes. For example ``assert df.agg`` always passes.
By making the monotonicity and uniqueness tests stricter (i.e. testing for actual True/False rat... | https://api.github.com/repos/pandas-dev/pandas/pulls/23256 | 2018-10-20T19:24:39Z | 2018-10-23T03:18:28Z | 2018-10-23T03:18:28Z | 2018-10-23T08:27:34Z |
ENH:Add EA types to read CSV | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 7230ff55f9a6c..3bbd4e8410fa5 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -362,16 +362,17 @@ columns:
.. ipython:: python
- data = ('a,b,c\n'
- '1,2,3\n'
- '4,5,6\n'
- '7,8,9')
+ data = ('a,b,c,d\n'
+ ... | Closes GH23228
- [x ] closes #23228
- [ x] tests added / passed
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x ] whatsnew - May need some guidance on this part.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23255 | 2018-10-20T19:12:14Z | 2019-01-02T02:57:20Z | 2019-01-02T02:57:20Z | 2019-01-05T16:11:17Z |
CLN:Remove unused **kwargs from user facing methods | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 41e14e482d061..4c28e0f88b1ae 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -1674,7 +1674,7 @@ def cvalues(self):
def __iter__(self):
return iter(self.values)
- def maybe_set_size(self, min_itemsize=None, **kwargs):
+... | closes GH18748 for user facing methods.
An updated [extra_kwargs.txt](https://github.com/pandas-dev/pandas/files/2498300/extra_kwargs.txt) mostly shows internal functions and false positives.
There are a few cases like all of the `visit_*` functions that removing the `**kwargs` breaks the API.
- [ ] xref #18... | https://api.github.com/repos/pandas-dev/pandas/pulls/23249 | 2018-10-20T15:49:42Z | 2018-11-12T04:45:27Z | 2018-11-12T04:45:27Z | 2018-11-12T14:24:34Z |
TST: parametrize and de-duplicate arithmetic tests | diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py
index 36bb0aca066fb..71eba1e6901a1 100644
--- a/pandas/tests/arithmetic/test_datetime64.py
+++ b/pandas/tests/arithmetic/test_datetime64.py
@@ -323,32 +323,35 @@ def test_dti_cmp_null_scalar_inequality(self, tz_naive_fi... | This is likely to be a sisyphean task... | https://api.github.com/repos/pandas-dev/pandas/pulls/23240 | 2018-10-19T16:42:22Z | 2018-10-24T12:28:40Z | 2018-10-24T12:28:40Z | 2018-10-24T16:09:16Z |
ENH/TST/DOC: set infer_nrows for read_fwf (GH15138) | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 48a3bfdab62c9..0e38396d156e1 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -286,6 +286,7 @@ Other Enhancements
- New attribute :attr:`__git_version__` will return git commit sha of current build... | - [ ] closes #15138
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
`read_fwf` can infer the widths of columns of a dataset from a file or buffer, but if the widths change after the first 100 rows, then the default behavior fails to capture the ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23238 | 2018-10-19T14:07:58Z | 2018-11-26T00:35:45Z | 2018-11-26T00:35:45Z | 2018-11-26T00:36:06Z |
BUG GH23224 Allow integer_array to be initialized with all None | diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py
index 52762514d00c2..17e92c3976e2c 100644
--- a/pandas/core/arrays/integer.py
+++ b/pandas/core/arrays/integer.py
@@ -173,8 +173,11 @@ def coerce_to_array(values, dtype, mask=None, copy=False):
values = np.array(values, copy=copy)
if i... | - [X] closes #23224
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Allows for initialization of `integer_array` with `[None]`, lists of `None`, and lists made of only `None` and other na types | https://api.github.com/repos/pandas-dev/pandas/pulls/23237 | 2018-10-19T07:44:37Z | 2018-10-23T03:06:35Z | 2018-10-23T03:06:35Z | 2018-10-23T09:20:34Z |
PERF: speed up CategoricalIndex.get_loc | diff --git a/asv_bench/benchmarks/indexing_engines.py b/asv_bench/benchmarks/indexing_engines.py
index 1e9283c7fb92b..f3d063ee31bc8 100644
--- a/asv_bench/benchmarks/indexing_engines.py
+++ b/asv_bench/benchmarks/indexing_engines.py
@@ -1,18 +1,30 @@
import numpy as np
-from pandas._libs.index import (Int64Engine, U... | - [x] closes #20395
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This is the the final puzzle for #20395 and speeds up ``CategoricalIndex.get_loc`` for monotonic increasing indexes.
This PR supersedes #21699, so #21699 should be closed.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/23235 | 2018-10-19T02:21:26Z | 2018-10-26T01:11:55Z | 2018-10-26T01:11:55Z | 2018-10-26T01:50:41Z |
CI: Quieter doctests | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 6494311d73290..aec74eb970322 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -122,22 +122,22 @@ fi
if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
MSG='Doctests frame.py' ; echo $MSG
- pytest --doctest-modules -v pandas/core/frame.py \
+... | ref
https://github.com/pandas-dev/pandas/pull/23215#issuecomment-431127737
cc @datapythonista @jbrockmendel | https://api.github.com/repos/pandas-dev/pandas/pulls/23232 | 2018-10-18T19:50:52Z | 2018-10-19T02:01:58Z | 2018-10-19T02:01:58Z | 2018-10-19T02:03:04Z |
STYLE: Fix isort failure in range.py | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 00f17d5c91537..6494311d73290 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -16,7 +16,7 @@
echo "inside $0"
[[ $LINT ]] || { echo "NOT Linting. To lint use: LINT=true $0 $1"; exit 0; }
-[[ -z "$1" || "$1" == "lint" || "$1" == "patterns" || "$1" == ... | https://travis-ci.org/pandas-dev/pandas/jobs/443300714#L2922 | https://api.github.com/repos/pandas-dev/pandas/pulls/23231 | 2018-10-18T18:52:10Z | 2018-10-18T20:41:48Z | 2018-10-18T20:41:48Z | 2018-10-19T00:55:04Z |
CLN GH23204 remove "not" typo in assertion | diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py
index 1c602a0af1ec1..aa380d95e5f36 100644
--- a/pandas/core/reshape/concat.py
+++ b/pandas/core/reshape/concat.py
@@ -446,7 +446,7 @@ def _get_new_axes(self):
new_axes[i] = self._get_comb_axis(i)
else:
if l... | - [x] closes #23204
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Remove an unwanted "not" in the assertion message.
This is my first pandas PR! Let me know if there's anything else I need to do. Thanks! | https://api.github.com/repos/pandas-dev/pandas/pulls/23221 | 2018-10-18T13:23:04Z | 2018-10-23T03:04:07Z | 2018-10-23T03:04:07Z | 2018-10-23T12:21:26Z |
CLN: de-duplicate generate_range | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index a98b0b3bf35f9..72bc5c2209d04 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -595,9 +595,12 @@ def _time_shift(self, periods, freq=None):
start = self[0] + periods * self.fre... | Split off from #23140. | https://api.github.com/repos/pandas-dev/pandas/pulls/23218 | 2018-10-18T02:29:18Z | 2018-10-23T03:07:07Z | 2018-10-23T03:07:07Z | 2018-10-23T03:09:51Z |
TST: Fix improperly defined tests in test_interval_new.py | diff --git a/pandas/tests/indexes/interval/test_interval_new.py b/pandas/tests/indexes/interval/test_interval_new.py
index a0d11db46d316..c5daa7271926f 100644
--- a/pandas/tests/indexes/interval/test_interval_new.py
+++ b/pandas/tests/indexes/interval/test_interval_new.py
@@ -19,17 +19,16 @@ def _compare_tuple_of_numpy... | - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
I've been working over the new `IntervalIndex` behavior specs and found some issues with the tests for the new behavior. Wanted to make the requisite changes separately so the new behavior PR is as straightforward as possible (will open a WIP PR f... | https://api.github.com/repos/pandas-dev/pandas/pulls/23217 | 2018-10-18T01:44:46Z | 2018-10-18T14:10:46Z | 2018-10-18T14:10:46Z | 2018-10-19T21:22:51Z |
BUG/TST/REF: Datetimelike Arithmetic Methods | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 51c398518c153..4b49bb3da1382 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1028,6 +1028,7 @@ Datetimelike
- Bug in :func:`date_range` when decrementing a start date to a past end date by a nega... | @TomAugspurger @jorisvandenbossche @jreback as discussed
- [ ] 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/23215 | 2018-10-17T23:09:56Z | 2018-10-28T13:34:00Z | 2018-10-28T13:34:00Z | 2018-10-28T16:16:10Z |
REF: use fused types for the rest of libjoin | diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx
index 7c791ab8a1b00..c6afeda6a37dc 100644
--- a/pandas/_libs/join.pyx
+++ b/pandas/_libs/join.pyx
@@ -17,8 +17,6 @@ cdef double nan = NaN
from pandas._libs.algos import groupsort_indexer, ensure_platform_int
from pandas.core.algorithms import take_nd
-inclu... | - [ ] 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/23214 | 2018-10-17T23:05:36Z | 2018-10-18T16:47:53Z | 2018-10-18T16:47:53Z | 2018-10-19T12:21:56Z |
TST/CLN: Parameterize test in sparse/test_indexing | diff --git a/pandas/tests/sparse/test_indexing.py b/pandas/tests/sparse/test_indexing.py
index 7c7e450c966bf..1ecb1f4e8de58 100644
--- a/pandas/tests/sparse/test_indexing.py
+++ b/pandas/tests/sparse/test_indexing.py
@@ -424,38 +424,35 @@ def test_reindex_nearest(self):
expected = pd.Series([0, np.nan, np.nan,... | Title is self-explanatory. | https://api.github.com/repos/pandas-dev/pandas/pulls/23213 | 2018-10-17T22:26:39Z | 2018-10-18T11:39:42Z | 2018-10-18T11:39:42Z | 2018-10-18T16:10:40Z |
CLN: Address some TODO comments | diff --git a/pandas/core/common.py b/pandas/core/common.py
index 8bbaabe8c08af..f6e40faa79740 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -68,17 +68,6 @@ def consensus_name_attr(objs):
return name
-# TODO: only used once in frame.py; belongs elsewhere?
-def get_info_slice(obj, indexer):
-... | - [x] closes #23098
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
I am technically moving some public (non top level) helper functions and making them private, but I don't think it warrants a depreciation. | https://api.github.com/repos/pandas-dev/pandas/pulls/23208 | 2018-10-17T18:34:36Z | 2018-10-19T13:02:29Z | 2018-10-19T13:02:29Z | 2018-10-19T16:52:49Z |
TST: bare-bones fixture for timedelta array tests | diff --git a/pandas/tests/arrays/test_datetimelike.py b/pandas/tests/arrays/test_datetimelike.py
index bfce5fb1462d9..a13eb8dec51d1 100644
--- a/pandas/tests/arrays/test_datetimelike.py
+++ b/pandas/tests/arrays/test_datetimelike.py
@@ -34,7 +34,7 @@ def datetime_index(request):
A fixture to provide DatetimeIndex ... | Broken off from #23140. The fixture needs to be fleshed out, but for now I just want to get it in place, since already other PRs need it.
- [ ] 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/23207 | 2018-10-17T16:29:47Z | 2018-10-19T13:00:47Z | 2018-10-19T13:00:47Z | 2018-10-23T03:28:02Z |
validate min/max axis | diff --git a/pandas/compat/numpy/function.py b/pandas/compat/numpy/function.py
index d42be56963569..a4232ca2ebf78 100644
--- a/pandas/compat/numpy/function.py
+++ b/pandas/compat/numpy/function.py
@@ -360,3 +360,24 @@ def validate_resampler_func(method, args, kwargs):
"{func}() instead".format(func=met... | Broken off from #23140.
- [x] closes #23081
- [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/23206 | 2018-10-17T16:18:25Z | 2018-10-18T11:27:18Z | 2018-10-18T11:27:18Z | 2018-10-23T03:28:19Z |
implement TimedeltaArray asm8, to_timedelta64 | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index ac90483513af5..b0b1397086e02 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -707,6 +707,22 @@ def tz_localize(self, tz, ambiguous='raise', errors='raise'):
# ---------------------------------... | For compat with Timedelta scalar
- [x] closes #22632
- [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/23205 | 2018-10-17T15:59:52Z | 2018-10-23T02:55:07Z | 2018-10-23T02:55:07Z | 2018-10-23T09:06:41Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.