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: work around IPython directive bug | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 92fc28af0281a..2b91836d5449d 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -662,8 +662,8 @@ If ``skip_blank_lines=False``, then ``read_csv`` will not ignore blank lines:
.. ipython:: python
- data = '# empty\n# second empty line\n# third ... | Closes https://github.com/pandas-dev/pandas/issues/23954 | https://api.github.com/repos/pandas-dev/pandas/pulls/23994 | 2018-11-29T15:30:32Z | 2018-11-29T16:32:40Z | 2018-11-29T16:32:40Z | 2018-11-29T16:32:44Z |
BUG/TST: PeriodArray.__setitem__ with slice and list-like value | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index c74bcb505b6be..5976ecb6bffd3 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1349,6 +1349,7 @@ Indexing
- Bug where setting a timedelta column by ``Index`` causes it to be casted to double, and t... | - [ ] closes #23978
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23991 | 2018-11-29T10:23:27Z | 2018-12-02T23:19:01Z | 2018-12-02T23:19:01Z | 2018-12-02T23:19:10Z |
REF/API: DatetimeTZDtype | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 7617ad5b428a2..93ac9caa42e3e 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1125,6 +1125,7 @@ Deprecations
- :func:`pandas.types.is_period` is deprecated in favor of `pandas.types.is_period_dtyp... | A cleanup of DatetimeTZDtype
* Remove magic constructor from string. It seemed dangerous to overload `unit` with either `unit` or a full `datetime64[ns, tz]` string. This required changing `DatetimeTZDtype.construct_from_string` and changing a number of places to use `construct_from_string` rather than the main `__n... | https://api.github.com/repos/pandas-dev/pandas/pulls/23990 | 2018-11-29T03:12:23Z | 2018-12-03T23:54:05Z | 2018-12-03T23:54:05Z | 2018-12-03T23:54:10Z |
CLN: remove unused import causing flake8 error on master | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 6dcbedfa112bb..7391190b5f192 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -7,7 +7,6 @@
"""
import collections
-import copy
import numpy as np
| Cleanup in #23971 removed the last use of the `copy` module, so `flake8` is now failing master due to an unused import. This fixes master by removing the import.
- [ ] 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/23989 | 2018-11-29T00:16:21Z | 2018-11-29T00:29:59Z | 2018-11-29T00:29:59Z | 2018-11-29T00:30:30Z |
bug fix: parameter name changed to use_threads in read_feather | diff --git a/pandas/io/feather_format.py b/pandas/io/feather_format.py
index 96ebca16d1892..c7afe673e9870 100644
--- a/pandas/io/feather_format.py
+++ b/pandas/io/feather_format.py
@@ -116,6 +116,6 @@ def read_feather(path, use_threads=True):
int_use_threads = int(use_threads)
if int_use_threads < 1:
... | Bug:
```python
>>> import pandas as pd
>>> pd.read_feather('tmp/test')
...
```
```bash
in read_feather(path, nthreads)
110 return feather.read_dataframe(path)
111
--> 112 return feather.read_dataframe(path, nthreads=nthreads)
TypeError: read_feather() got an unexpected keyword argument... | https://api.github.com/repos/pandas-dev/pandas/pulls/23987 | 2018-11-28T23:51:25Z | 2018-11-28T23:54:43Z | null | 2018-11-28T23:54:43Z |
CLN: Add missing types to tslibs/conversion.pyx | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index bf5429c39e8fe..67c2793e4bcef 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -4,7 +4,7 @@ from cython import Py_ssize_t
import numpy as np
cimport numpy as cnp
-from numpy cimport i... | Again just variables that were not typed, and removing some unused variables. | https://api.github.com/repos/pandas-dev/pandas/pulls/23984 | 2018-11-28T23:22:12Z | 2018-11-29T12:46:43Z | 2018-11-29T12:46:43Z | 2018-12-02T04:13:14Z |
TST: fix fixture for numpy dtypes | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 29c3abf4d1e1b..20f97bdec1107 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -386,8 +386,17 @@ def tz_aware_fixture(request):
COMPLEX_DTYPES = [complex, "complex64", "complex128"]
STRING_DTYPES = [str, 'str', 'U']
+DATETIME_DTYPES = ['datetime64... | - [x] split off from #23982
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This was one of the things I stumbled over while working on #23982. There's a fixture for all_numpy_dtypes that got introduced in #21899, but it's a lie - it doesn't cover (nearly) all numpy ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23983 | 2018-11-28T22:29:59Z | 2018-11-29T22:01:48Z | 2018-11-29T22:01:48Z | 2018-11-29T22:33:15Z |
TST: add test coverage for maybe_promote | diff --git a/pandas/tests/dtypes/cast/test_promote.py b/pandas/tests/dtypes/cast/test_promote.py
index 1989ab3f93e89..5c61574eddb50 100644
--- a/pandas/tests/dtypes/cast/test_promote.py
+++ b/pandas/tests/dtypes/cast/test_promote.py
@@ -504,6 +504,16 @@ def test_maybe_promote_bytes_with_any(bytes_dtype, any_numpy_dtype... | - [x] first step for #23833
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] fixes a regression that was silently introduced in #23796 due to lack of tests
The errors I found for `core.dtypes.cast.maybe_promote` in #23833 were just scratching the surface. I sp... | https://api.github.com/repos/pandas-dev/pandas/pulls/23982 | 2018-11-28T22:21:35Z | 2019-10-11T15:13:02Z | 2019-10-11T15:13:02Z | 2019-10-26T18:22:15Z |
PERF: ascii c string functions | diff --git a/LICENSES/MUSL_LICENSE b/LICENSES/MUSL_LICENSE
new file mode 100644
index 0000000000000..a8833d4bc4744
--- /dev/null
+++ b/LICENSES/MUSL_LICENSE
@@ -0,0 +1,132 @@
+musl as a whole is licensed under the following standard MIT license:
+
+----------------------------------------------------------------------
... | - [x] closes #23516
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This ends up being kind of hairy - open to suggestions on a better fix. cc @dragoljub, @cgohlke
Timings
```python
df = pd.DataFrame(np.random.randn(1000000, 10),
... | https://api.github.com/repos/pandas-dev/pandas/pulls/23981 | 2018-11-28T22:16:22Z | 2018-12-05T20:21:24Z | 2018-12-05T20:21:23Z | 2018-12-05T20:21:26Z |
isort tests/reshape, plotting, sparse | diff --git a/pandas/tests/plotting/common.py b/pandas/tests/plotting/common.py
index f41a3a10604af..4ca916a0aa4e4 100644
--- a/pandas/tests/plotting/common.py
+++ b/pandas/tests/plotting/common.py
@@ -1,25 +1,28 @@
#!/usr/bin/env python
# coding: utf-8
-import pytest
import os
import warnings
-from pandas impor... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23976 | 2018-11-28T19:05:24Z | 2018-11-28T23:42:41Z | null | 2018-11-28T23:42:52Z |
Fix build by removing flake8-rst | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 45cb1708258d7..e24d668055e2f 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -46,11 +46,11 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
flake8 pandas/_libs --filename=*.pxi.in,*.pxd --select=E501,E302,E203,E111,E114,E221,E303,E231,E126,F403
... | Seems like `flake8-rst==0.4.2` is not available in conda anymore. This is making the Travis build fail. Newer versions of `flake8-rst` are not usable yet, as they validate more things than `0.4.2` and validating our docs would fail the CI too.
We're working on fixing all the flake8-rst linting problems in the docs, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23975 | 2018-11-28T18:30:34Z | 2018-11-29T10:21:27Z | null | 2018-11-29T10:21:27Z |
CLN: keyerror in versioneer error message | diff --git a/pandas/_version.py b/pandas/_version.py
index 036c927df45d3..d000539421b91 100644
--- a/pandas/_version.py
+++ b/pandas/_version.py
@@ -238,14 +238,14 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command):
# tag
full_tag = mo.group(1)
if not full_tag.star... | broken formatting code from the cleanup in #18010
Not sure if this can be realistically tested - something weird in my local git causing tags to not come through - only impacts dev version reporting.
before:
```python-tb
import pandas as pd # import fails
~\Documents\python-dev\pandas\pandas\__init__.py in... | https://api.github.com/repos/pandas-dev/pandas/pulls/23974 | 2018-11-28T17:55:08Z | 2018-11-28T22:22:18Z | 2018-11-28T22:22:18Z | 2018-11-28T22:22:21Z |
Collect methods in generic/frame/series by purpose | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 688f0226dcdba..b4b8d151151bd 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -369,6 +369,9 @@ def _constructor_expanddim(self):
from pandas.core.panel import Panel
return Panel
+ # -------------------------------------... | Analogous to #23961. Less aggressive since these classes are massive.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23973 | 2018-11-28T17:29:02Z | 2018-11-28T22:25:10Z | 2018-11-28T22:25:10Z | 2018-11-28T22:39:00Z |
Groupby Whitelist Cleanup | diff --git a/pandas/core/groupby/base.py b/pandas/core/groupby/base.py
index a148f7e0cab87..ebba4a0a9395d 100644
--- a/pandas/core/groupby/base.py
+++ b/pandas/core/groupby/base.py
@@ -69,35 +69,22 @@ def _gotitem(self, key, ndim, subset=None):
# special case to prevent duplicate plots when catching exceptions when
... | All of these methods are defined on the base GroupBy class so these essentially are no-ops in current state.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23972 | 2018-11-28T14:47:10Z | 2018-12-25T18:06:26Z | 2018-12-25T18:06:26Z | 2018-12-26T23:51:24Z |
GroupBy Cleanup | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index ada9c5d456a77..a17e2ce7f1ef5 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -826,8 +826,9 @@ def _aggregate_multiple_funcs(self, arg, _level):
for name, func in arg:
obj = self
... | Random Str formatting changes and removal of unneeded subclass overrides | https://api.github.com/repos/pandas-dev/pandas/pulls/23971 | 2018-11-28T14:45:33Z | 2018-11-28T22:27:41Z | 2018-11-28T22:27:41Z | 2018-11-28T22:28:01Z |
ERR: Raise the correct error for to_datetime() | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index a2abda019812a..3429bcb8bd5cd 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1313,12 +1313,14 @@ Datetimelike
- Bug in :class:`DatetimeIndex` where calling ``np.array(dtindex, dtype=object)`` wou... | - [x] closes #23830
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Verified that it does not affect the fixes by #19529 (for issue #19382) | https://api.github.com/repos/pandas-dev/pandas/pulls/23969 | 2018-11-28T10:43:00Z | 2019-02-27T23:50:52Z | null | 2019-02-28T04:02:44Z |
GH20591 read_csv raise ValueError for bool columns with missing values (C engine) | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index c74bcb505b6be..62f036f4fcf0f 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -330,6 +330,7 @@ Backwards incompatible API changes
- :meth:`Series.str.cat` will now raise if `others` is a `set` (:is... | - [X] closes #20591
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
As explained in the referenced issue, trying to cast missing values to bool dtype should result in a ValueError similar to when casting to int | https://api.github.com/repos/pandas-dev/pandas/pulls/23968 | 2018-11-28T08:11:46Z | 2018-12-02T16:22:01Z | 2018-12-02T16:22:01Z | 2018-12-02T16:22:04Z |
CLN: Add missing types to tslib.pyx | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index c5bc969ede3c9..ddeaffbfb3cc0 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -76,7 +76,8 @@ cdef inline object create_time_from_ts(
@cython.wraparound(False)
@cython.boundscheck(False)
-def ints_to_pydatetime(int64_t[:] arr, tz=N... | These are just variables that were missing type declarations.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23966 | 2018-11-28T06:41:59Z | 2018-11-28T13:45:35Z | 2018-11-28T13:45:35Z | 2018-11-28T18:14:02Z |
BUG: CategoricalIndex allows reindexing with non-unique CategoricalIndex | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index f888648a9363e..a6171d39ae27f 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1090,6 +1090,7 @@ Other API Changes
- :meth:`Categorical.searchsorted` now raises a ``KeyError`` rather that a ``Value... | `CategoricalIndex.reindex()` throws a `ValueError` if the target index is non-unique *and* not also a `CategoricalIndex`. This means a non-unique `CategoricalIndex` can be used to reindex, resulting in duplicated data:
```
In [1]: import pandas as pd
categorical_index = pd.CategoricalIndex(['bar', 'foo', 'ba... | https://api.github.com/repos/pandas-dev/pandas/pulls/23963 | 2018-11-28T02:12:03Z | 2018-12-02T23:10:44Z | 2018-12-02T23:10:44Z | 2018-12-02T23:10:48Z |
Collect Index methods by purpose: rendering, constructors, setops... | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 22c348acaf341..e8a2dd4879f20 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -244,6 +244,9 @@ def _outer_indexer(self, left, right):
str = CachedAccessor("str", StringMethods)
+ # ---------------------... | Zero changes to the contents of _any_ methods, just collecting them in reasonably-scoped sections. | https://api.github.com/repos/pandas-dev/pandas/pulls/23961 | 2018-11-28T01:09:02Z | 2018-11-28T17:45:47Z | 2018-11-28T17:45:47Z | 2018-11-28T18:47:57Z |
isort plotting, a handful of test dirs | diff --git a/pandas/plotting/_compat.py b/pandas/plotting/_compat.py
index 385e88d58cc26..48900c088a125 100644
--- a/pandas/plotting/_compat.py
+++ b/pandas/plotting/_compat.py
@@ -1,9 +1,9 @@
# being a bit too dynamic
# pylint: disable=E1101
from __future__ import division
-import operator
from distutils.version... | - [ ] 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/23957 | 2018-11-27T22:17:38Z | 2018-11-28T13:13:28Z | 2018-11-28T13:13:28Z | 2018-11-28T14:37:45Z |
Ensure that DatetimeArray keeps reference to original data | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index 9d6daf3d42523..bf5429c39e8fe 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -99,10 +99,13 @@ def ensure_datetime64ns(arr: ndarray, copy: bool=True):
ivalues = arr.view(np.int64)... | (cherry picked from commit 49f6495ba5ceef35a7a962f20e8b863c544592b7)
This avoids a segfault I (and possibly @jbrockmendel) were seeing on our datetimearray branches from us freeing a region of memory we didn't allocate.
I haven't really groked things yet, but `_libs/reduction.pyx::Slider` is doing some strange th... | https://api.github.com/repos/pandas-dev/pandas/pulls/23956 | 2018-11-27T22:07:12Z | 2018-11-28T16:22:24Z | 2018-11-28T16:22:24Z | 2018-11-28T16:22:27Z |
Implement TimedeltaArray._from_sequence | diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py
index 3f14b61c1ea6c..856a01e41ce13 100644
--- a/pandas/core/arrays/timedeltas.py
+++ b/pandas/core/arrays/timedeltas.py
@@ -163,11 +163,17 @@ def _simple_new(cls, values, freq=None, dtype=_TD_DTYPE):
return result
def __new... | and have both `TimedeltaArray.__new__` and `TimedeltaIndex.__new__` dispatch to it
One test will fail until #23789 is merged.
- [ ] 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/23953 | 2018-11-27T20:46:24Z | 2018-11-29T22:04:15Z | 2018-11-29T22:04:15Z | 2018-11-29T22:34:01Z |
BUG: Fix lxml import in show_versions | diff --git a/pandas/util/_print_versions.py b/pandas/util/_print_versions.py
index 3016bf04b5258..a5c86c2cc80b3 100644
--- a/pandas/util/_print_versions.py
+++ b/pandas/util/_print_versions.py
@@ -85,7 +85,7 @@ def show_versions(as_json=False):
("xlrd", lambda mod: mod.__VERSION__),
("xlwt", lambda mo... | Fixed lxml import issue
- [x] closes #23934
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` | https://api.github.com/repos/pandas-dev/pandas/pulls/23949 | 2018-11-27T17:41:57Z | 2018-11-29T12:23:40Z | 2018-11-29T12:23:40Z | 2018-11-29T12:23:46Z |
DOC: fix double Returns section in set_index docstring | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 9481689d4099a..6a3c69c2965a5 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3971,10 +3971,6 @@ def set_index(self, keys, drop=True, append=False, inplace=False,
DataFrame.reindex : Change to new indices or expand indices.
... | Should fix the broken doc build | https://api.github.com/repos/pandas-dev/pandas/pulls/23948 | 2018-11-27T13:31:52Z | 2018-11-27T17:15:29Z | 2018-11-27T17:15:29Z | 2018-11-27T21:09:21Z |
Fixing shift() for ExtensionArray | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 0a066399e27ca..74940e8985ef3 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -914,6 +914,7 @@ update the ``ExtensionDtype._metadata`` tuple to match the signature of your
- Added ``ExtensionDtype.... | - [x] closes #23911
- [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/23947 | 2018-11-27T09:59:01Z | 2018-12-09T12:09:23Z | 2018-12-09T12:09:22Z | 2018-12-09T12:09:32Z |
Fixing shift() for ExtensionArray | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index eb2fef482ff17..9f7f4c2b81645 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -449,10 +449,12 @@ def shift(self, periods=1):
"""
# Note: this implementation assumes that `self.dtype.na_value` can be
... | - [x] closes #23911
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/23945 | 2018-11-27T08:35:12Z | 2018-11-27T09:50:36Z | null | 2018-11-27T09:51:02Z |
CLN: Fixturize test_base.py | diff --git a/pandas/tests/conftest.py b/pandas/tests/conftest.py
new file mode 100644
index 0000000000000..fc6c6413d3358
--- /dev/null
+++ b/pandas/tests/conftest.py
@@ -0,0 +1,67 @@
+import numpy as np
+import pytest
+
+from pandas import Series
+import pandas.util.testing as tm
+
+_all_indices = [tm.makeBoolIndex(10,... | Partially Fixes #23877
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
@jreback Could you please review the fixtures, I haven't replaced all the `indexes` if the changes are correct I would fixturize other test cases | https://api.github.com/repos/pandas-dev/pandas/pulls/23943 | 2018-11-27T07:10:52Z | 2019-02-27T23:50:05Z | null | 2019-02-27T23:50:05Z |
BUG/ENH - base argument no longer ignored in period resample | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index bf74d00bf5c42..7abb8b2ecd756 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -356,6 +356,7 @@ Other Enhancements
- :meth:`round`, :meth:`ceil`, and meth:`floor` for :class:`DatetimeIndex` and :cla... | - [ ] closes #23882
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23941 | 2018-11-27T05:25:20Z | 2018-12-14T14:57:29Z | 2018-12-14T14:57:29Z | 2018-12-14T14:57:34Z |
CLN: Cython Py2/3 Compatible Imports | diff --git a/pandas/_libs/algos.pxd b/pandas/_libs/algos.pxd
index 5df1e381ea3ce..4bca5b33a3c62 100644
--- a/pandas/_libs/algos.pxd
+++ b/pandas/_libs/algos.pxd
@@ -1,4 +1,4 @@
-from util cimport numeric
+from pandas._libs.util cimport numeric
cdef inline Py_ssize_t swap(numeric *a, numeric *b) nogil:
diff --git a... | - [ ] progress towards #23927
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
@jbrockmendel
| https://api.github.com/repos/pandas-dev/pandas/pulls/23940 | 2018-11-27T03:31:31Z | 2018-12-26T23:50:50Z | 2018-12-26T23:50:50Z | 2018-12-26T23:51:44Z |
DOC: fix DataFrame.replace and DataFrame.set_index docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 45cb1708258d7..5d0356dc8be9c 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -147,7 +147,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
MSG='Doctests frame.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/frame.py \
- ... | - [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Based on #22459. Fix the docstring for DataFrame.replace and DataFrame.set_index. I put them together since set_index was quite simple: there was two Returns sections.
I also updated ci/code_checks.sh. DataFrame.stack... | https://api.github.com/repos/pandas-dev/pandas/pulls/23939 | 2018-11-27T01:17:02Z | 2018-11-29T13:55:31Z | 2018-11-29T13:55:30Z | 2018-12-02T11:33:25Z |
TST: Suppress dateutil DeprecationWarning in setup.cfg | diff --git a/pandas/plotting/_compat.py b/pandas/plotting/_compat.py
index 385e88d58cc26..48900c088a125 100644
--- a/pandas/plotting/_compat.py
+++ b/pandas/plotting/_compat.py
@@ -1,9 +1,9 @@
# being a bit too dynamic
# pylint: disable=E1101
from __future__ import division
-import operator
from distutils.version... | Then do some isorts for kicks | https://api.github.com/repos/pandas-dev/pandas/pulls/23938 | 2018-11-27T01:09:21Z | 2018-11-27T04:01:39Z | null | 2018-11-27T04:17:47Z |
DEPR: passing timedelta-like to DatetimeIndex constructor, xref #23675 | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 6fd0a224b81b2..1127d02f0a822 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1043,6 +1043,7 @@ Deprecations
`use_threads` to reflect the changes in pyarrow 0.11.0. (:issue:`23053`)
- :func:`pa... | Implements the agreed-upon portions of #23675 so we can keep moving the ball down the field.
- [ ] 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/23937 | 2018-11-27T01:02:42Z | 2018-11-27T01:43:18Z | 2018-11-27T01:43:18Z | 2018-11-27T01:45:28Z |
DOC: fix DataFrame.quantile docstring and doctests | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 953547f72d3e1..8462d9ad83431 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -175,7 +175,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
MSG='Doctests frame.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/frame.py \
- ... | - [x] closes #22898
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Based on #22459. Fix the docstring for DataFrame.quantile. I also updated `ci/code_checks.sh`. | https://api.github.com/repos/pandas-dev/pandas/pulls/23936 | 2018-11-27T00:51:14Z | 2018-12-09T15:55:49Z | 2018-12-09T15:55:49Z | 2018-12-09T18:49:39Z |
Add asv benchmarks for essential functions | diff --git a/asv_bench/benchmarks/binary_ops.py b/asv_bench/benchmarks/binary_ops.py
index dfdebec86d67c..22b8ed80f3d07 100644
--- a/asv_bench/benchmarks/binary_ops.py
+++ b/asv_bench/benchmarks/binary_ops.py
@@ -52,6 +52,8 @@ def setup(self):
np.iinfo(np.int16).max,
... | I've jury-rigged `asv` with `coverage` to enable automatic identification of what parts of the code base are lacking `asv` benchmark coverage and found a number of essential functions on my first pass:
- `pd.DataFrame.rename()`
- `pd.cut()` / `pd.qcut()`
- `.dot()`
- Any `.plot()` method other than `line`
- L... | https://api.github.com/repos/pandas-dev/pandas/pulls/23935 | 2018-11-26T22:42:00Z | 2018-11-27T22:27:16Z | 2018-11-27T22:27:16Z | 2018-11-28T00:48:37Z |
TST/CI: Unify CI test scripts (single and multi) and simplify the system | diff --git a/.circleci/config.yml b/.circleci/config.yml
index dc4162a0674fd..6b516b21722ac 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -34,5 +34,5 @@ jobs:
command: |
export PATH="$MINICONDA_DIR/bin:$PATH"
source activate pandas-dev
- echo "pytest --s... | - [X] refs #23658
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
The goal of this PR is:
- Avoid repetitive code by merging `ci/script_single.sh` and `ci/script_multi.sh`
- Simplify calls to different tests (mainly slow vs not slow), by avoid... | https://api.github.com/repos/pandas-dev/pandas/pulls/23924 | 2018-11-26T11:33:03Z | 2018-11-30T21:33:43Z | 2018-11-30T21:33:43Z | 2018-11-30T21:33:47Z |
Proper boxing of scalars in `DataFrame.to_dict` | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index d0dddb19f4c93..30be5e496263c 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1342,6 +1342,7 @@ MultiIndex
I/O
^^^
+
.. _whatsnew_0240.bug_fixes.nan_with_str_dtype:
Proper handling of `np.N... | - [x] closes #23753
- [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/23921 | 2018-11-26T09:37:53Z | 2018-12-02T19:20:17Z | 2018-12-02T19:20:17Z | 2018-12-02T19:20:22Z |
DEPR: Deprecate passing range-like arguments to DatetimeIndex, TimedeltaIndex | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 7e63fff16bc23..c74bcb505b6be 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1076,6 +1076,7 @@ Deprecations
- Timezone converting a tz-aware ``datetime.datetime`` or :class:`Timestamp` with :clas... | Also `verify_integrity` since allowing that to be False complicates things, and internally if its False we should be using simple_new anyway
- [x] closes #20535
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23919 | 2018-11-26T03:31:46Z | 2018-11-28T23:34:58Z | 2018-11-28T23:34:57Z | 2018-11-28T23:38:12Z |
CLN: Remove/deprecate unused/misleading dtype functions | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index b32d214c03126..d0dddb19f4c93 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1048,6 +1048,8 @@ Deprecations
- The ``keep_tz=False`` option (the default) of the ``keep_tz`` keyword of
:meth:`Da... | For "misleading" the leading case is `is_int_or_datetime_dtype`, which includes timedelta64 but excludes datetime64tz.
Several branches in `lib.infer_dtype` are unreachable, are removed.
`is_datetimetz` is redundant with `is_datetime64tz_dtype`, is deprecated, and internal uses of it are changed.
`is_period` i... | https://api.github.com/repos/pandas-dev/pandas/pulls/23917 | 2018-11-26T03:11:25Z | 2018-11-27T18:01:54Z | 2018-11-27T18:01:54Z | 2018-11-27T18:48:53Z |
REF: DatetimeIndex constructor fixups | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index b4a13d3d0ada9..9d6daf3d42523 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -866,8 +866,8 @@ def tz_localize_to_utc(ndarray[int64_t] vals, object tz, object ambiguous=None,
- ... | Small non-central pieces broken off from #23675. | https://api.github.com/repos/pandas-dev/pandas/pulls/23916 | 2018-11-26T01:56:38Z | 2018-11-26T13:50:52Z | 2018-11-26T13:50:52Z | 2018-11-26T16:57:05Z |
BUG - remove scaling multiplier from `Period` diff result | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 4e12b22c8ccac..4ea67d1c883db 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1146,7 +1146,9 @@ from :class:`Period`, :class:`PeriodIndex`, and in some cases
:class:`Timestamp`, :class:`DatetimeIn... | - [ ] closes #23878
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23915 | 2018-11-26T01:35:57Z | 2018-12-09T14:02:18Z | 2018-12-09T14:02:18Z | 2018-12-09T14:02:21Z |
Fix the docstring of xs in pandas/core/generic.py #22892 | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 5bb364e1d1605..d4012d65580c6 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3270,71 +3270,102 @@ class max_speed
def xs(self, key, axis=0, level=None, drop_level=True):
"""
- Returns a cross-section (row(s) ... | - [X] closes #22892
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Hello @datapythonista !
As requested in #22892 , I corrected the docstring of the pandas/core/generic.py xs function to pass correctly the following command :
./scripts/... | https://api.github.com/repos/pandas-dev/pandas/pulls/23913 | 2018-11-25T23:07:56Z | 2018-12-02T18:06:08Z | 2018-12-02T18:06:08Z | 2018-12-02T18:20:21Z |
TST: split up pandas/tests/indexing/test_multiindex.py | diff --git a/pandas/tests/indexing/multiindex/__init__.py b/pandas/tests/indexing/multiindex/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/indexing/multiindex/conftest.py b/pandas/tests/indexing/multiindex/conftest.py
new file mode 100644
index 0000000000000..f578fe7c0f60... | - [n/a ] follow on from #23797
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ n/a] whatsnew entry
only whole tests moved, tests have not been split up. this and the removal of classes is left for a follow-on PR. | https://api.github.com/repos/pandas-dev/pandas/pulls/23912 | 2018-11-25T21:25:23Z | 2018-11-29T13:51:05Z | 2018-11-29T13:51:05Z | 2018-11-30T09:21:58Z |
DOC: Fix PEP-8 issues in basics.rst | diff --git a/doc/source/basics.rst b/doc/source/basics.rst
index 8229563187e83..69d1e105f62ab 100644
--- a/doc/source/basics.rst
+++ b/doc/source/basics.rst
@@ -5,6 +5,7 @@
import numpy as np
import pandas as pd
+
np.set_printoptions(precision=4, suppress=True)
pd.options.display.max_rows = 15
@@ -1... | https://api.github.com/repos/pandas-dev/pandas/pulls/23910 | 2018-11-25T19:58:13Z | 2018-11-25T21:20:49Z | 2018-11-25T21:20:49Z | 2018-11-25T21:47:44Z | |
DOC: Fix PEP-8 issues in gotchas.rst | diff --git a/doc/source/gotchas.rst b/doc/source/gotchas.rst
index 0eb2a4eed8581..c62b836ed1f33 100644
--- a/doc/source/gotchas.rst
+++ b/doc/source/gotchas.rst
@@ -9,14 +9,11 @@ Frequently Asked Questions (FAQ)
:suppress:
import numpy as np
+ import pandas as pd
+
np.random.seed(123456)
np.set_prin... | https://api.github.com/repos/pandas-dev/pandas/pulls/23909 | 2018-11-25T19:56:54Z | 2018-11-25T21:20:32Z | 2018-11-25T21:20:32Z | 2018-11-25T21:48:18Z | |
DOC: Fix PEP-8 issues in 10min.rst | diff --git a/doc/source/10min.rst b/doc/source/10min.rst
index b5938a24ce6c5..ddcb9b5fc26c7 100644
--- a/doc/source/10min.rst
+++ b/doc/source/10min.rst
@@ -5,19 +5,19 @@
.. ipython:: python
:suppress:
+ import os
import numpy as np
+
import pandas as pd
- import os
+
np.random.seed(123456)
n... | https://api.github.com/repos/pandas-dev/pandas/pulls/23908 | 2018-11-25T19:52:23Z | 2018-11-27T02:51:35Z | 2018-11-27T02:51:35Z | 2018-12-17T13:51:31Z | |
DOC: Fix PEP-8 issues in sparse.rst | diff --git a/doc/source/sparse.rst b/doc/source/sparse.rst
index 884512981e1c9..5a4a211a5e6b4 100644
--- a/doc/source/sparse.rst
+++ b/doc/source/sparse.rst
@@ -5,9 +5,9 @@
:suppress:
import numpy as np
- np.random.seed(123456)
import pandas as pd
- import pandas.util.testing as tm
+
+ np.random.see... | https://api.github.com/repos/pandas-dev/pandas/pulls/23907 | 2018-11-25T19:50:28Z | 2018-11-25T21:20:06Z | 2018-11-25T21:20:06Z | 2018-11-25T21:48:46Z | |
DOC: Change code-block to ipython in r_interface.rst | diff --git a/doc/source/r_interface.rst b/doc/source/r_interface.rst
index d0b2601668069..f40f9199aaf66 100644
--- a/doc/source/r_interface.rst
+++ b/doc/source/r_interface.rst
@@ -33,10 +33,11 @@ See also the documentation of the `rpy2 <http://rpy2.bitbucket.org/>`__ project:
In the remainder of this page, a few ex... | The documentation mainly uses the `.. ipython::` directive. This changes
the code-blocks to ipython blocks so there is a unified visual style.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23906 | 2018-11-25T18:20:32Z | 2018-11-27T01:31:49Z | 2018-11-27T01:31:49Z | 2018-12-02T19:30:51Z |
DOC: Fix PEP-8 issues in timedeltas.rst | diff --git a/doc/source/timedeltas.rst b/doc/source/timedeltas.rst
index e602e45784f4a..8dab39aafbf67 100644
--- a/doc/source/timedeltas.rst
+++ b/doc/source/timedeltas.rst
@@ -4,18 +4,12 @@
.. ipython:: python
:suppress:
- import datetime
import numpy as np
import pandas as pd
+
np.random.seed(123... | - Replace `from pandas.tseries.offsets import *` with `pd.offsets.<ClassName>` for better readability.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23905 | 2018-11-25T18:12:29Z | 2018-11-27T01:35:22Z | 2018-11-27T01:35:22Z | 2018-12-02T19:30:24Z |
DOC: Fix PEP-8 issues in text.rst | diff --git a/doc/source/text.rst b/doc/source/text.rst
index d01c48695d0d6..d69888e406f0a 100644
--- a/doc/source/text.rst
+++ b/doc/source/text.rst
@@ -6,10 +6,9 @@
import numpy as np
import pandas as pd
- randn = np.random.randn
+
np.set_printoptions(precision=4, suppress=True)
- from pandas.compat ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23904 | 2018-11-25T18:09:10Z | 2018-11-25T21:19:23Z | 2018-11-25T21:19:23Z | 2018-11-25T21:49:46Z | |
DOC: Fix PEP-8 issues in internals.rst | diff --git a/doc/source/internals.rst b/doc/source/internals.rst
index fce99fc633440..fdf18aa47416b 100644
--- a/doc/source/internals.rst
+++ b/doc/source/internals.rst
@@ -6,9 +6,10 @@
:suppress:
import numpy as np
+ import pandas as pd
+
np.random.seed(123456)
np.set_printoptions(precision=4, supp... | https://api.github.com/repos/pandas-dev/pandas/pulls/23903 | 2018-11-25T18:07:33Z | 2018-11-25T21:18:44Z | 2018-11-25T21:18:44Z | 2018-11-25T21:50:15Z | |
DOC: Fix PEP-8 issues in comparison_with_sas.rst | diff --git a/doc/source/comparison_with_sas.rst b/doc/source/comparison_with_sas.rst
index 318bffe44a81b..c4d121c10538c 100644
--- a/doc/source/comparison_with_sas.rst
+++ b/doc/source/comparison_with_sas.rst
@@ -105,9 +105,7 @@ and the values are the data.
.. ipython:: python
- df = pd.DataFrame({
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23902 | 2018-11-25T18:06:05Z | 2018-11-25T21:49:58Z | 2018-11-25T21:49:58Z | 2018-11-25T22:19:27Z | |
DOC: Remove unused ipython directive in developer.rst | diff --git a/doc/source/developer.rst b/doc/source/developer.rst
index f76af394abc48..6be58f20087b5 100644
--- a/doc/source/developer.rst
+++ b/doc/source/developer.rst
@@ -2,15 +2,6 @@
.. currentmodule:: pandas
-.. ipython:: python
- :suppress:
-
- import numpy as np
- np.random.seed(123456)
- np.set_prin... | https://api.github.com/repos/pandas-dev/pandas/pulls/23901 | 2018-11-25T18:05:22Z | 2018-11-25T21:18:22Z | 2018-11-25T21:18:22Z | 2018-11-25T22:18:57Z | |
DOC: Fix PEP-8 issues in groupby.rst | diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst
index fb96afaf7d796..de188846cce76 100644
--- a/doc/source/groupby.rst
+++ b/doc/source/groupby.rst
@@ -5,15 +5,15 @@
:suppress:
import numpy as np
+ import matplotlib.pyplot as plt
+
+ import pandas as pd
+
+ plt.close('all')
+
np.random.... | https://api.github.com/repos/pandas-dev/pandas/pulls/23900 | 2018-11-25T18:04:55Z | 2018-11-25T21:50:56Z | 2018-11-25T21:50:56Z | 2018-11-25T22:19:12Z | |
DOC: Fix PEP-8 issues in visualization.rst | diff --git a/doc/source/visualization.rst b/doc/source/visualization.rst
index dd8ccfcfd28ac..050d754d0ac8b 100644
--- a/doc/source/visualization.rst
+++ b/doc/source/visualization.rst
@@ -6,13 +6,11 @@
import numpy as np
import pandas as pd
+
np.random.seed(123456)
np.set_printoptions(precision=4, su... | https://api.github.com/repos/pandas-dev/pandas/pulls/23899 | 2018-11-25T17:55:11Z | 2018-11-25T21:17:53Z | 2018-11-25T21:17:53Z | 2018-11-25T22:19:46Z | |
DOC: Fix PEP-8 issues in timeseries.rst | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index c962486711cf3..bca7b6a601dd2 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -4,18 +4,12 @@
.. ipython:: python
:suppress:
- import datetime
import numpy as np
import pandas as pd
- from pandas import o... | - Replace `from pandas import offsets` and `from pandas.tseries.offsets import *` with
`pd.offsets.<ClassName>`.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23898 | 2018-11-25T17:41:33Z | 2018-12-02T17:21:12Z | 2018-12-02T17:21:12Z | 2018-12-02T19:30:33Z |
DOC: Fix PEP-8 issues in reshaping.rst | diff --git a/doc/source/reshaping.rst b/doc/source/reshaping.rst
index ff867a2ddfe6d..8650b5ed1ba37 100644
--- a/doc/source/reshaping.rst
+++ b/doc/source/reshaping.rst
@@ -5,9 +5,10 @@
:suppress:
import numpy as np
- np.random.seed(123456)
import pandas as pd
- pd.options.display.max_rows=15
+
+ np... | https://api.github.com/repos/pandas-dev/pandas/pulls/23897 | 2018-11-25T17:34:55Z | 2018-11-25T21:16:50Z | 2018-11-25T21:16:50Z | 2018-11-25T22:18:42Z | |
[Bug] Comparison between two PeriodIndexes doesn't validate length (GH #23078) | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 1bc1a28ef0fe9..a6e32e574ef7d 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1319,6 +1319,7 @@ Datetimelike
- Bug in :class:`DatetimeIndex` and :class:`TimedeltaIndex` where indexing with ``Ellip... | - [x] closes #23078
- [x] tests added
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23896 | 2018-11-25T14:23:09Z | 2018-12-27T11:30:15Z | null | 2018-12-27T11:30:15Z |
DOC: Capitalize docstring summaries | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index 4d612a6f43107..09b66bba61018 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -97,8 +97,8 @@ _no_input = object()
@cython.wraparound(False)
def ints_to_pytimedelta(int64_t[:] arr, box=... | Fixes #23881
- [x] closes #23881
- [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/23895 | 2018-11-25T09:31:33Z | 2018-11-25T09:34:51Z | null | 2018-11-25T09:35:08Z |
MAINT Use list and dict comprehension | diff --git a/pandas/core/computation/align.py b/pandas/core/computation/align.py
index f7f40a66af9c6..951174648091f 100644
--- a/pandas/core/computation/align.py
+++ b/pandas/core/computation/align.py
@@ -30,9 +30,8 @@ def _align_core_single_unary_op(term):
def _zip_axes_from_type(typ, new_axes):
- axes = {}
- ... | This uses list and dict comprehension in places where it doesn't hurt readability. It should be a bit faster and less verbose.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23894 | 2018-11-25T07:26:57Z | 2018-11-29T13:54:17Z | 2018-11-29T13:54:17Z | 2018-11-29T13:54:19Z |
Fix format of advanced.rst according to PEP-8 standard | diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst
index 563c869eff54d..17214ab62b278 100644
--- a/doc/source/advanced.rst
+++ b/doc/source/advanced.rst
@@ -9,7 +9,7 @@
import pandas as pd
np.random.seed(123456)
np.set_printoptions(precision=4, suppress=True)
- pd.options.display.max_rows=15
+... | - [x] closes #23790
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23893 | 2018-11-25T06:02:01Z | 2018-11-25T21:22:18Z | 2018-11-25T21:22:18Z | 2018-11-25T22:43:22Z |
DOC: fix DataFrame.nunique docstring and doctests | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 86e7003681e98..6c49455d5171d 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -148,7 +148,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
MSG='Doctests frame.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/frame.py \
- ... | - [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Based on #22459. Fix the docstring for DataFrame.nunique. I also updated `ci/code_checks.sh`.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23891 | 2018-11-25T01:44:15Z | 2018-11-25T08:44:15Z | 2018-11-25T08:44:15Z | 2018-11-25T14:05:34Z |
WIP: implement reductions for DatetimeArray/TimedeltaArray/PeriodArray | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 83ee335aa5465..b7c88599a46c9 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -12,6 +12,7 @@
from pandas._libs.tslibs.timedeltas import Timedelta, delta_to_nanoseconds
from pandas._lib... | Some idiosyncrasies in signatures between Series vs Index make the parametrized test cases ugly. Do we want to adapt the Index reductions to have a `skipna` kwarg like the Series and EA methods?
Still needs tests for timedelta and period dtypes. | https://api.github.com/repos/pandas-dev/pandas/pulls/23890 | 2018-11-25T01:04:30Z | 2019-01-13T23:42:17Z | null | 2020-04-05T17:37:40Z |
PERF: For GH23814, return early in Categorical.__init__ | diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py
index 8a0fbc48755b5..7318b40efc8fb 100644
--- a/asv_bench/benchmarks/categoricals.py
+++ b/asv_bench/benchmarks/categoricals.py
@@ -46,6 +46,8 @@ def setup(self):
self.values_some_nan = list(np.tile(self.categories + [np.n... | - [X] closes #23814
- [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/23888 | 2018-11-24T22:57:33Z | 2018-11-30T21:37:20Z | 2018-11-30T21:37:20Z | 2018-12-01T03:21:54Z |
DOC: Capitalize docstring summaries | diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py
index d1e6d979b554c..da26966cfa94c 100644
--- a/pandas/core/arrays/timedeltas.py
+++ b/pandas/core/arrays/timedeltas.py
@@ -241,7 +241,7 @@ def _add_offset(self, other):
def _add_delta(self, delta):
"""
Add a timedel... | - [x] closes #23881
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] Solves most of the issues raised by the `validate_docstrings.py` script.
The few issues that still show up on running the script can be attributed to-
- Docstrings non-existent viz. `tserie... | https://api.github.com/repos/pandas-dev/pandas/pulls/23886 | 2018-11-24T21:07:41Z | 2018-11-27T10:16:59Z | 2018-11-27T10:16:58Z | 2018-11-27T10:17:44Z |
Implement mul, floordiv, mod, divmod, and reversed directly in TimedeltaArray | diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py
index 6a7ce7033efa0..c0cfa996810bc 100644
--- a/pandas/core/arrays/timedeltas.py
+++ b/pandas/core/arrays/timedeltas.py
@@ -2,7 +2,6 @@
from __future__ import division
from datetime import timedelta
-import operator
import warnings
... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Companion to #23829, will need rebasing after that goes through. Some overlap with #23789; this will have a smaller diff after being rebased on top of that. | https://api.github.com/repos/pandas-dev/pandas/pulls/23885 | 2018-11-24T20:38:17Z | 2018-12-03T13:24:00Z | 2018-12-03T13:24:00Z | 2018-12-03T15:22:00Z |
CLN: writers.pyx cdef cleanup | diff --git a/pandas/_libs/writers.pyx b/pandas/_libs/writers.pyx
index 4a0d1a7620fc5..6449a331689ad 100644
--- a/pandas/_libs/writers.pyx
+++ b/pandas/_libs/writers.pyx
@@ -23,7 +23,7 @@ ctypedef fused pandas_string:
@cython.boundscheck(False)
@cython.wraparound(False)
def write_csv_rows(list data, ndarray data_inde... | - Changed some `int` to `Py_ssize_t`
- Remove/add some unused/uncdef'd variables
| https://api.github.com/repos/pandas-dev/pandas/pulls/23880 | 2018-11-23T23:27:11Z | 2018-11-25T02:15:19Z | 2018-11-25T02:15:19Z | 2018-11-25T17:51:13Z |
TST: Test .loc with uint64 numbers | diff --git a/pandas/tests/frame/test_indexing.py b/pandas/tests/frame/test_indexing.py
index 78aa853f68459..b41d432cea7ca 100644
--- a/pandas/tests/frame/test_indexing.py
+++ b/pandas/tests/frame/test_indexing.py
@@ -132,6 +132,18 @@ def test_getitem_listlike(self, idx_type, levels):
with pytest.raises(KeyErro... | Closes #19399. | https://api.github.com/repos/pandas-dev/pandas/pulls/23879 | 2018-11-23T22:37:05Z | 2018-11-25T02:17:30Z | 2018-11-25T02:17:29Z | 2018-11-25T02:23:09Z |
TST: Test unnamed columns with index_col for Excel | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index d0dddb19f4c93..2fbd23352feb1 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1402,7 +1402,8 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form
- Bug in :meth:`rea... | Closes #18792.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23874 | 2018-11-23T18:39:54Z | 2018-11-28T16:21:26Z | 2018-11-28T16:21:26Z | 2018-11-28T22:58:53Z |
TST: split up pandas/tests/test_resample.py | diff --git a/pandas/tests/resample/__init__.py b/pandas/tests/resample/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/resample/test_base.py b/pandas/tests/resample/test_base.py
new file mode 100644
index 0000000000000..8d710289aecc1
--- /dev/null
+++ b/pandas/tests/resampl... | - [n/a ] precursor to #17806
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [n/a ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23872 | 2018-11-23T16:03:58Z | 2018-11-26T13:32:57Z | 2018-11-26T13:32:57Z | 2018-11-26T19:49:19Z |
Fix: Use only one blank line to separate sections or paragraphs | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index ecdad8752113a..5f7995ac649a2 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -343,7 +343,6 @@ def unique(values):
--------
pandas.Index.unique
pandas.Series.unique
-
"""
values = _ensure_arrayli... | By running `./scripts/validate_docstrings.py --errors=GL03 --format=azure`, I was able to get the list of GL03 errors with files and line numbers where these errors occurred.
I fixed a big portion of these issues so far.
@datapythonista
- [ ] closes #23870
- [x] passes `git diff upstream/master -u -- "*.py"... | https://api.github.com/repos/pandas-dev/pandas/pulls/23871 | 2018-11-23T15:44:02Z | 2018-11-23T23:56:35Z | 2018-11-23T23:56:34Z | 2018-11-25T20:26:20Z |
CI: Fixes to conda environment names | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 6e789d0aafdb4..dc4162a0674fd 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -26,7 +26,13 @@ jobs:
name: build
command: |
./ci/circle/install_circle.sh
- ./ci/circle/show_circle.sh
+ e... | - [x] closes #23851
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23866 | 2018-11-23T09:13:26Z | 2018-11-25T02:52:10Z | 2018-11-25T02:52:10Z | 2018-11-25T02:52:17Z |
ZeroDivisionError when groupby rank with method="dense" and pct=True | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 4ff3cc728f7f7..d36ddc075b91e 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1420,6 +1420,7 @@ Groupby/Resample/Rolling
- Bug in :meth:`DataFrame.expanding` in which the ``axis`` argument was not... | - [x] closes #23666
- [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/23864 | 2018-11-23T01:26:54Z | 2018-12-03T05:34:54Z | 2018-12-03T05:34:53Z | 2018-12-03T05:35:30Z |
REF/TST: Finish pytest idiom in parser tests | diff --git a/pandas/tests/io/parser/common.py b/pandas/tests/io/parser/common.py
deleted file mode 100644
index 6ce08f10e2d00..0000000000000
--- a/pandas/tests/io/parser/common.py
+++ /dev/null
@@ -1,1620 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import codecs
-from collections import OrderedDict
-import csv
-from datetime i... | Adds more idiom to the following:
* `parser/usecols` --> `parser/test_usecols`
* `parser/quoting` --> `parser/test_quoting`
* `parser/common` --> `parser/test_common`
* `parser/python_parser_only` --> `parser/test_python_parser_only`
Also:
* Finally delete `parser/test_parsers`! 🎉
* Small bug in `capture... | https://api.github.com/repos/pandas-dev/pandas/pulls/23863 | 2018-11-22T22:27:08Z | 2018-11-23T02:34:45Z | 2018-11-23T02:34:45Z | 2018-11-23T08:02:16Z |
Enhanced json normalize | diff --git a/pandas/io/json/normalize.py b/pandas/io/json/normalize.py
index fa4e35b08bf6e..d043166d416ce 100644
--- a/pandas/io/json/normalize.py
+++ b/pandas/io/json/normalize.py
@@ -25,9 +25,11 @@ def _convert_to_line_delimits(s):
return convert_json_to_lines(s)
-def nested_to_record(ds, prefix="", sep=".",... | closes #23843
closes #23861
- [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/23861 | 2018-11-22T16:07:32Z | 2019-06-17T12:24:22Z | null | 2019-07-06T14:56:20Z |
CI: Fixes to conda environment names | diff --git a/.travis.yml b/.travis.yml
index 6d31adcbf8a43..cd341a0af0c67 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -104,6 +104,7 @@ before_script:
- ci/before_script_travis.sh
script:
+ - source activate pandas-dev
- echo "script start"
- ci/run_build_docs.sh
- ci/script_single.sh
@@ -115,7 +116,7 ... | - [x] closes #23851
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23860 | 2018-11-22T15:41:25Z | 2018-11-23T09:22:17Z | null | 2018-11-23T09:22:17Z |
DOC/TST: doctests leaving extraneous files | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 572bb3668caf8..5104cf815abf6 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2028,8 +2028,9 @@ def to_parquet(self, fname, engine='auto', compression='snappy',
Examples
--------
>>> df = pd.DataFrame(data={'col1':... | - [x] closes #23201
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23858 | 2018-11-22T12:43:53Z | 2018-11-23T02:40:59Z | 2018-11-23T02:40:59Z | 2018-11-23T02:41:05Z |
Preserve dtype on reset_index() in an empty DataFrame | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 572bb3668caf8..8b67e9b87f36c 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4226,7 +4226,7 @@ def _maybe_casted_values(index, labels=None):
# we can have situations where the whole mask is -1,
# meaning th... | - closes #19602
| https://api.github.com/repos/pandas-dev/pandas/pulls/23856 | 2018-11-22T09:12:05Z | 2018-12-09T20:19:31Z | null | 2018-12-09T20:19:31Z |
DOC: Fix flake8 problems in io.rst | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 2b91836d5449d..372a7b8a325e7 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -5,25 +5,23 @@
.. ipython:: python
:suppress:
- import os
import csv
- from pandas.compat import StringIO, BytesIO
- import pandas as pd
- ExcelWriter = pd.E... | - [x] closes #23791
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Pushing this code to check if this clears CI. Made a few changes towards issue #23791 | https://api.github.com/repos/pandas-dev/pandas/pulls/23855 | 2018-11-22T06:59:20Z | 2018-12-02T18:18:28Z | 2018-12-02T18:18:28Z | 2018-12-03T02:52:57Z |
DOC: Change docs to use MultiIndex.codes | diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst
index 563c869eff54d..b3d5f596f7cdd 100644
--- a/doc/source/advanced.rst
+++ b/doc/source/advanced.rst
@@ -49,6 +49,11 @@ analysis.
See the :ref:`cookbook<cookbook.multi_index>` for some advanced strategies.
+.. versionchanged:: 0.24.0
+
+ :attr:`Mult... | This PR updates the docs in accordance with #23752. That PR is quite large, so I've put the doc changes in a seperate PR.
This PR can be merged when #23752 is approved/merged. | https://api.github.com/repos/pandas-dev/pandas/pulls/23850 | 2018-11-21T23:42:16Z | 2018-11-22T16:48:00Z | null | 2018-11-22T16:48:00Z |
Increase timeout in hypothesis for test_apply.py | diff --git a/pandas/tests/frame/test_apply.py b/pandas/tests/frame/test_apply.py
index c43872bfc3ddb..a3b72d223f957 100644
--- a/pandas/tests/frame/test_apply.py
+++ b/pandas/tests/frame/test_apply.py
@@ -11,7 +11,7 @@
import warnings
import numpy as np
-from hypothesis import given
+from hypothesis import given, s... | - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
In this [build](https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=3781&view=logs)
We see the following error:
`
<pandas.tests.frame.test_apply.TestDataFrameAggregate instance at 0x0000000036892A48>, 2018-11-Unreliable test tim... | https://api.github.com/repos/pandas-dev/pandas/pulls/23849 | 2018-11-21T23:14:03Z | 2018-11-27T01:50:21Z | 2018-11-27T01:50:21Z | 2019-02-17T18:42:29Z |
DOC: Upgrade flake8-rst version | diff --git a/ci/deps/travis-36.yaml b/ci/deps/travis-36.yaml
index 1781f67041f44..de76f5d6d763f 100644
--- a/ci/deps/travis-36.yaml
+++ b/ci/deps/travis-36.yaml
@@ -9,7 +9,7 @@ dependencies:
- fastparquet
- flake8>=3.5
- flake8-comprehensions
- - flake8-rst=0.4.2
+ - flake8-rst>=0.6.0
- gcsfs
- geopand... | closes #23508
- Update of `flake8-rst` version to >=0.6.0
- Add files with issues to exclude
| https://api.github.com/repos/pandas-dev/pandas/pulls/23847 | 2018-11-21T21:45:34Z | 2018-12-02T18:09:11Z | 2018-12-02T18:09:11Z | 2018-12-02T19:29:51Z |
DOC: fix import of tm in Panel dsintro.rst section | diff --git a/doc/source/dsintro.rst b/doc/source/dsintro.rst
index b55f93566c03d..ccd530d11b8f9 100644
--- a/doc/source/dsintro.rst
+++ b/doc/source/dsintro.rst
@@ -1028,6 +1028,7 @@ support the multi-dimensional analysis that is one of ``Panel`` s main use cases
.. ipython:: python
:okwarning:
+ import pandas... | xref https://github.com/pandas-dev/pandas/pull/23802 | https://api.github.com/repos/pandas-dev/pandas/pulls/23841 | 2018-11-21T14:59:26Z | 2018-11-21T16:55:54Z | 2018-11-21T16:55:54Z | 2018-11-21T17:06:40Z |
DOC: Move content in doc/README.rst to doc/source/contributing.rst | diff --git a/doc/README.rst b/doc/README.rst
index 12950d323f5d3..a11ed8d9d03e3 100644
--- a/doc/README.rst
+++ b/doc/README.rst
@@ -1,173 +1 @@
-.. _contributing.docs:
-
-Contributing to the documentation
-=================================
-
-Whether you are someone who loves writing, teaching, or development,
-contri... | - [ ] closes #23828
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23840 | 2018-11-21T14:21:50Z | 2018-11-27T02:24:46Z | 2018-11-27T02:24:46Z | 2018-11-27T02:24:50Z |
DOC: Fix flake8 issues in categorical.rst | diff --git a/doc/source/categorical.rst b/doc/source/categorical.rst
index acab9de905540..2f2430f02f89d 100644
--- a/doc/source/categorical.rst
+++ b/doc/source/categorical.rst
@@ -60,14 +60,14 @@ By specifying ``dtype="category"`` when constructing a ``Series``:
.. ipython:: python
- s = pd.Series(["a","b","c"... | - [x] closes #23793
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23839 | 2018-11-21T13:45:55Z | 2018-11-21T16:43:36Z | 2018-11-21T16:43:36Z | 2018-11-21T16:47:43Z |
DOC: Fixing flake8 errors in cookbook.rst | diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst
index 53468e755a722..16d756acaca51 100644
--- a/doc/source/cookbook.rst
+++ b/doc/source/cookbook.rst
@@ -5,24 +5,20 @@
.. ipython:: python
:suppress:
- import pandas as pd
+ import datetime
+ import functools
+ import glob
+ import itertoo... | - [x] closes #23794
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23837 | 2018-11-21T11:05:37Z | 2018-11-24T15:43:57Z | 2018-11-24T15:43:57Z | 2018-11-24T19:20:52Z |
REF/TST: Add more pytest idiom to parsers tests | diff --git a/pandas/tests/io/parser/multithread.py b/pandas/tests/io/parser/multithread.py
deleted file mode 100644
index 0be3a429f5f64..0000000000000
--- a/pandas/tests/io/parser/multithread.py
+++ /dev/null
@@ -1,101 +0,0 @@
-# -*- coding: utf-8 -*-
-
-"""
-Tests multithreading behaviour for reading and
-parsing file... | Adds more idiom to the following:
* `parser/skiprows` --> `parser/test_skiprows`
* `parser/na_values` --> `parser/test_na_values`
* `parser/parse_dates` -->` parser/test_parse_dates`
* `parser/multithread` --> `parser/test_multi_thread`
Also adds new test suite: `test_date_converters` (was previously hidden in... | https://api.github.com/repos/pandas-dev/pandas/pulls/23832 | 2018-11-21T07:34:44Z | 2018-11-21T19:32:47Z | 2018-11-21T19:32:47Z | 2018-11-21T19:46:35Z |
Cookbook doc | diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst
index 53468e755a722..bd2b245adb3f5 100644
--- a/doc/source/cookbook.rst
+++ b/doc/source/cookbook.rst
@@ -9,18 +9,15 @@
import numpy as np
from pandas.compat import StringIO
- import random
import os
import itertools
import functools... | - [x] closes #23794
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23831 | 2018-11-21T05:51:36Z | 2018-11-21T07:24:48Z | null | 2018-11-21T10:18:57Z |
implement truediv, rtruediv directly in TimedeltaArray; tests | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index c74bcb505b6be..d4b2fefff322f 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1256,7 +1256,7 @@ Timedelta
- Bug in :class:`TimedeltaIndex` where adding a timezone-aware datetime scalar incorrectly... | Follow-up to #23642, implements `__rdiv__` in TimedeltaArray, plus missing tests.
After this will be a PR that does the same for floordiv+rfloordiv.
- [x] closes #22631
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Fixes:
`tdi / np.time... | https://api.github.com/repos/pandas-dev/pandas/pulls/23829 | 2018-11-21T02:46:24Z | 2018-11-29T12:48:26Z | 2018-11-29T12:48:26Z | 2018-12-11T18:02:45Z |
TST: move misplaced modulo test | diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py
index f1023148aaf1c..c3cd9f0f43559 100644
--- a/pandas/tests/arithmetic/test_numeric.py
+++ b/pandas/tests/arithmetic/test_numeric.py
@@ -597,6 +597,44 @@ def test_operators_frame(self):
tm.assert_series_equal(ts / t... | Found this while looking at tests for reduction ops. I'm wondering if we should collect+parametrize those over DataFrame/Series/Index/EA the same way we do for arithmetic. Thoughts? | https://api.github.com/repos/pandas-dev/pandas/pulls/23827 | 2018-11-21T00:36:06Z | 2018-11-23T02:37:24Z | 2018-11-23T02:37:24Z | 2018-11-23T04:14:12Z |
TST: Fix indexes test inheritance / fixturization | diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py
index 7f1cf143a3a6e..9f5885fb80bba 100644
--- a/pandas/tests/indexes/common.py
+++ b/pandas/tests/indexes/common.py
@@ -7,7 +7,6 @@
import pandas.compat as compat
from pandas.compat import PY3
-from pandas.core.dtypes.common import needs_i... | Closes https://github.com/pandas-dev/pandas/issues/23746
Before:
```
7355 passed, 852 skipped, 5 xfailed, 13 warnings in 75.20 seconds
```
After:
```
5740 passed, 724 skipped, 5 xfailed, 12 warnings in 67.73 seconds
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/23825 | 2018-11-20T22:20:08Z | 2018-11-21T15:37:50Z | 2018-11-21T15:37:49Z | 2018-11-21T15:39:30Z |
CLN: io/formats/html.py: refactor | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 4ff3cc728f7f7..38966497034aa 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -302,6 +302,7 @@ Backwards incompatible API changes
- A newly constructed empty :class:`DataFrame` with integer as the ... | - [ n/a] follow-on from #22726
- [x] tests ~~added~~ / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
remove `max_rows` and `max_cols` from `HTMLFormatter` as truncation is now handled by `DataFrameFormatter`
note: this PR should be orthogonal to #22655 | https://api.github.com/repos/pandas-dev/pandas/pulls/23818 | 2018-11-20T14:55:49Z | 2018-11-27T02:37:15Z | 2018-11-27T02:37:14Z | 2018-11-27T19:12:31Z |
BUG: fixed plotting of boolean dataframes | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 27f332ca50231..5e5f1c5a66da7 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -357,6 +357,7 @@ def _compute_plot_data(self):
# with ``dtype == object``
data = data._convert(datetime=True, timedelta=True)
... | Boolean data was not recognised as plottable data. Adding it to the list of valid dtypes fixed this and allows plotting.
- [x] closes #23719
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23813 | 2018-11-20T10:14:12Z | 2019-02-27T23:48:54Z | null | 2022-04-22T10:52:22Z |
ENH GH11978 access pd.plotting._misc from plot accessor | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 78f864f0dcb73..4dd5b0dc92b2d 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -371,6 +371,7 @@ Other Enhancements
- :meth:`MultiIndex.to_flat_index` has been added to flatten multiple levels into a... | - [X] closes #11978
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Allows plot accessors to use plotting functions from `pd.plotting`
- Currently only allows function calls (e.g. `df.plot.scatter_matrix()` but not `df.plot(kind='scatter_matr... | https://api.github.com/repos/pandas-dev/pandas/pulls/23811 | 2018-11-20T09:22:42Z | 2018-12-23T17:31:02Z | 2018-12-23T17:31:02Z | 2019-01-25T07:16:34Z |
REF/TST: Add more pytest idiom to parsers tests | diff --git a/pandas/tests/io/parser/dtypes.py b/pandas/tests/io/parser/dtypes.py
deleted file mode 100644
index 950795b33d460..0000000000000
--- a/pandas/tests/io/parser/dtypes.py
+++ /dev/null
@@ -1,400 +0,0 @@
-# -*- coding: utf-8 -*-
-
-"""
-Tests dtype specification during parsing
-for all of the parsers defined in... | Adds more idiom to the following:
* `parser/header` --> `parser/test_header`
* `parser/dtypes` --> `parser/test_dtypes`
* `parser/index_col` --> `parser/test_index_col`
* `parser/mangle_dupes` --> `parser/test_mangle_dupes`
Builds off of #23712. | https://api.github.com/repos/pandas-dev/pandas/pulls/23810 | 2018-11-20T08:36:53Z | 2018-11-20T13:11:40Z | 2018-11-20T13:11:40Z | 2018-11-20T17:20:42Z |
TST: Make assert_extension_array_equal behavior consistent | diff --git a/pandas/tests/util/test_testing.py b/pandas/tests/util/test_testing.py
index a886579ee913f..e649cea14ec39 100644
--- a/pandas/tests/util/test_testing.py
+++ b/pandas/tests/util/test_testing.py
@@ -11,10 +11,12 @@
import pandas as pd
from pandas import DataFrame, Series, compat
+from pandas.core.arrays.s... | - [X] closes #23709
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Doesn't seem like a whatsnew entry is needed for this, but can add one if need be.
This should also address #23605; I don't want to autoclose it, as I'd rather wait to confirm that the nightly bui... | https://api.github.com/repos/pandas-dev/pandas/pulls/23808 | 2018-11-20T07:28:32Z | 2018-11-21T09:32:02Z | 2018-11-21T09:32:01Z | 2018-11-21T17:38:46Z |
BUG/TST: Add more timezone fixtures and use is_utc more consistently | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 4ff3cc728f7f7..48a3bfdab62c9 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1249,6 +1249,9 @@ Timezones
- Bug when indexing a :class:`Series` with a DST transition (:issue:`21846`)
- Bug in :me... | - [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Was discussed a while back with @jreback to add more timezones to the `tz_aware_fixture`, added some less tested ones like:
- `dateutil.tz.tzlocal`
- `pytz.FixedOffset`
This uncovered some bu... | https://api.github.com/repos/pandas-dev/pandas/pulls/23807 | 2018-11-20T06:09:59Z | 2018-11-23T20:45:10Z | 2018-11-23T20:45:10Z | 2018-11-23T20:48:06Z |
TST: Add test cases for GH6173, appending to empty df | diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py
index df0180c7a5bf7..21bb624790328 100644
--- a/pandas/tests/indexing/test_loc.py
+++ b/pandas/tests/indexing/test_loc.py
@@ -804,3 +804,35 @@ def test_loc_uint64(self):
result = s.loc[[np.iinfo('uint64').max - 1,
... | - [X] closes #6173
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Hmm, previous check-in for GH4861 still showing in this branch, thought it wouldn't show as a diff after syncing to upstream (sorry, new to git) | https://api.github.com/repos/pandas-dev/pandas/pulls/23806 | 2018-11-20T05:36:53Z | 2018-11-23T02:38:12Z | 2018-11-23T02:38:12Z | 2018-11-23T02:38:18Z |
DOC: Fixing spaces before non param colons in docstrings. | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 97197d109eac8..9ff8ba7bb23d2 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -856,8 +856,8 @@ def rank(values, axis=0, method='average', na_option='keep',
The method by which tiebreaks are broken during the ranki... | - [x] closes #23780
- [x] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23805 | 2018-11-20T01:26:43Z | 2018-11-21T10:33:16Z | 2018-11-21T10:33:16Z | 2018-11-21T10:33:31Z |
DOC: Fix format of basics.rst, following PEP-8 standard | diff --git a/doc/source/basics.rst b/doc/source/basics.rst
index d19fcedf4e766..8229563187e83 100644
--- a/doc/source/basics.rst
+++ b/doc/source/basics.rst
@@ -149,9 +149,10 @@ either match on the *index* or *columns* via the **axis** keyword:
.. ipython:: python
- df = pd.DataFrame({'one' : pd.Series(np.random... | - [x] closes #23792
- [x] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I updated the format of `doc/source/basics.rst` file.
I do not see any errors when I run `flake8-rst doc/source/basics.rst`.
Please let me know if there are some changes. | https://api.github.com/repos/pandas-dev/pandas/pulls/23802 | 2018-11-20T01:02:28Z | 2018-11-21T14:55:33Z | 2018-11-21T14:55:33Z | 2018-11-21T15:00:31Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.