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 |
|---|---|---|---|---|---|---|---|
Move tz cleanup whatsnew entries to v0.24 | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index d163ad8564efb..18cd36205648a 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -99,11 +99,7 @@ Bug Fixes
- Bug in :class:`Timestamp` and :class:`DatetimeIndex` where passing a :class:`Timestamp` l... | Pre-req for #21612. https://github.com/pandas-dev/pandas/pull/21612#pullrequestreview-131551269
Moving tz cleanup whatsnew entries from 0.23.2 to 0.24.0 added in #21491
cc @jreback
| https://api.github.com/repos/pandas-dev/pandas/pulls/21631 | 2018-06-26T02:28:40Z | 2018-06-26T07:44:06Z | 2018-06-26T07:44:06Z | 2018-06-26T15:17:55Z |
Update to_gbq and read_gbq to pandas-gbq 0.5.0 | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 72e7373d0dd33..60c3e4df8d129 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -19,6 +19,11 @@ Other Enhancements
- :func:`to_csv` now supports ``compression`` keyword when a file handle is passed. ... | Closes https://github.com/pydata/pandas-gbq/issues/177
Closes #21627
- [x] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I've also verified that the docs build and render well with
```
python doc/make.py --single read_gbq
... | https://api.github.com/repos/pandas-dev/pandas/pulls/21628 | 2018-06-25T18:03:15Z | 2018-06-26T22:25:58Z | 2018-06-26T22:25:57Z | 2018-06-26T22:26:05Z |
DOC: Do no use 'type' as first word when specifying a return type (#21622) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 74bb2abc27c4b..34d3eb0a6db73 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4675,7 +4675,7 @@ def swaplevel(self, i=-2, j=-1, axis=0):
Returns
-------
- swapped : type of caller (new object)
+ swapped : sa... | Pycharm is otherwise confused and expects objects of type
'type' to be returned.
- [x] closes #21622
- [x] tests added / passed (no code changes)
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry (not needed I guess)
| https://api.github.com/repos/pandas-dev/pandas/pulls/21623 | 2018-06-25T14:14:16Z | 2018-06-25T22:22:24Z | 2018-06-25T22:22:24Z | 2018-06-25T22:22:32Z |
remove unused cimport | diff --git a/pandas/_libs/hashtable_class_helper.pxi.in b/pandas/_libs/hashtable_class_helper.pxi.in
index b92eb0e651276..4d2b6f845eb71 100644
--- a/pandas/_libs/hashtable_class_helper.pxi.in
+++ b/pandas/_libs/hashtable_class_helper.pxi.in
@@ -4,8 +4,6 @@ Template for each `dtype` helper function for hashtable
WARNIN... |
- [ ] 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/21619 | 2018-06-25T03:24:22Z | 2018-06-25T10:56:55Z | 2018-06-25T10:56:55Z | 2018-06-25T18:07:50Z |
CLN: make CategoricalIndex._create_categorical a classmethod | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 4f140a6e77b2f..122f8662abb61 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -1130,7 +1130,8 @@ def to_frame(self, index=True):
"""
from pandas import DataFrame
- result = DataFrame(self... | Currently, ``CategoricalIndex._create_categorical`` is a staticmethod, and is being called internally using *either* instances or classes as its first argument, e.g.:
* in ``_is_dtype_compat`` *an instance* is supplied as the first argument,
* in ``__new__`` *a class* is supplied as the first argument.
This is con... | https://api.github.com/repos/pandas-dev/pandas/pulls/21618 | 2018-06-24T21:36:42Z | 2018-06-25T22:24:31Z | 2018-06-25T22:24:31Z | 2018-10-27T08:17:10Z |
DEPR: Series.ptp() | diff --git a/doc/source/api.rst b/doc/source/api.rst
index f2c00d5d12031..f1e9d236c0028 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -434,7 +434,6 @@ Computations / Descriptive Stats
Series.value_counts
Series.compound
Series.nonzero
- Series.ptp
Reindexing / Selection / Label manipula... | xref #18262
- [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/21614 | 2018-06-24T15:23:53Z | 2018-07-06T13:56:03Z | 2018-07-06T13:56:03Z | 2018-10-25T18:22:34Z |
DEPR: MultiIndex.to_hierarchical | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index c23ed006ff637..dbe5c481160a3 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -83,7 +83,7 @@ Deprecations
~~~~~~~~~~~~
- :meth:`DataFrame.to_stata`, :meth:`read_stata`, :class:`StataReader` and ... | xref #18262
- [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/21613 | 2018-06-24T15:17:37Z | 2018-06-26T10:07:55Z | 2018-06-26T10:07:55Z | 2018-06-26T11:03:09Z |
TST: Clean old timezone issues PT2 | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 406ca9ba045c9..1105acda067d3 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -164,12 +164,6 @@ Datetimelike
^^^^^^^^^^^^
- Fixed bug where two :class:`DateOffset` objects with different ``norma... | - [x] closes #11679
- [x] closes #11365
- [x] closes #12064
- [x] closes #12601
- [x] closes #9243
- [x] closes #11792
- [x] closes #13051
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
xref #21491, cleaning up older timezone issues and m... | https://api.github.com/repos/pandas-dev/pandas/pulls/21612 | 2018-06-23T17:32:45Z | 2018-06-28T10:23:02Z | 2018-06-28T10:23:00Z | 2018-06-28T15:06:24Z |
BUG: Fix json_normalize throwing AttributeError (#21608) | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index ff872cfc6b3ef..ffb6316991673 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -72,6 +72,7 @@ Bug Fixes
- Bug in :func:`read_csv` that caused it to incorrectly raise an error when ``nrows=0``, ``l... | This PR fixes the bug in `json_normalize` that causes it to throw `AttributeError` when flattening an array of values.
- [ ] closes #21608
- [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/21611 | 2018-06-23T13:36:27Z | 2018-10-11T01:52:56Z | null | 2018-10-11T01:52:56Z |
BUG: Fix `json_normalize` when calling with list `record_path` (#21605) | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index ff872cfc6b3ef..b6ffa6909c5bf 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -72,6 +72,7 @@ Bug Fixes
- Bug in :func:`read_csv` that caused it to incorrectly raise an error when ``nrows=0``, ``l... | This PR fixes the bug that caused `json_normalize` to throw `TypeError` when calling with a list `record_path`.
- [x] closes #21605
- [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/21607 | 2018-06-23T04:10:50Z | 2018-10-11T01:53:11Z | null | 2018-10-11T01:53:11Z |
More speedups for Period comparisons | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 72e7373d0dd33..379221478e203 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -130,7 +130,7 @@ Performance Improvements
- Improved performance of :func:`Series.describe` in case of numeric dtpyes... | Following #21582, the biggest avoidable overheads in Period comparisons are in a) `isinstance` calls that can be short-circuited and b) `__ne__` call overhead. This PR moves `__eq__` and `__ne__` to the cython file, removing the `__ne__` overhead, and changes an `isinstance` check to a try/except.
Using the same pr... | https://api.github.com/repos/pandas-dev/pandas/pulls/21606 | 2018-06-23T04:09:00Z | 2018-06-26T22:27:30Z | 2018-06-26T22:27:29Z | 2018-07-01T01:27:32Z |
CI: Test against Python 3.7 | diff --git a/.travis.yml b/.travis.yml
index 4e25380a7d941..2d2a0bc019c80 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -35,6 +35,11 @@ matrix:
language: generic
env:
- JOB="3.5, OSX" ENV_FILE="ci/travis-35-osx.yaml" TEST_ARGS="--skip-slow --skip-network"
+
+ - dist: trusty
+ env:
+ ... | - [x] closes #20552
- [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/21604 | 2018-06-23T02:54:14Z | 2018-06-25T14:57:44Z | 2018-06-25T14:57:44Z | 2018-07-02T15:31:40Z |
TST: Use multiple instances of parametrize instead of product in tests | diff --git a/pandas/tests/dtypes/test_dtypes.py b/pandas/tests/dtypes/test_dtypes.py
index cc833af03ae66..eee53a2fcac6a 100644
--- a/pandas/tests/dtypes/test_dtypes.py
+++ b/pandas/tests/dtypes/test_dtypes.py
@@ -2,8 +2,6 @@
import re
import pytest
-from itertools import product
-
import numpy as np
import pandas... |
- All instances `product` being used inside a `@pytest.mark.parametrize` have been converted to separate instances of `@pytest.mark.parametrize`
- Extracted `product` from within tests where it was straightforward
- There are still multiple instances of `product` being used within tests for looping purporses
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/21602 | 2018-06-23T00:39:55Z | 2018-06-23T11:27:59Z | 2018-06-23T11:27:59Z | 2018-06-23T11:28:20Z |
Updating fork | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 9632df46d3bbf..d54deb5409297 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -839,7 +839,7 @@ def _str_extract_frame(arr, pat, flags=0):
def str_extract(arr, pat, flags=0, expand=True):
- r"""
+ """
For each subject s... | - [ ] 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/21601 | 2018-06-23T00:38:22Z | 2018-06-23T00:39:47Z | null | 2018-06-23T00:43:41Z |
TST: Refactor test_maybe_match_name and test_hash_pandas_object | diff --git a/pandas/tests/test_common.py b/pandas/tests/test_common.py
index ef5f13bfa504a..61f838eeeeb30 100644
--- a/pandas/tests/test_common.py
+++ b/pandas/tests/test_common.py
@@ -25,7 +25,6 @@ def test_mut_exclusive():
def test_get_callable_name():
- from functools import partial
getname = com._get_c... | - [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/21600 | 2018-06-22T21:49:22Z | 2018-06-25T22:31:09Z | 2018-06-25T22:31:08Z | 2018-06-26T08:26:31Z |
DOC: Change release and whatsnew | diff --git a/.gitignore b/.gitignore
index a59f2843c365a..f912fedb199c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -109,6 +109,5 @@ doc/build/html/index.html
# Windows specific leftover:
doc/tmp.sv
doc/source/styled.xlsx
-doc/source/templates/
env/
doc/source/savefig/
diff --git a/ci/build_docs.sh b/ci/build_docs... | Some cleanup & changes to facilitate release automation
* We will include the correct (latest on master or maintenance branch)
whatsnew directly in the index.rst toctree
* Contributors are included in the whatsnew for each version (automatically)
* Removed release.rst
* Added new releases.rst which has toctree... | https://api.github.com/repos/pandas-dev/pandas/pulls/21599 | 2018-06-22T20:12:12Z | 2018-11-14T21:09:47Z | 2018-11-14T21:09:47Z | 2018-11-15T13:14:00Z |
TST: Add interval closed fixture to top-level conftest | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 9d806a91f37f7..d6b18db4e71f2 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -137,6 +137,14 @@ def nselect_method(request):
return request.param
+@pytest.fixture(params=['left', 'right', 'both', 'neither'])
+def closed(request):
+ """
+ ... | Noticed identical copies of this fixture in multiple places, so seemed reasonable to dedupe and move to the top-level `conftest.py`. I think I removed all instances of such a fixture/parametrize being used, but could have missed one. I imagine this fixture will be used in more places in the future when interval relat... | https://api.github.com/repos/pandas-dev/pandas/pulls/21595 | 2018-06-22T14:18:40Z | 2018-06-22T22:45:27Z | 2018-06-22T22:45:27Z | 2018-09-24T17:22:53Z |
PERF: do not check for label presence preventively | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 90fc579ae69e5..a63276efc5b7c 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -17,7 +17,7 @@ Other Enhancements
- :func:`to_datetime` now supports the ``%Z`` and ``%z`` directive when passed into `... | - [x] closes #21593
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
ASV run:
```
before after ratio
[f1ffc5fa] [0af738b0]
- 433±7μs 390±5μs 0.90 indexing.MultiIndexing.time_series_i... | https://api.github.com/repos/pandas-dev/pandas/pulls/21594 | 2018-06-22T10:37:22Z | 2018-06-25T22:29:58Z | 2018-06-25T22:29:57Z | 2018-07-08T08:22:46Z |
TST: Clean up tests in test_take.py | diff --git a/pandas/tests/test_take.py b/pandas/tests/test_take.py
index 9ab147edb8d1b..ade847923c083 100644
--- a/pandas/tests/test_take.py
+++ b/pandas/tests/test_take.py
@@ -10,315 +10,268 @@
from pandas._libs.tslib import iNaT
+@pytest.fixture(params=[True, False])
+def writeable(request):
+ return request.... | Utilizes `pytest` fixtures to cleanup the code significantly.
Initially thought this could be a good place for #21500, but that didn't turn out to be the case. 🤷♂️ | https://api.github.com/repos/pandas-dev/pandas/pulls/21591 | 2018-06-22T08:30:45Z | 2018-06-22T16:52:21Z | 2018-06-22T16:52:21Z | 2018-06-22T16:52:39Z |
API/REGR: (re-)allow neg/pos unary operation on object dtype | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 8c36d51a5fd16..fac584e455e2a 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -54,6 +54,7 @@ Fixed Regressions
- Fixed regression in :meth:`to_csv` when handling file-like object incorrectly (:is... | closes #21380
This is an easy fix to simply be more forgiveable and just try the operation:
- For object dtype, this is IMO the better way: simply let the scalar values decide if it can do those operations or not.
The scalar values (eg strings) already raise an informative error message. Eg for a series with ... | https://api.github.com/repos/pandas-dev/pandas/pulls/21590 | 2018-06-22T07:54:40Z | 2018-06-29T00:38:40Z | 2018-06-29T00:38:39Z | 2018-07-02T15:43:33Z |
clarifying regex pipe behavior | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 9632df46d3bbf..08239ae4dae20 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -335,11 +335,11 @@ def str_contains(arr, pat, case=True, flags=0, na=np.nan, regex=True):
4 False
dtype: bool
- Returning 'house' and 'par... | [Current documentation for `pandas.Series.str.contains()`](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.str.contains.html) states that the `|` acts as a regex **and** operator ("Returning ‘house’ and ‘parrot’ within same string."), while I believe it is actually an **or** operator. I've updated ... | https://api.github.com/repos/pandas-dev/pandas/pulls/21589 | 2018-06-22T06:55:14Z | 2018-06-22T10:11:21Z | 2018-06-22T10:11:21Z | 2018-06-22T10:11:26Z |
TST: Use int fixtures in test_construction.py | diff --git a/pandas/tests/indexes/datetimes/test_construction.py b/pandas/tests/indexes/datetimes/test_construction.py
index f7682a965c038..ae98510951845 100644
--- a/pandas/tests/indexes/datetimes/test_construction.py
+++ b/pandas/tests/indexes/datetimes/test_construction.py
@@ -524,14 +524,13 @@ def test_dti_construc... | Title is self-explanatory.
Partially addresses #21500.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21588 | 2018-06-22T06:20:34Z | 2018-06-22T09:58:41Z | 2018-06-22T09:58:41Z | 2018-06-22T10:01:35Z |
[DOC]: To remove extra `` to match :class: rendering requirements | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index fd34424dedc52..4bfae7de01b8f 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -31,8 +31,8 @@ Backwards incompatible API changes
Tick DateOffset Normalize Restrictions
-----------------------------... | Removing extra `` to solve rendering issues
- [x] xref #21564
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
@TomAugspurger , I am not really much acquainted to :class: reference. Do tell me If I am wrong in the inference of the issue.
I gu... | https://api.github.com/repos/pandas-dev/pandas/pulls/21586 | 2018-06-22T05:16:36Z | 2018-06-22T10:07:08Z | 2018-06-22T10:07:07Z | 2018-06-22T10:07:25Z |
DOC: Adding clarification on return dtype of to_numeric | diff --git a/pandas/core/tools/numeric.py b/pandas/core/tools/numeric.py
index c584e29f682dd..ebe135dfb184c 100644
--- a/pandas/core/tools/numeric.py
+++ b/pandas/core/tools/numeric.py
@@ -16,6 +16,10 @@ def to_numeric(arg, errors='raise', downcast=None):
"""
Convert argument to a numeric type.
+ The def... | Specifying the default return types for `to_numeric` in case of no downcast
- [x] closes #21551
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21585 | 2018-06-22T04:41:15Z | 2018-06-22T10:05:46Z | 2018-06-22T10:05:46Z | 2018-06-22T10:05:59Z |
BUG: Let IntervalIndex constructor override inferred closed | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index fd34424dedc52..85ce1bc567484 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -194,6 +194,13 @@ Strings
-
-
+Interval
+^^^^^^^^
+
+- Bug in the :class:`IntervalIndex` constructor where the ``clo... | - [X] closes #19370
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Makes `IntervalIndex` constructor behavior consistent: the `closed` parameter, if specified, takes priority over the inferred `closed`.
Comments:
- Modified the `intervals_t... | https://api.github.com/repos/pandas-dev/pandas/pulls/21584 | 2018-06-22T03:18:36Z | 2018-06-27T15:29:17Z | 2018-06-27T15:29:16Z | 2018-09-24T17:22:59Z |
cache DateOffset attrs now that they are immutable | diff --git a/asv_bench/benchmarks/period.py b/asv_bench/benchmarks/period.py
index 897a3338c164c..c34f9a737473e 100644
--- a/asv_bench/benchmarks/period.py
+++ b/asv_bench/benchmarks/period.py
@@ -64,6 +64,11 @@ def setup(self):
def time_setitem_period_column(self):
self.df['col'] = self.rng
+ def ti... | TL;DR ~6x speedup in `set_index` for `PeriodIndex`-like column.
Alright! Now that DateOffset objects are immutable (#21341), we can can start caching stuff. This was pretty much the original motivation that brought me here, so I'm pretty psyched to finally make this happen.
The motivating super-slow operation is... | https://api.github.com/repos/pandas-dev/pandas/pulls/21582 | 2018-06-21T23:55:20Z | 2018-06-22T22:57:41Z | 2018-06-22T22:57:41Z | 2018-06-23T00:11:38Z |
DOC: Note assert_almost_equal impl. detail | diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index b9e53dfc80020..675dd94d49750 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -224,9 +224,15 @@ def assert_almost_equal(left, right, check_exact=False,
check_dtype: bool, default True
check dtype if both a and b are the ... | Note the hard-coded switch between absolute and relative tolerance during checking.
Closes #21528.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21580 | 2018-06-21T21:26:38Z | 2018-06-22T10:21:14Z | 2018-06-22T10:21:14Z | 2018-06-22T16:52:08Z |
DOC: update the Series.any / Dataframe.any docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 9902da4094404..04ba0b5de3f7f 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -463,7 +463,7 @@ def ndim(self):
See Also
--------
- ndarray.ndim
+ ndarray.ndim : Number of array dimensions.
... | - [ ] 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/21579 | 2018-06-21T19:57:05Z | 2018-06-22T10:33:13Z | 2018-06-22T10:33:13Z | 2018-06-22T10:39:46Z |
BUG: Series dot product __rmatmul__ doesn't allow matrix vector multiplication | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index fd34424dedc52..aadb380a816f4 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -183,7 +183,7 @@ Offsets
Numeric
^^^^^^^
--
+- Bug in :class:`Series` ``__rmatmul__`` doesn't support matrix vector ... | - [x] closes #21530
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
the new `__rmatmul__` implementation in Series seems to be missing matrix vector multiplication case as raised in the issue in question. Only inner product of two vectors was s... | https://api.github.com/repos/pandas-dev/pandas/pulls/21578 | 2018-06-21T19:52:07Z | 2018-06-22T22:59:28Z | 2018-06-22T22:59:28Z | 2018-06-23T07:34:47Z |
BUG: first/last lose timezone in groupby with as_index=False | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 4bfae7de01b8f..3c3f6358d6579 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -225,7 +225,7 @@ Plotting
Groupby/Resample/Rolling
^^^^^^^^^^^^^^^^^^^^^^^^
--
+- Bug in :func:`pandas.core.groupby.... | - [ ] closes #15884
- [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/21573 | 2018-06-21T12:39:21Z | 2018-06-22T23:01:40Z | 2018-06-22T23:01:40Z | 2018-06-23T22:13:58Z |
add test case when to_csv argument is sys.stdout | diff --git a/pandas/tests/io/formats/test_to_csv.py b/pandas/tests/io/formats/test_to_csv.py
index dfa3751bff57a..36c4ae547ad4e 100644
--- a/pandas/tests/io/formats/test_to_csv.py
+++ b/pandas/tests/io/formats/test_to_csv.py
@@ -285,3 +285,18 @@ def test_to_csv_string_array_utf8(self):
df.to_csv(path, enco... | - [+] closes #21561
- [+] tests added / passed
- [+] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Add new test case when to_csv argument is sys.stdout | https://api.github.com/repos/pandas-dev/pandas/pulls/21572 | 2018-06-21T11:49:16Z | 2018-06-22T23:04:39Z | 2018-06-22T23:04:39Z | 2018-06-29T15:03:54Z |
DOC: Fixing spaces around backticks, and linting | diff --git a/ci/lint.sh b/ci/lint.sh
index 2cbf6f7ae52a9..9bcee55e1344c 100755
--- a/ci/lint.sh
+++ b/ci/lint.sh
@@ -174,6 +174,14 @@ if [ "$LINT" ]; then
fi
echo "Check for old-style classes DONE"
+ echo "Check for backticks incorrectly rendering because of missing spaces"
+ grep -R --include="*.... | - [X] closes #21562
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21570 | 2018-06-21T09:59:58Z | 2018-06-21T10:10:32Z | 2018-06-21T10:10:32Z | 2018-06-21T10:10:51Z |
REF: multi_take is now able to tackle all list-like (non-bool) cases | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index d5e81105dd323..cdc592ae253ac 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -902,30 +902,45 @@ def _getitem_tuple(self, tup):
return retval
def _multi_take_opportunity(self, tup):
- from pandas.core.generi... | - [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This is basically a consequence of #21503 - the code path for indexing when ``key`` is a collection is now the same for multi_take and for single take.
(Next step will be to merge the other code paths too, and approach with m... | https://api.github.com/repos/pandas-dev/pandas/pulls/21569 | 2018-06-21T09:26:31Z | 2018-06-21T13:05:44Z | 2018-06-21T13:05:44Z | 2018-06-21T13:06:13Z |
[DOC]: Updating merge.rst to resolve rendering issues | diff --git a/doc/source/merging.rst b/doc/source/merging.rst
index 1161656731f88..4d7cd0bdadef7 100644
--- a/doc/source/merging.rst
+++ b/doc/source/merging.rst
@@ -279,7 +279,7 @@ need to be:
Ignoring indexes on the concatenation axis
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-For ``DataFrame``s which don't have ... | Fixing Documentation according to rendering requirements
- [x] xref #21562
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21568 | 2018-06-21T07:21:24Z | 2018-06-21T09:39:18Z | 2018-06-21T09:39:18Z | 2018-06-21T09:39:22Z |
DOC: Add documentation for freq='infer' option of DatetimeIndex and TimedeltaIndex constructors | diff --git a/doc/source/timedeltas.rst b/doc/source/timedeltas.rst
index 745810704f665..e602e45784f4a 100644
--- a/doc/source/timedeltas.rst
+++ b/doc/source/timedeltas.rst
@@ -363,6 +363,13 @@ or ``np.timedelta64`` objects. Passing ``np.nan/pd.NaT/nat`` will represent miss
pd.TimedeltaIndex(['1 days', '1 days, 00:... | - [X] closes #21128
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Reboot of #21201. Should be good to merge on green based on comments in the previous PR, but will leave this open for a little bit to give anyone who missed the old PR a chance to review. | https://api.github.com/repos/pandas-dev/pandas/pulls/21566 | 2018-06-20T23:28:07Z | 2018-06-21T00:09:16Z | 2018-06-21T00:09:16Z | 2018-06-21T03:27:57Z |
ERR: Raise a simpler backtrace for missing key | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 15c5cc97b8426..a9c49b7476fa6 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -197,7 +197,7 @@ Strings
Indexing
^^^^^^^^
--
+- The traceback from a ``KeyError`` when asking ``.loc`` for a single... | - [x] closes #21557
- [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21558 | 2018-06-20T13:19:14Z | 2018-06-21T09:42:42Z | 2018-06-21T09:42:41Z | 2018-06-22T10:41:15Z |
Update tutorials.rst | diff --git a/doc/source/tutorials.rst b/doc/source/tutorials.rst
index 895fe595de205..6ccb921014bd8 100644
--- a/doc/source/tutorials.rst
+++ b/doc/source/tutorials.rst
@@ -203,3 +203,4 @@ Various Tutorials
- `Pandas Tutorial, by Mikhail Semeniuk <http://www.bearrelroll.com/2013/05/python-pandas-tutorial>`_
- `Pandas... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Added a new video listing.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21553 | 2018-06-20T05:23:33Z | 2018-06-20T09:46:45Z | null | 2018-06-20T09:46:45Z |
Update "See Also" section of pandas/core/generic.py | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 32f64b1d3e05c..555108a5d9349 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5175,8 +5175,7 @@ def convert_objects(self, convert_dates=True, convert_numeric=False,
--------
pandas.to_datetime : Convert argument to ... | Fix some minor text errors in `infer_objects` and `convert_objects`.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21550 | 2018-06-20T00:51:53Z | 2018-06-20T09:50:22Z | 2018-06-20T09:50:22Z | 2018-06-20T09:50:28Z |
use ccalendar instead of np_datetime | diff --git a/pandas/_libs/tslibs/ccalendar.pxd b/pandas/_libs/tslibs/ccalendar.pxd
index 42473a97a7150..04fb6eaf49c84 100644
--- a/pandas/_libs/tslibs/ccalendar.pxd
+++ b/pandas/_libs/tslibs/ccalendar.pxd
@@ -6,7 +6,7 @@ from cython cimport Py_ssize_t
from numpy cimport int64_t, int32_t
-cdef int dayofweek(int y, ... | Do Not Merge
AFAICT the np_datetime.c versions of these functions are noticeably more performant than the cython versions. I could use help verifying this observation since asv doesn't work well for me.
Best guess is that lookups in np_datetime.c's `days_per_month_table[2][12]` are more efficient than lookups in... | https://api.github.com/repos/pandas-dev/pandas/pulls/21549 | 2018-06-19T23:12:11Z | 2018-06-26T22:29:48Z | 2018-06-26T22:29:48Z | 2018-07-01T01:27:52Z |
style.bar: add support for axis=None (tablewise application instead of rowwise or columnwise) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index d7feb6e547b22..50845ee697113 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -725,9 +725,10 @@ Build Changes
Other
^^^^^
-- :meth: `~pandas.io.formats.style.Styler.background_gradient` now take... | - eliminate code duplication related to style.bar with different align modes
- add support for axis=None
- fix minor bug with align 'zero' and width < 100
- make generated CSS gradients more compact
- [x] Closes #21525
- [x] tests added / passed
- [x] passes `git diff origin/master -u -- "*.py" | flake8 --diff`... | https://api.github.com/repos/pandas-dev/pandas/pulls/21548 | 2018-06-19T23:08:25Z | 2018-08-30T12:46:57Z | 2018-08-30T12:46:57Z | 2018-08-30T12:47:03Z |
ENH: set accessor for Series (WIP) | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 4faec93490fde..9e1480144b2f5 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -686,6 +686,36 @@ strings and apply several methods to it. These can be accessed like
Series.dt
Index.str
+Set handling
+~~~~~~~~~~~~~~~
+``Series.set`` c... | Closes #4480, and a fair bit more that was discussed in comments. In particular, it makes the `numpy` methods NaN-safe, index aware, and adds a bit of wrapping convenience.
This is still a WIP, so no tests yet. Also more work to do on docstrings, whatsnew, and some overview documentation similar to `pandas/doc/sourc... | https://api.github.com/repos/pandas-dev/pandas/pulls/21547 | 2018-06-19T21:33:23Z | 2018-09-25T16:29:51Z | null | 2018-12-26T16:58:23Z |
BUG: Series.combine_first with datetime-tz dtype (#21469) | diff --git a/pandas/core/common.py b/pandas/core/common.py
index 1de8269c9a0c6..ec516d9d80023 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -410,19 +410,6 @@ def _apply_if_callable(maybe_callable, obj, **kwargs):
return maybe_callable
-def _where_compat(mask, arr1, arr2):
- if arr1.dtype... | - [x] closes #21469
- [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/21544 | 2018-06-19T15:38:23Z | 2018-06-27T19:11:10Z | null | 2018-06-27T19:11:46Z |
Fixed HDFSTore.groups() performance. | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 5b3e607956f7a..41b18ea1c4634 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -18,7 +18,7 @@ Fixed Regressions
- Fixed regression in :meth:`to_csv` when handling file-like object incorrectly (:is... | No longer walks every node, but rather every group.
- [x] closes #21372
- [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/21543 | 2018-06-19T14:51:55Z | 2018-06-21T09:47:12Z | 2018-06-21T09:47:12Z | 2018-07-02T23:25:35Z |
BUG: Fix group index calculation to prevent hitting maximum recursion depth (#21524) | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 0f2c9c4756987..a89a84a15bbdc 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -60,6 +60,7 @@ Bug Fixes
- Bug in :meth:`Index.get_indexer_non_unique` with categorical key (:issue:`21448`)
- Bug i... | This just replaces tail recursion call with a simple loop. It should have no effect whatsoever on a performance but prevent hitting recursion limits on some input data ( See example in my issue here: https://github.com/pandas-dev/pandas/issues/21524 )
- [x] closes #21524
- [x] tests added / passed
- [x] passes `g... | https://api.github.com/repos/pandas-dev/pandas/pulls/21541 | 2018-06-19T09:12:43Z | 2018-06-21T02:54:24Z | 2018-06-21T02:54:24Z | 2018-06-29T15:00:02Z |
BUG: Fix json_normalize throwing TypeError (#21536) | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 0f2c9c4756987..56ce4300e4561 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -65,7 +65,7 @@ Bug Fixes
**I/O**
- Bug in :func:`read_csv` that caused it to incorrectly raise an error when ``nrows... | Fix json_normalize throwing TypeError with array of values and record_prefix (#21536)
- [x] closes #21536
- [x] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21540 | 2018-06-19T09:09:28Z | 2018-06-22T23:07:22Z | 2018-06-22T23:07:22Z | 2018-06-29T15:04:11Z |
[TST] : Adding test cases to confirm that .apply() works fine | diff --git a/pandas/tests/sparse/frame/test_apply.py b/pandas/tests/sparse/frame/test_apply.py
index 07e4b1bf7c913..c591d51c53341 100644
--- a/pandas/tests/sparse/frame/test_apply.py
+++ b/pandas/tests/sparse/frame/test_apply.py
@@ -1,5 +1,6 @@
import pytest
import numpy as np
+import pandas as pd
from pandas import... | Adding test cases for closure of issue : Unexpected behaviour of apply function
- [x] closes #21535
- [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/21539 | 2018-06-19T09:00:49Z | 2018-06-21T10:12:12Z | null | 2018-06-21T10:12:12Z |
DOC: remove grammar duplication in groupby docs | diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst
index 1c4c3f93726a9..47d53c82b86f3 100644
--- a/doc/source/groupby.rst
+++ b/doc/source/groupby.rst
@@ -680,8 +680,7 @@ match the shape of the input array.
data_range = lambda x: x.max() - x.min()
ts.groupby(key).transform(data_range)
-Alternatively... | "can be could be" -> "could be" | https://api.github.com/repos/pandas-dev/pandas/pulls/21534 | 2018-06-19T03:33:19Z | 2018-06-19T08:30:48Z | 2018-06-19T08:30:48Z | 2018-06-19T12:20:22Z |
remove daytime attr, move getstate and setstate to base class | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 8caf9ea0e0389..3ca9bb307da9c 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -379,6 +379,45 @@ class _BaseOffset(object):
'got {n}'.format(n=n))
return nint
... | If/when #18224 is revived to make `_BaseOffset` a `cdef class`, we'll need to move `__getstate__` and `__setstate__` into the base class (and then make some changes). This moves the two methods pre-emptively so that we'll have a smaller diff for the next steps.
Also removes an attr `self.daytime` that is not used a... | https://api.github.com/repos/pandas-dev/pandas/pulls/21533 | 2018-06-19T01:04:42Z | 2018-06-19T11:12:53Z | 2018-06-19T11:12:53Z | 2018-06-22T03:27:52Z |
fixed unicode issue (21499) using requests library | diff --git a/pandas/io/html.py b/pandas/io/html.py
index 8fd876e85889f..3b43a136c5424 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -127,8 +127,8 @@ def _read(obj):
raw_text : str
"""
if _is_url(obj):
- with urlopen(obj) as url:
- text = url.read()
+ import requests
+... | - [x ] closes #21499
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21532 | 2018-06-18T19:01:02Z | 2018-06-18T23:12:51Z | null | 2018-06-18T23:12:51Z |
BUG: Allow IOErrors when attempting to retrieve default client encoding. | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 39ed5d968707b..49c63ac2e3f88 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -749,6 +749,7 @@ I/O
- :func:`read_sas()` will parse numbers in sas7bdat-files that have width less than 8 bytes correc... | - [X] closes #21552
When using mod_wsgi, access to sys.stdout is restricted by default. To handle this case, catch a base exception instead of a more specific AttributeError during this process to include the thrown IOError by mod_wsgi.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21531 | 2018-06-18T18:26:25Z | 2018-09-19T14:16:11Z | 2018-09-19T14:16:11Z | 2018-09-19T20:18:02Z |
PERF: remove useless overrides | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index b8d865195cddd..f7e170cca039e 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -27,6 +27,7 @@ Performance Improvements
- Improved performance of membership checks in :class:`CategoricalIndex`
(i.... | - [x] closes #21522
- [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Asv run:
```
before after ratio
[9e982e18] [705f0e3b]
- 243±7ms 186±4ms 0.77 multiindex_object.GetLoc.time_large_get_loc_... | https://api.github.com/repos/pandas-dev/pandas/pulls/21523 | 2018-06-18T13:07:25Z | 2018-06-18T21:43:00Z | 2018-06-18T21:42:59Z | 2018-06-29T14:55:16Z |
Fixing documentation lists indentation (#21518) | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 4faec93490fde..f2c00d5d12031 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -1200,9 +1200,9 @@ Attributes and underlying data
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Axes**
- * **items**: axis 0; each item corresponds to a DataFrame contained inside
... | - [X] closes #21518
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21519 | 2018-06-18T08:42:05Z | 2018-06-20T10:14:26Z | 2018-06-20T10:14:26Z | 2018-06-21T09:58:45Z |
Fix passing empty label to df drop | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 9271f58947f95..cae0d1a754d89 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -61,6 +61,7 @@ Bug Fixes
- Bug in :meth:`Index.get_indexer_non_unique` with categorical key (:issue:`21448`)
- Bug i... | - Closes #21494
- Tests added / passed
-Drop method in indexes/base.py, docs say KeyError should only be raised if **none** of labels are found in selected axis. However `pd.DataFrame(index=[1,2,3]).drop([1, 4])` throws.
-Makes behaviour consistent for .drop() across unique/non-unique indexes.
Both the below wi... | https://api.github.com/repos/pandas-dev/pandas/pulls/21515 | 2018-06-17T19:19:30Z | 2018-06-21T08:13:02Z | 2018-06-21T08:13:02Z | 2018-06-29T15:00:18Z |
split up pandas/tests/indexes/test_multi.py #18644 | diff --git a/pandas/tests/indexes/multi/__init__.py b/pandas/tests/indexes/multi/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/indexes/multi/conftest.py b/pandas/tests/indexes/multi/conftest.py
new file mode 100644
index 0000000000000..6cf9003500b61
--- /dev/null
+++ b/pa... | - [x] closes #18644
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
The file is split out, the number of tests remains 377 (2 skips on my machine; all other test cases pass), the code uses fixtures in all instances, new fixtures are in a local conftest.py file, and t... | https://api.github.com/repos/pandas-dev/pandas/pulls/21514 | 2018-06-17T18:02:28Z | 2018-07-03T23:36:54Z | 2018-07-03T23:36:53Z | 2018-07-15T17:19:13Z |
Maintain Dict Ordering with Concat | diff --git a/.gitignore b/.gitignore
index 96b1f945870de..82e2eb44e43e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -110,3 +110,4 @@ doc/source/styled.xlsx
doc/source/templates/
env/
doc/source/savefig/
+*my-dev-test.py
\ No newline at end of file
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0... | - [x] closes #21510
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
although the set is instance of dict, it should not sort if it is also instance of OrderedDict | https://api.github.com/repos/pandas-dev/pandas/pulls/21512 | 2018-06-16T19:26:07Z | 2018-10-11T01:52:22Z | null | 2018-10-11T01:52:23Z |
DOC: Improve code example for Index.get_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 6a56278b0da49..ffe8ea51a64a2 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3146,17 +3146,22 @@ def droplevel(self, level=0):
.. versionadded:: 0.21.0 (list-like tolerance)
- Examples
- ... | Make code example clearer for ``Index.get_indexer`` | https://api.github.com/repos/pandas-dev/pandas/pulls/21511 | 2018-06-16T17:52:42Z | 2018-06-19T08:20:13Z | 2018-06-19T08:20:13Z | 2018-06-19T08:39:34Z |
PERF: add method Categorical.__contains__ | diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py
index 48f42621d183d..73e3933122628 100644
--- a/asv_bench/benchmarks/categoricals.py
+++ b/asv_bench/benchmarks/categoricals.py
@@ -202,7 +202,11 @@ class Contains(object):
def setup(self):
N = 10**5
self.ci ... | - [x] closes #21022
- [x] xref #21369
- [x] tests added / passed
- [x] benchmark added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Currently, membership checks in ``Categorical`` is very slow as explained by @fjetter in #21022. This PR fixes the issue. See... | https://api.github.com/repos/pandas-dev/pandas/pulls/21508 | 2018-06-16T14:48:04Z | 2018-06-20T10:29:50Z | 2018-06-20T10:29:50Z | 2018-07-02T23:24:04Z |
Fix Timestamp rounding | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 9c4b408a1d24b..8c36d51a5fd16 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -54,7 +54,7 @@ Fixed Regressions
- Fixed regression in :meth:`to_csv` when handling file-like object incorrectly (:is... | - Closes #21262
- Tests added (thanks @Safrone [PR](https://github.com/pandas-dev/pandas/pull/21265))
This change-set is to avoid rounding a timestamp when the timestamp is a multiple of the frequency string passed in.
"Values" param passed into round_ns can either be a np array or int. So relevant handling add... | https://api.github.com/repos/pandas-dev/pandas/pulls/21507 | 2018-06-15T23:39:29Z | 2018-06-29T00:26:39Z | 2018-06-29T00:26:39Z | 2018-07-02T15:43:24Z |
PERF: avoid unnecessary recoding in CategoricalIndex._create_categorical | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index 7f2860a963423..93df0d377c4fe 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -172,7 +172,10 @@ def _create_categorical(self, data, categories=None, ordered=None,
data = data.set_or... | - [x] progress towards #20395
- [x] xref #21369
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This issue was found when looking for a solution to #20395. I've found that ``CategoricalIndex._create_categorical`` makes an unnecessary call to ``Categorical._set_dtype... | https://api.github.com/repos/pandas-dev/pandas/pulls/21506 | 2018-06-15T23:00:18Z | 2018-06-16T14:50:29Z | null | 2018-09-20T21:13:21Z |
wrap urlopen with requests | diff --git a/pandas/io/common.py b/pandas/io/common.py
index 3a67238a66450..22655ad86263e 100644
--- a/pandas/io/common.py
+++ b/pandas/io/common.py
@@ -30,14 +30,13 @@
if compat.PY3:
from urllib.request import urlopen, pathname2url
- _urlopen = urlopen
from urllib.parse import urlparse as parse_url
... | - [X] closes #16716
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Alternative to https://github.com/pandas-dev/pandas/pull/17087
I'll write the whatsnew entry, tests, and the session option for `html`, `json`, and `excel` if this path is ... | https://api.github.com/repos/pandas-dev/pandas/pulls/21504 | 2018-06-15T21:46:27Z | 2018-12-31T00:12:51Z | null | 2019-02-11T16:13:18Z |
De-duplicate code for indexing with list-likes of keys | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 02c86d2f4dcc8..383f129a713ed 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2723,7 +2723,8 @@ def _getitem_array(self, key):
indexer = key.nonzero()[0]
return self._take(indexer, axis=0)
else:
- ... | - [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Just refactoring, removing duplicated code (I don't think the bug in ``Index._reindex_non_unique`` was actually appearing anywhere) | https://api.github.com/repos/pandas-dev/pandas/pulls/21503 | 2018-06-15T21:00:39Z | 2018-06-19T20:36:56Z | 2018-06-19T20:36:56Z | 2018-06-19T22:26:26Z |
REGR: Fixes first_valid_index when DataFrame or Series has duplicate row index (GH21441) | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 0f2c9c4756987..2112b68c32bae 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -17,7 +17,8 @@ Fixed Regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`to_csv` when handling file-like obje... | - [x] closes #21441
- [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/21497 | 2018-06-15T12:15:45Z | 2018-06-20T10:33:08Z | 2018-06-20T10:33:07Z | 2018-06-29T14:59:07Z |
Tseries fixtures docstrings | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 255e0e165041b..a497bddaa3d09 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -218,7 +218,8 @@ def nulls_fixture(request):
nulls_fixture2 = nulls_fixture # Generate cartesian product of nulls_fixture
-TIMEZONES = [None, 'UTC', 'US/Eastern', 'As... | - [ ] xref #19159
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21496 | 2018-06-15T12:08:38Z | 2018-07-08T22:03:52Z | 2018-07-08T22:03:52Z | 2018-07-09T19:34:42Z |
PERF: improve speed of nans in CategoricalIndex | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index 7f2860a963423..0093d4940751e 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -326,7 +326,7 @@ def __contains__(self, key):
hash(key)
if isna(key): # if key is a NaN, check if a... | This is a minor follow-up to #21369.
```python
>>> n = 100_000
>>> ci = pd.CategoricalIndex(['a']*n + ['b']*n + ['c']*n + [np.nan])
>>> np.nan in ci
19.5 us # master
114 ns # this PR
```
Using ``self.hasnans`` to check for nans is faster than ``self.isna().any()`` because it's cached.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21493 | 2018-06-15T07:26:33Z | 2018-06-15T12:51:18Z | 2018-06-15T12:51:18Z | 2018-07-02T23:24:25Z |
TST: Add unit tests for older timezone issues | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index b8d865195cddd..d5f3cfa477eca 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -79,6 +79,11 @@ Bug Fixes
**Timezones**
- Bug in :class:`Timestamp` and :class:`DatetimeIndex` where passing a :class:... | - [x] closes #8616
- [x] closes #8910
- [x] closes #7825
- [x] closes #8306
- [x] closes #8531
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
In the spirit of your https://github.com/pandas-dev/pandas/pull/21407#issuecomment-396896678 @jreback, cleaned up some o... | https://api.github.com/repos/pandas-dev/pandas/pulls/21491 | 2018-06-15T06:25:05Z | 2018-06-18T22:34:30Z | 2018-06-18T22:34:28Z | 2018-06-26T07:44:36Z |
CLN: Index imports and 0.23.1 whatsnew | diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt
index db25bcf8113f5..af4eeffd87d01 100644
--- a/doc/source/whatsnew/v0.23.1.txt
+++ b/doc/source/whatsnew/v0.23.1.txt
@@ -97,8 +97,8 @@ Bug Fixes
**Data-type specific**
-- Bug in :meth:`Series.str.replace()` where the method throws `Typ... | xref @jreback https://github.com/pandas-dev/pandas/pull/21216#discussion_r195367428 and cleaned up some formatting in the 0.23.1 whatsnew where GH issues references didn't hyperlink
| https://api.github.com/repos/pandas-dev/pandas/pulls/21490 | 2018-06-15T05:36:59Z | 2018-06-15T12:50:06Z | 2018-06-15T12:50:06Z | 2018-06-29T14:49:30Z |
read_html: Handle colspan and rowspan | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 1b2033999d67d..d0b8f00150099 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -10,7 +10,7 @@ New features
- ``ExcelWriter`` now accepts ``mode`` as a keyword argument, enabling append to existing... | This is essentially a rebased and squashed #17054 (mad props to @jowens
for doing all the hard thinking). My tweaks:
* test_computer_sales_page (see #17074) no longer tests for ParserError,
because the ParserError was a bug caused by missing colspan support.
Now, test that MultiIndex works as expected.
* I r... | https://api.github.com/repos/pandas-dev/pandas/pulls/21487 | 2018-06-14T20:38:24Z | 2018-07-05T17:48:25Z | 2018-07-05T17:48:25Z | 2018-07-16T12:47:49Z |
API/COMPAT: support axis=None for logical reduction (reduce over all axes) | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 5b3e607956f7a..ca8d60051ff90 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -10,6 +10,36 @@ and bug fixes. We recommend that all users upgrade to this version.
:local:
:backlinks: none
... | - [x] closes #19976
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This is the minimal fix, just to get np.all / np.any working again.
Some followup items:
1. Expand to all aggregations, not just logical ones
2. Do logical reductions blo... | https://api.github.com/repos/pandas-dev/pandas/pulls/21486 | 2018-06-14T19:56:00Z | 2018-06-26T07:34:16Z | 2018-06-26T07:34:16Z | 2018-07-02T15:36:33Z |
BUG: Timedelta.__bool__ | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 70a5dd5817c3c..48efc02480e67 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -46,10 +46,13 @@ Bug Fixes
-
-
-**Conversion**
+**Timedelta**
+- Bug in :class:`Timedelta` where non-zero timedelt... | Closes #21484 | https://api.github.com/repos/pandas-dev/pandas/pulls/21485 | 2018-06-14T19:22:11Z | 2018-06-18T22:39:39Z | 2018-06-18T22:39:39Z | 2018-06-29T14:56:38Z |
Removing SimpleMock test from pandas.util.testing | diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index 233eba6490937..d26a2116fb3ce 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -2263,59 +2263,6 @@ def wrapper(*args, **kwargs):
with_connectivity_check = network
-class SimpleMock(object):
-
- """
- Poor man's mocking objec... | Removing SimpleMock test
- [x] closes #21475
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21482 | 2018-06-14T17:29:51Z | 2018-06-15T17:27:20Z | 2018-06-15T17:27:20Z | 2018-06-15T17:29:21Z |
BUG: Fix Index construction when given empty generator (#21470). | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 48efc02480e67..94669c5b02410 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -52,8 +52,9 @@ Bug Fixes
**Conversion**
+- Bug in constructing :class:`Index` with an iterator or generator (:issue... | - [ ] closes #21470
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21481 | 2018-06-14T17:26:40Z | 2018-06-18T22:43:28Z | 2018-06-18T22:43:27Z | 2018-06-29T14:56:58Z |
BUG/REG: file-handle object handled incorrectly in to_csv | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 3e4326dea2ecc..f562e782debda 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -16,7 +16,7 @@ and bug fixes. We recommend that all users upgrade to this version.
Fixed Regressions
~~~~~~~~~~~~~~~~~... | - [x] closes #https://github.com/pandas-dev/pandas/issues/21471
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This error related to PR #21249 and https://github.com/pandas-dev/pandas/issues/21227. This is never supported use case and to use fi... | https://api.github.com/repos/pandas-dev/pandas/pulls/21478 | 2018-06-14T17:03:53Z | 2018-06-18T22:45:26Z | 2018-06-18T22:45:26Z | 2018-06-29T14:57:18Z |
BUG: inconsistency between replace dict using integers and using strings (#20656) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index e28b15fcf621f..c340486c78a59 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -668,6 +668,7 @@ Reshaping
- :func:`pandas.core.groupby.GroupBy.rank` now raises a ``ValueError`` when an invalid value... | - [x] closes #20656
- [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/21477 | 2018-06-14T12:03:13Z | 2018-08-09T10:51:54Z | 2018-08-09T10:51:54Z | 2023-03-06T06:04:02Z |
BUG #21374: Fix divison with complex numbers in eval() method | diff --git a/pandas/core/computation/ops.py b/pandas/core/computation/ops.py
index ca0c4db4947c4..e9403a48dd157 100644
--- a/pandas/core/computation/ops.py
+++ b/pandas/core/computation/ops.py
@@ -466,7 +466,8 @@ def __init__(self, lhs, rhs, truediv, *args, **kwargs):
if truediv or PY3:
# do not... | - [ ] closes #21374
- [ ] tests added / passed
```python
data = {"a": [1 + 2j], "b": [1 + 1j]}
df = pd.DataFrame(data = data)
df.eval("a/b")
```
Expected output:
```python
df["a"]/df["b"]
0 (1.5+0.5j)
dtype: complex128
```
New result:
```python
df.eval("a/b")
0 (1.5+0.5j)
dtype: complex128
... | https://api.github.com/repos/pandas-dev/pandas/pulls/21472 | 2018-06-14T02:07:36Z | 2018-09-25T16:49:20Z | null | 2018-09-25T16:49:20Z |
Adding Multiindex support to dataframe pivot function(Fixes #21425) | diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py
index 3d9e84954a63b..b22d143544b7b 100644
--- a/pandas/core/reshape/reshape.py
+++ b/pandas/core/reshape/reshape.py
@@ -395,15 +395,29 @@ def pivot(self, index=None, columns=None, values=None):
See DataFrame.pivot
"""
if values ... | - [x] closes #21425
- [x] tests added/passed:
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew : Now dataframe.pivot function can take multiple columns as index
Added extra case to handle indexing on multiple colums in dataframe.pivot function
| https://api.github.com/repos/pandas-dev/pandas/pulls/21467 | 2018-06-13T17:09:24Z | 2019-02-06T03:30:55Z | null | 2019-02-06T03:30:56Z |
DOC : Update generic.py | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 32f64b1d3e05c..b38a9de7589f9 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6882,6 +6882,8 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
rule : string
the offset string or object... | Included documentation for 'how' in DataFrame.resample
- [x] closes #21463
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21465 | 2018-06-13T16:15:12Z | 2018-06-13T18:07:58Z | null | 2018-06-13T18:07:59Z |
Removing an un-needed conditional in np_datetime_strings.c | diff --git a/pandas/_libs/src/datetime/np_datetime_strings.c b/pandas/_libs/src/datetime/np_datetime_strings.c
index 2ea69e2ac1636..f5c403858a641 100644
--- a/pandas/_libs/src/datetime/np_datetime_strings.c
+++ b/pandas/_libs/src/datetime/np_datetime_strings.c
@@ -252,13 +252,9 @@ int parse_iso_8601_datetime(char *str,... |
- [x] closes #21422
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
PS: I was not able to build this properly on my setup, so would wait for the test builds to run.
Also, in which version should I put a whatsnew entry in? | https://api.github.com/repos/pandas-dev/pandas/pulls/21462 | 2018-06-13T14:16:25Z | 2018-11-23T03:26:42Z | null | 2018-11-23T03:26:42Z |
BUG: fix get_indexer_non_unique with CategoricalIndex key | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index ec2eddcfd4d41..611e5c4836c6f 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -55,7 +55,7 @@ Conversion
Indexing
^^^^^^^^
--
+- Bug in :meth:`Index.get_indexer_non_unique` with categorical key (... | - [x] closes #21448
- [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/21457 | 2018-06-13T08:34:17Z | 2018-06-13T13:24:02Z | 2018-06-13T13:24:02Z | 2018-06-29T14:48:15Z |
API/BUG: Raise when int-dtype coercions fail | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index c23ed006ff637..15c5cc97b8426 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -26,7 +26,7 @@ Other Enhancements
Backwards incompatible API changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.. _whatsne... | Related to the Index and Series constructors.
Closes #15832.
cc @ucals (since this is mostly based off what you did in #15859) | https://api.github.com/repos/pandas-dev/pandas/pulls/21456 | 2018-06-13T06:39:59Z | 2018-06-20T10:35:11Z | 2018-06-20T10:35:10Z | 2020-12-20T17:34:52Z |
Fix tests fragile to PATH | diff --git a/pandas/tests/plotting/test_converter.py b/pandas/tests/plotting/test_converter.py
index 47cded19f5300..bb976a1e3e81c 100644
--- a/pandas/tests/plotting/test_converter.py
+++ b/pandas/tests/plotting/test_converter.py
@@ -1,4 +1,5 @@
import subprocess
+import sys
import pytest
from datetime import datetim... | Closes #21450
Get path of current python interpreter running opposed to one on users path.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21453 | 2018-06-12T20:40:42Z | 2018-06-13T10:25:59Z | 2018-06-13T10:25:59Z | 2018-08-11T18:10:13Z |
PERF: typing and cdefs for tslibs.resolution | diff --git a/pandas/_libs/tslibs/resolution.pyx b/pandas/_libs/tslibs/resolution.pyx
index d0a9501afe566..7d6dcb9ecb831 100644
--- a/pandas/_libs/tslibs/resolution.pyx
+++ b/pandas/_libs/tslibs/resolution.pyx
@@ -5,7 +5,7 @@ from cython cimport Py_ssize_t
import numpy as np
cimport numpy as cnp
-from numpy cimport ... | Moving things lower-level will help improve performance (due in part to better Cython compilation). | https://api.github.com/repos/pandas-dev/pandas/pulls/21452 | 2018-06-12T19:28:29Z | 2018-06-14T10:12:02Z | 2018-06-14T10:12:02Z | 2018-06-22T03:27:55Z |
PERF: Use ccalendar.get_days_in_month over tslib.monthrange | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 0f58cfa761f21..4f73f196b0d9d 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -25,9 +25,7 @@ from tslibs.np_datetime cimport (check_dts_bounds,
_string_to_dts,
dt64_t... | asv looks like a wash, probably to be expected since these calls make up such a small part of the methods they are used in.
tslibs.resolution uses the stdlib calendar.monthrange instead of tslib.monthrange, so the perf bump should be bigger there. | https://api.github.com/repos/pandas-dev/pandas/pulls/21451 | 2018-06-12T19:19:24Z | 2018-06-13T10:32:55Z | 2018-06-13T10:32:55Z | 2018-06-13T14:43:49Z |
DOC: Fixed warning in doc build [ci skip] | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index 56fea1ccfd9dc..f683fd6892ea5 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -39,7 +39,7 @@ Use pandas DataFrames in your `scikit-learn <http://scikit-learn.org/>`__
ML pipeline.
`Featuretools <https://github.com/featuret... | [ci skip] | https://api.github.com/repos/pandas-dev/pandas/pulls/21449 | 2018-06-12T18:03:10Z | 2018-06-13T07:55:54Z | 2018-06-13T07:55:54Z | 2018-06-13T08:18:33Z |
perf improvements in tslibs.period | diff --git a/pandas/_libs/src/util.pxd b/pandas/_libs/src/util.pxd
index d8249ec130f4d..2c1876fad95d2 100644
--- a/pandas/_libs/src/util.pxd
+++ b/pandas/_libs/src/util.pxd
@@ -161,3 +161,18 @@ cdef inline bint _checknull(object val):
cdef inline bint is_period_object(object val):
return getattr(val, '_typ', '_... | Removes an unnecessary call to `frequencies.to_offset`, one of the last few non-cython dependencies in the file.
will post asv results when available. | https://api.github.com/repos/pandas-dev/pandas/pulls/21447 | 2018-06-12T16:49:49Z | 2018-06-15T17:19:04Z | 2018-06-15T17:19:04Z | 2018-06-22T03:27:54Z |
DOC: 0.23.1 release | diff --git a/doc/source/release.rst b/doc/source/release.rst
index fa03d614ed42c..7bbd4ba43e66f 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -37,10 +37,57 @@ analysis / manipulation tool available in any language.
* Binary installers on PyPI: https://pypi.org/project/pandas
* Documentation: htt... | https://api.github.com/repos/pandas-dev/pandas/pulls/21446 | 2018-06-12T16:42:40Z | 2018-06-12T16:42:56Z | 2018-06-12T16:42:56Z | 2018-06-12T17:00:56Z | |
Resolves Issue 21344: provide a timedelta in a non-string format | diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt
index db25bcf8113f5..51dcb324f538c 100644
--- a/doc/source/whatsnew/v0.23.1.txt
+++ b/doc/source/whatsnew/v0.23.1.txt
@@ -133,3 +133,4 @@ Bug Fixes
- Tab completion on :class:`Index` in IPython no longer outputs deprecation warnings (:iss... | - [x] closes #21344
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This extends the API - and there is a judgement call about how to treat nanosecond-resolution pd.Timedelta() objects in the context of datetime.timedelta() objects.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21444 | 2018-06-12T15:45:49Z | 2018-11-23T03:29:45Z | null | 2018-11-23T03:29:45Z |
0.23.1 backports 2 | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index 30cdb06b28487..6714398084186 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -38,7 +38,10 @@ Statsmodels leverages pandas objects as the underlying data container for comput
Use pandas DataFrames in your `scikit-learn <http:... | https://api.github.com/repos/pandas-dev/pandas/pulls/21442 | 2018-06-12T15:12:13Z | 2018-06-12T16:29:56Z | 2018-06-12T16:29:56Z | 2018-06-12T16:30:42Z | |
DOC: Add favicon to doc pages | diff --git a/doc/source/_static/favicon.ico b/doc/source/_static/favicon.ico
new file mode 100644
index 0000000000000..d15c4803b62e6
Binary files /dev/null and b/doc/source/_static/favicon.ico differ
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 5534700f0734a..29f947e1144ea 100644
--- a/doc/source/conf.py
... | This is a suggestion for adding a favicon to the doc pages. Having a favicon makes the pandas browser tabs easier to locate, especially with many open tabs or many pinned tabs.
I used the image from the pandas-dev GitHub organization, cropped some of the bars to make it appear less cluttered in the small favicon for... | https://api.github.com/repos/pandas-dev/pandas/pulls/21440 | 2018-06-12T14:20:38Z | 2018-06-13T07:57:30Z | 2018-06-13T07:57:30Z | 2018-06-13T07:58:37Z |
Fix flake8 in conf.py | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 909bd5a80b76e..5534700f0734a 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -78,7 +78,7 @@
]
try:
- import sphinxcontrib.spelling
+ import sphinxcontrib.spelling # noqa
except ImportError as err:
logger.warn(('sphinxc... | Sorry, I missed this in the PR of @datapythonista (for some reason travis was not run there) | https://api.github.com/repos/pandas-dev/pandas/pulls/21438 | 2018-06-12T09:12:50Z | 2018-06-12T09:15:13Z | 2018-06-12T09:15:13Z | 2018-06-12T09:15:17Z |
DOC: follow 0.23.1 template for 0.23.2 whatsnew | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index ec2eddcfd4d41..c636e73fbd6c2 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -10,16 +10,11 @@ and bug fixes. We recommend that all users upgrade to this version.
:local:
:backlinks: none
... | xref https://github.com/pandas-dev/pandas/pull/21433 (@gfyoung we changed some things since the v0.23.1.txt file was added) | https://api.github.com/repos/pandas-dev/pandas/pulls/21435 | 2018-06-12T07:45:09Z | 2018-06-12T07:54:12Z | 2018-06-12T07:54:12Z | 2018-06-29T14:46:19Z |
DOC: Add 0.23.2 whatsnew template | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
new file mode 100644
index 0000000000000..ec2eddcfd4d41
--- /dev/null
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -0,0 +1,82 @@
+.. _whatsnew_0232:
+
+v0.23.2
+-------
+
+This is a minor bug-fix release in the 0.23.x series and includes some sm... | Title is self-explanatory.
Copied (almost) directly from #21001.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21433 | 2018-06-11T23:56:19Z | 2018-06-12T00:15:30Z | 2018-06-12T00:15:30Z | 2018-06-29T14:45:57Z |
BUG: Fix Series.nlargest for integer boundary values | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 79a4c3da2ffa4..b8d865195cddd 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -82,4 +82,5 @@ Bug Fixes
**Other**
+- Bug in :meth:`Series.nlargest` for signed and unsigned integer dtypes when th... | - [X] closes #21426
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Also added some similar tests for float and datetimelike dtypes to ensure that the behavior is as desired. | https://api.github.com/repos/pandas-dev/pandas/pulls/21432 | 2018-06-11T23:37:11Z | 2018-06-15T17:21:37Z | 2018-06-15T17:21:37Z | 2018-06-29T14:50:52Z |
BUG: Nrows cannot be zero for read_csv. Fixes #21141 | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index 2c8f98732c92f..897019c5d4065 100755
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -1027,7 +1027,7 @@ def _failover_to_python(self):
raise com.AbstractMethodError(self)
def read(self, nrows=None):
- nrows = _validate_integer... | - [x] closes #21141
- [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/21431 | 2018-06-11T22:24:38Z | 2018-06-12T23:02:36Z | null | 2018-06-13T00:49:17Z |
disallow normalize=True with Tick classes | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 68c1839221508..43c75cde74b42 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -24,6 +24,41 @@ Other Enhancements
Backwards incompatible API changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.. _whatsn... | The problem: allowing `Tick` objects with `normalize=True` causes addition to lose monotonicity/associativity
```
ts = pd.Timestamp.now()
tick = pd.offsets.Minute(n=4, normalize=True)
>>> ts
Timestamp('2018-06-11 10:50:14.419655')
>>> ts + tick
Timestamp('2018-06-11 00:00:00')
```
- [x] closes #21434
- [x... | https://api.github.com/repos/pandas-dev/pandas/pulls/21427 | 2018-06-11T17:53:10Z | 2018-06-14T10:18:24Z | 2018-06-14T10:18:24Z | 2018-06-22T03:27:57Z |
API: re-allow duplicate index level names | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 9c4b408a1d24b..2df10592ab1af 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -53,6 +53,7 @@ Fixed Regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`to_csv` when handling file-like obje... | One possible solution for https://github.com/pandas-dev/pandas/issues/19029
WIP (need to clean up tests and possibly re-add some ones that have been removed in https://github.com/pandas-dev/pandas/pull/18882) | https://api.github.com/repos/pandas-dev/pandas/pulls/21423 | 2018-06-11T14:18:25Z | 2018-06-29T00:39:46Z | 2018-06-29T00:39:46Z | 2018-07-02T15:43:56Z |
DOC: fix grammar of deprecation message | diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py
index 6b55554cdc941..7d5753d03f4fc 100644
--- a/pandas/util/_decorators.py
+++ b/pandas/util/_decorators.py
@@ -140,8 +140,8 @@ def wrapper(*args, **kwargs):
if new_arg_name is None and old_arg_value is not None:
msg = (
... | https://api.github.com/repos/pandas-dev/pandas/pulls/21421 | 2018-06-11T12:42:58Z | 2018-06-11T15:14:48Z | 2018-06-11T15:14:48Z | 2018-06-11T15:19:23Z | |
Doc Fixes | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 2c40be17ce781..0e4f040253560 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -46,6 +46,15 @@ class _IndexSlice(object):
"""
Create an object to more easily perform multi-index slicing
+ See Also
+ --------
+ ... | Closes <#21308>
Note : Defined Levels section was added in the "Notes" section opposed to "See Also".
Description of "See Also" section [here](https://numpydoc.readthedocs.io/en/latest/format.html), suggests it should really link to other functions etc.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21415 | 2018-06-10T21:45:11Z | 2018-06-12T11:28:38Z | 2018-06-12T11:28:38Z | 2018-06-24T22:28:33Z |
Doc Fixes | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 20805e33bb1d3..75b6be96feb78 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1407,7 +1407,7 @@ def _sort_levels_monotonic(self):
This is an *internal* function.
- create a new MultiIndex f... | Minor doc fixes - make casing consistent and tense | https://api.github.com/repos/pandas-dev/pandas/pulls/21414 | 2018-06-10T20:03:53Z | 2018-06-11T11:28:55Z | 2018-06-11T11:28:55Z | 2018-06-11T22:43:09Z |
add dropna=False to crosstab example | diff --git a/pandas/core/reshape/pivot.py b/pandas/core/reshape/pivot.py
index 9a2ad5d13d77a..3390451c60c0f 100644
--- a/pandas/core/reshape/pivot.py
+++ b/pandas/core/reshape/pivot.py
@@ -446,7 +446,18 @@ def crosstab(index, columns, values=None, rownames=None, colnames=None,
>>> foo = pd.Categorical(['a', 'b'], ... | ```
>>> foo = pd.Categorical(['a', 'b'], categories=['a', 'b', 'c'])
>>> bar = pd.Categorical(['d', 'e'], categories=['d', 'e', 'f'])
>>> crosstab(foo, bar) # 'c' and 'f' are not represented in the data,
... # but they still will be counted in the output
col_0 d e f
row_0
a 1 0 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/21413 | 2018-06-10T20:03:30Z | 2018-06-12T11:31:11Z | 2018-06-12T11:31:11Z | 2018-06-12T11:50:42Z |
BUG: Categorical.__setitem__ allows for tuple assignment | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index c636e73fbd6c2..1e52fd83d2bd4 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -43,8 +43,11 @@ Bug Fixes
-
-
-**Conversion**
+**Data-type specific**
+
+- Bug in :meth:`Categorical.__setitem__` wh... | - [x] closes #20439
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Pretty straightforward fix in the `__setitem__` method
While I was looking into this, I discovered a bug that does not allow for the creation of mixed-dtype Categoricals, if... | https://api.github.com/repos/pandas-dev/pandas/pulls/21412 | 2018-06-10T19:16:09Z | 2018-07-16T22:48:17Z | null | 2018-07-16T22:48:17Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.