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 |
|---|---|---|---|---|---|---|---|
CLN: Lint for comprehension codes | diff --git a/ci/lint.sh b/ci/lint.sh
index ba5334310c34a..c7ea92e6a67e6 100755
--- a/ci/lint.sh
+++ b/ci/lint.sh
@@ -20,14 +20,14 @@ if [ "$LINT" ]; then
# pandas/_libs/src is C code, so no need to search there.
echo "Linting *.py"
- flake8 pandas --filename=*.py --exclude pandas/_libs/src --ignore=C406,... | xref #22122
Applying the lint comprehension codes that seem to be fully clean in specified paths in `lint.sh`
| https://api.github.com/repos/pandas-dev/pandas/pulls/22455 | 2018-08-22T06:06:51Z | 2018-08-22T10:05:14Z | 2018-08-22T10:05:14Z | 2018-08-22T15:59:24Z |
use fused types for reshape | diff --git a/pandas/_libs/reshape.pyx b/pandas/_libs/reshape.pyx
index 8d7e314517ed8..9f4e67ca4e256 100644
--- a/pandas/_libs/reshape.pyx
+++ b/pandas/_libs/reshape.pyx
@@ -1,15 +1,95 @@
# -*- coding: utf-8 -*-
-cimport cython
-from cython cimport Py_ssize_t
+import cython
+from cython import Py_ssize_t
-import nu... | - [ ] 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/22454 | 2018-08-21T23:40:56Z | 2018-09-18T12:43:14Z | 2018-09-18T12:43:14Z | 2018-09-18T13:51:39Z |
use fused types for parts of algos_common_helper | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 415e7026e09c8..d2914dc8ac751 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -353,6 +353,523 @@ def nancorr_spearman(ndarray[float64_t, ndim=2] mat, Py_ssize_t minp=1):
return result
+# --------------------------------------... | Broken off of #22432, which was a proof of concept. | https://api.github.com/repos/pandas-dev/pandas/pulls/22452 | 2018-08-21T22:02:35Z | 2018-09-18T12:45:00Z | 2018-09-18T12:45:00Z | 2019-04-30T06:24:01Z |
BUG fix IntegerArray.astype int -> uint | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index d7feb6e547b22..7f19bf9cfb5ea 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -42,7 +42,7 @@ Pandas has gained the ability to hold integer dtypes with missing values. This l
Here is an example of t... | Closes https://github.com/pandas-dev/pandas/issues/22440 | https://api.github.com/repos/pandas-dev/pandas/pulls/22441 | 2018-08-21T14:35:47Z | 2018-08-22T10:08:24Z | 2018-08-22T10:08:24Z | 2018-08-22T10:19:18Z |
Fixing _get_standard_colors to honor num_colors arguments (#20585) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index d7feb6e547b22..e363c77710d70 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -683,6 +683,7 @@ Plotting
- Bug in :func:`DataFrame.plot.scatter` and :func:`DataFrame.plot.hexbin` caused x-axis lab... | - [ ] closes #20585
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/22439 | 2018-08-21T10:31:39Z | 2018-11-23T03:37:26Z | null | 2018-11-23T03:37:26Z |
Fix DataFrame.to_string() justification | diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py
index 1ff0613876838..34deb3e22d1b8 100644
--- a/pandas/io/formats/format.py
+++ b/pandas/io/formats/format.py
@@ -650,8 +650,6 @@ def to_string(self):
self._chk_truncate()
strcols = self._to_str_columns()
... | - [ ] closes #16839, #13032
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Fixes justification with `DataFrame.to_string(index=False)`, but breaks other tests :-(
There are two side-effects of this PR, which will likely make it unacceptable,... | https://api.github.com/repos/pandas-dev/pandas/pulls/22437 | 2018-08-21T07:59:21Z | 2018-09-23T13:27:08Z | null | 2018-09-23T13:27:08Z |
BUG #19860 Corrected use of mixed indexes with .at | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 3e22084d98234..e70f3f0f6164b 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -663,6 +663,7 @@ Indexing
- Fixed ``DataFrame[np.nan]`` when columns are non-unique (:issue:`21428`)
- Bug when indexi... | `.at` incorrectly disallowed the use of integer indexes when a mixed index was used
```
s = Series([1,2,3,4,5],index=['a','b','c',1,2])
s.at['a'] # returns 1
s.at[1] # returns 4
s.at[4] # raises KeyError, doesn't do fallback indexing
```
Made sure fallback indexing doesn't happen on mixed indexes
- [X] ... | https://api.github.com/repos/pandas-dev/pandas/pulls/22436 | 2018-08-21T06:54:14Z | 2018-08-29T12:49:03Z | 2018-08-29T12:49:03Z | 2018-09-10T05:48:38Z |
POC Use fused types more, tempita less | diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in
index 42dda15ea2cbb..1fcecba0821c8 100644
--- a/pandas/_libs/algos_common_helper.pxi.in
+++ b/pandas/_libs/algos_common_helper.pxi.in
@@ -19,33 +19,44 @@ WARNING: DO NOT edit .pxi FILE directly, .pxi is generated from .pxi.in... | Low priority after other outstanding cython PRs; will run asvs before long.
Discussed in #22411. | https://api.github.com/repos/pandas-dev/pandas/pulls/22432 | 2018-08-20T18:16:26Z | 2018-08-21T22:02:58Z | null | 2018-08-21T22:02:59Z |
Pin blosc to 1.14.3 for travis-27 build | diff --git a/ci/travis-27.yaml b/ci/travis-27.yaml
index 3e94f334174e6..9c0347de9adfb 100644
--- a/ci/travis-27.yaml
+++ b/ci/travis-27.yaml
@@ -29,6 +29,7 @@ dependencies:
- PyCrypto
- pymysql=0.6.3
- pytables
+ - blosc=1.14.3
- python-blosc
- python-dateutil=2.5.0
- python=2.7*
diff --git a/pandas/... | This reverts commit 52e186af3e0fed9415a2db9e0c8d7d75d1267a54.
xref https://github.com/pandas-dev/pandas/issues/22427 and https://github.com/pandas-dev/pandas/pull/22424 | https://api.github.com/repos/pandas-dev/pandas/pulls/22429 | 2018-08-20T13:09:47Z | 2018-08-20T18:20:29Z | 2018-08-20T18:20:29Z | 2018-08-20T18:20:32Z |
Backport PR #22424 on branch 0.23.x | diff --git a/ci/travis-36-doc.yaml b/ci/travis-36-doc.yaml
index c22dddbe0ba3f..8705b82412e7c 100644
--- a/ci/travis-36-doc.yaml
+++ b/ci/travis-36-doc.yaml
@@ -36,6 +36,7 @@ dependencies:
- sphinx
- sqlalchemy
- statsmodels
+ - tzlocal
- xarray
- xlrd
- xlsxwriter
| Backport PR #22424: CI: add missing tzlocal dependency (rpy2, doc build) | https://api.github.com/repos/pandas-dev/pandas/pulls/22425 | 2018-08-20T05:59:23Z | 2018-08-20T11:04:29Z | 2018-08-20T11:04:29Z | 2018-08-20T11:04:29Z |
CI: add missing tzlocal dependency (rpy2, doc build) | diff --git a/ci/travis-36-doc.yaml b/ci/travis-36-doc.yaml
index 153a81197a6c7..abb0426dbe08e 100644
--- a/ci/travis-36-doc.yaml
+++ b/ci/travis-36-doc.yaml
@@ -36,6 +36,7 @@ dependencies:
- sphinx
- sqlalchemy
- statsmodels
+ - tzlocal
- xarray
- xlrd
- xlsxwriter
| - [x] closes #22412
- [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/22424 | 2018-08-19T22:27:36Z | 2018-08-20T05:58:42Z | 2018-08-20T05:58:42Z | 2018-08-20T05:58:53Z |
BUG: Ignore versionadded directive when checking for periods at docstring end | diff --git a/pandas/tests/scripts/test_validate_docstrings.py b/pandas/tests/scripts/test_validate_docstrings.py
index 1d35d5d30bba3..8156db6902e20 100644
--- a/pandas/tests/scripts/test_validate_docstrings.py
+++ b/pandas/tests/scripts/test_validate_docstrings.py
@@ -193,6 +193,27 @@ def contains(self, pat, case=True,... | Will ignore the `versionadded` directive when checking for `'.'` at the end of descriptions.
- [x] closes #22405
- [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/22423 | 2018-08-19T18:52:41Z | 2018-08-23T16:04:04Z | 2018-08-23T16:04:04Z | 2018-08-23T17:57:57Z |
CLN: Remove try-except in parse_dates test | diff --git a/pandas/tests/io/parser/parse_dates.py b/pandas/tests/io/parser/parse_dates.py
index 903439d2d2292..cb0d246abc823 100644
--- a/pandas/tests/io/parser/parse_dates.py
+++ b/pandas/tests/io/parser/parse_dates.py
@@ -8,15 +8,15 @@
from distutils.version import LooseVersion
from datetime import datetime, date
... | Follow-up to https://github.com/pandas-dev/pandas/pull/22418#pullrequestreview-147454897 | https://api.github.com/repos/pandas-dev/pandas/pulls/22422 | 2018-08-19T18:36:11Z | 2018-08-19T19:50:44Z | null | 2018-08-19T19:52:26Z |
Bug22373: Enhance documentation for RangeIndex | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 7237b7754b09e..fdd246134ae5c 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -177,7 +177,7 @@ class Index(IndexOpsMixin, PandasObject):
Parameters
----------
- data : array-like (1-dimensional)
+ ... | Corrects documentation for RangeIndex and enhances documentation for RangeIndex and RangeIndex.from_range
closes #22373
passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/22421 | 2018-08-19T17:34:41Z | 2018-12-02T00:35:31Z | null | 2018-12-02T00:35:31Z |
DOC: fix Dataframe.to_records examples | diff --git a/ci/doctests.sh b/ci/doctests.sh
index 04b3e14a7120a..fee33a0f93f40 100755
--- a/ci/doctests.sh
+++ b/ci/doctests.sh
@@ -21,7 +21,7 @@ if [ "$DOCTEST" ]; then
# DataFrame / Series docstrings
pytest --doctest-modules -v pandas/core/frame.py \
- -k"-assign -axes -combine -isin -itertuples -... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Fixed the examples of Dataframe.to_records related to timestamp conversion following the changes in default behaviour made in pull request #18902. As requested in issue #18160. | https://api.github.com/repos/pandas-dev/pandas/pulls/22419 | 2018-08-19T10:26:32Z | 2018-08-21T12:10:39Z | 2018-08-21T12:10:38Z | 2018-08-21T13:14:11Z |
Remove weird comment in parse_dates.py | diff --git a/pandas/tests/io/parser/parse_dates.py b/pandas/tests/io/parser/parse_dates.py
index 1bf055854de88..903439d2d2292 100644
--- a/pandas/tests/io/parser/parse_dates.py
+++ b/pandas/tests/io/parser/parse_dates.py
@@ -365,7 +365,7 @@ def test_parse_tz_aware(self):
assert stamp.minute == 39
try:... | Was added back in #12915...not sure why I did that. 😕 | https://api.github.com/repos/pandas-dev/pandas/pulls/22418 | 2018-08-19T09:44:14Z | 2018-08-19T10:48:48Z | 2018-08-19T10:48:48Z | 2018-08-19T12:08:38Z |
DEPR: Rename reps to repeats in Series.repeat | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 8c528e9b2e9f0..b37261ea79f21 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -517,6 +517,7 @@ Removal of prior version deprecations/changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- The `... | Title is self-explanatory.
xref #14645.
| https://api.github.com/repos/pandas-dev/pandas/pulls/22417 | 2018-08-19T07:17:57Z | 2018-08-20T10:37:44Z | 2018-08-20T10:37:43Z | 2018-08-20T18:12:23Z |
.ne fails if comparing a list of columns containing column name 'dtype' #22383 | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index ce629816a14c3..50387c3d98e8f 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1474,6 +1474,7 @@ Interval
Indexing
^^^^^^^^
+- Bug in :meth:`DataFrame.ne` fails if columns contain column name "d... | hello, this is my first pr in open source.
so , i think some things have problem.
if this pr has problem , tell me. i will fix again.
this issue occur Dataframe has column defined 'dtype' when execute .ne function.
i asked some advice which way is more better.
i) when make dataframe instance column name i... | https://api.github.com/repos/pandas-dev/pandas/pulls/22416 | 2018-08-19T06:53:34Z | 2018-12-31T13:19:05Z | 2018-12-31T13:19:05Z | 2018-12-31T14:44:40Z |
DEPR: Error with ambiguous groupby strings | diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst
index 45e449d081fb0..23d783ef832a9 100644
--- a/doc/source/groupby.rst
+++ b/doc/source/groupby.rst
@@ -106,9 +106,8 @@ consider the following ``DataFrame``:
.. versionadded:: 0.20
A string passed to ``groupby`` may refer to either a column or an in... | Title is self-explanatory.
xref #14432. | https://api.github.com/repos/pandas-dev/pandas/pulls/22415 | 2018-08-19T06:53:09Z | 2018-08-22T12:38:58Z | 2018-08-22T12:38:58Z | 2018-08-25T09:12:00Z |
BLD: Install scripts tests only during inplace | diff --git a/pandas/tests/scripts/test_validate_docstrings.py b/pandas/tests/scripts/test_validate_docstrings.py
index 1d35d5d30bba3..cebcbf5a61465 100644
--- a/pandas/tests/scripts/test_validate_docstrings.py
+++ b/pandas/tests/scripts/test_validate_docstrings.py
@@ -448,22 +448,37 @@ class TestValidator(object):
... | The `scripts` directory is not visible if the installation is not inplace.
Follow-up to #20061.
cc @WillAyd @datapythonista | https://api.github.com/repos/pandas-dev/pandas/pulls/22413 | 2018-08-19T00:31:45Z | 2018-08-21T10:14:33Z | 2018-08-21T10:14:33Z | 2018-08-22T06:47:18Z |
Changes to validate_docstring script to be able to check all docstrings at once | diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py
index 00496f771570b..27c63e3ba3a79 100644
--- a/scripts/tests/test_validate_docstrings.py
+++ b/scripts/tests/test_validate_docstrings.py
@@ -1,5 +1,6 @@
import string
import random
+import io
import pytest
import num... | - [ ] closes #xxxx
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This PR includes two main changes:
1. When calling the `scripts/validate_docstrings.py` script without parameters, it returns a JSON with the validation of all docstrings.
2. R... | https://api.github.com/repos/pandas-dev/pandas/pulls/22408 | 2018-08-18T13:28:48Z | 2018-10-13T18:20:49Z | 2018-10-13T18:20:49Z | 2018-10-13T18:43:10Z |
CLN: dedent else part of Series._get_with | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 4b92c6a029254..91be06dac0b47 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -829,47 +829,46 @@ def _get_with(self, key):
elif isinstance(key, ABCDataFrame):
raise TypeError('Indexing a Series with DataFrame is not ... | - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
There is a gigantic and unneeded ``else`` clause in ``Series._get_with`` and it makes the code hard to read.
This PR removes the else clause and dedents its content one level. This helps readability.
| https://api.github.com/repos/pandas-dev/pandas/pulls/22406 | 2018-08-17T22:16:15Z | 2018-08-20T10:41:54Z | 2018-08-20T10:41:54Z | 2018-10-27T08:19:10Z |
Updating `DataFrame.mode` docstring. | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 81d5c112885ec..b7c21b0f64a97 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -7248,38 +7248,82 @@ def _get_agg_axis(self, axis_num):
def mode(self, axis=0, numeric_only=False, dropna=True):
"""
- Gets the mode(s) of ea... | Supersedes #20241 (source branch does not exist anymore). | https://api.github.com/repos/pandas-dev/pandas/pulls/22404 | 2018-08-17T20:31:39Z | 2018-09-30T04:22:37Z | 2018-09-30T04:22:37Z | 2018-09-30T04:22:37Z |
Feat/bubble plot | diff --git a/doc/source/visualization.rst b/doc/source/visualization.rst
index dd8ccfcfd28ac..186e5fe7b8925 100644
--- a/doc/source/visualization.rst
+++ b/doc/source/visualization.rst
@@ -581,26 +581,58 @@ each point:
@savefig scatter_plot_colored.png
df.plot.scatter(x='a', y='b', c='c', s=50);
+The keyword ... | - [x] Closes #16827 partially : makes bubble plots possible by passing a column name as an argument ''s''
- [x] Replaces PR #20572 (updated and improved)
- [x] 2 tests added & passed
- [x] Passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] Whatsnew entry added for 0.24.0
| https://api.github.com/repos/pandas-dev/pandas/pulls/22403 | 2018-08-17T20:07:42Z | 2018-12-23T23:16:39Z | null | 2018-12-23T23:16:39Z |
Progress bar gbq | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 2a40dd28a6fd7..1e29a1290f143 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1103,7 +1103,8 @@ def to_dict(self, orient='dict', into=dict):
def to_gbq(self, destination_table, project_id, chunksize=None,
verbose=None,... | Add variable for progress bar
| https://api.github.com/repos/pandas-dev/pandas/pulls/22399 | 2018-08-17T17:15:10Z | 2018-08-31T16:04:43Z | null | 2018-08-31T16:04:53Z |
DOC: add pd.set_eng_float_format function in the API reference | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 551b3eff10fa0..722ddfd0b4fe6 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -2452,6 +2452,8 @@ Working with options
get_option
set_option
option_context
+ set_eng_float_format
+
Testing functions
~~~~~~~~~~~~~~~~~
diff --git a/pan... | - [x] closes #15610
- [N/A] 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/22395 | 2018-08-17T07:21:09Z | 2018-08-20T05:53:08Z | null | 2023-05-11T01:18:11Z |
Bug in DataFrame.drop_duplicates for empty DataFrame throws error | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index cf12759c051fc..9a77e3accb3dc 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -711,7 +711,7 @@ Reshaping
- Bug in :func:`get_dummies` with Unicode attributes in Python 2 (:issue:`22084`)
- Bug in ... | - [x] closes #20516
- [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/22394 | 2018-08-17T02:56:14Z | 2018-08-23T13:13:24Z | 2018-08-23T13:13:24Z | 2018-08-23T13:25:40Z |
Fix arithmetic errors with timedelta64 dtypes | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 317b8b8878308..e87e2d356d393 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -581,12 +581,14 @@ Datetimelike
- Bug in :class:`DataFrame` comparisons against ``Timestamp``-like objects failing to r... | Kind of surprising, but I don't see any Issues for these bugs. Might be because many of them were found after parametrizing arithmetic tests, so instead of Issues we had xfails.
xref #20088
xref #22163
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] wha... | https://api.github.com/repos/pandas-dev/pandas/pulls/22390 | 2018-08-16T20:35:04Z | 2018-08-23T10:37:07Z | 2018-08-23T10:37:07Z | 2018-08-23T15:46:31Z |
Support NDFrame.shift with EAs | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index d7feb6e547b22..a0f12179970c4 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -445,6 +445,7 @@ ExtensionType Changes
- Added ``ExtensionDtype._is_numeric`` for controlling whether an extension dtyp... | Uses take internally.
Closes https://github.com/pandas-dev/pandas/issues/22386
One question: do we want to add `shift` to the interface, and dispatch to that? This just does the right thing at the block level, by writing a `shift` that'll work with an ExtensionArray.
CategoricalBlock still overrides `.shift` t... | https://api.github.com/repos/pandas-dev/pandas/pulls/22387 | 2018-08-16T16:06:27Z | 2018-08-23T10:38:31Z | 2018-08-23T10:38:31Z | 2018-08-23T10:38:34Z |
WIP: EA SetArray | diff --git a/pandas/core/arrays/set.py b/pandas/core/arrays/set.py
new file mode 100644
index 0000000000000..d4a307270c74a
--- /dev/null
+++ b/pandas/core/arrays/set.py
@@ -0,0 +1,443 @@
+import sys
+import warnings
+import copy
+import numpy as np
+
+import operator
+
+from pandas import Series
+
+# from pandas._libs.... | This is very WIP, but might IMO be helpful in figuring out the EA interfaces, since it has some other requirements than the EAs so far. It makes some way towards #4480 and might be a basis for #21547, where the comments were effectively "make this an EA", e.g. @jreback:
> EA is an extension array & a dtype, both of wh... | https://api.github.com/repos/pandas-dev/pandas/pulls/22382 | 2018-08-16T06:31:29Z | 2018-11-23T03:21:47Z | null | 2018-11-23T03:21:47Z |
BUG: fix read_csv to parse timezone correctly | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index d7feb6e547b22..d09c9a4cd6a3d 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -676,6 +676,7 @@ I/O
- :func:`read_html()` no longer ignores all-whitespace ``<tr>`` within ``<thead>`` when consider... | Use `box=True` for `to_datetime()`, and adjust downstream processing to the change.
- [x] closes #22256
- [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/22380 | 2018-08-16T03:26:31Z | 2018-08-22T10:27:16Z | 2018-08-22T10:27:16Z | 2018-08-22T10:28:26Z |
Fix and test scalar extension dtype op corner case | diff --git a/pandas/core/ops.py b/pandas/core/ops.py
index 10418ccbb1f64..ddd82de2da5fc 100644
--- a/pandas/core/ops.py
+++ b/pandas/core/ops.py
@@ -1228,8 +1228,8 @@ def wrapper(left, right):
"{op}".format(typ=type(left).__name__, op=str_rep))
elif (is_extension_array_dtype(left... | Fixes the following behavior in master:
```
ser = pd.Series(['a', 'b', 'c'])
>>> ser + "category"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pandas/core/ops.py", line 1233, in wrapper
return dispatch_to_extension_op(op, left, right)
File "pandas/core/ops.py", line... | https://api.github.com/repos/pandas-dev/pandas/pulls/22378 | 2018-08-16T02:04:00Z | 2018-08-18T07:52:15Z | 2018-08-18T07:52:15Z | 2020-04-05T17:38:47Z |
BUG: Fix DataFrame.apply for string arg with additional args (#22376) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 0de9bebd68045..b83208ef497d3 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -634,6 +634,7 @@ Numeric
a ``TypeError`` was wrongly raised. For all three methods such calculation are now done corr... | - [x] closes #22376
- [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/22377 | 2018-08-16T00:26:04Z | 2018-08-23T10:42:56Z | 2018-08-23T10:42:55Z | 2018-08-23T10:42:59Z |
ENH: Enable DataFrame.corrwith to compute rank correlations | diff --git a/asv_bench/benchmarks/stat_ops.py b/asv_bench/benchmarks/stat_ops.py
index 500e4d74d4c4f..7fdc713f076ed 100644
--- a/asv_bench/benchmarks/stat_ops.py
+++ b/asv_bench/benchmarks/stat_ops.py
@@ -106,6 +106,7 @@ def setup(self, method, use_bottleneck):
from pandas.core import nanops
n... | This PR is to enable `DataFrame.corrwith` to calculate rank correlations in addition to Pearson's correlation (and should hopefully be fully backwards compatible), as well as clarifying functionality in the docstring . An error message is generated if the user specifies a form of correlation that isn't implemented. T... | https://api.github.com/repos/pandas-dev/pandas/pulls/22375 | 2018-08-16T00:14:57Z | 2018-12-31T13:17:55Z | 2018-12-31T13:17:54Z | 2018-12-31T15:50:50Z |
[CLN] remove last cython: nprofile comments | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 124792638e3df..908bf59987527 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -1,4 +1,4 @@
-# cython: profile=False
+# -*- coding: utf-8 -*-
cimport cython
from cython cimport Py_ssize_t
diff --git a/pandas/_libs/groupby.pyx b/pan... | Separates out parts of #22287 to troubleshoot persistent Travis failures. | https://api.github.com/repos/pandas-dev/pandas/pulls/22371 | 2018-08-15T16:47:17Z | 2018-08-16T10:08:10Z | 2018-08-16T10:08:10Z | 2020-04-05T17:40:23Z |
DOC: edit docstring example to prevent segfault (#21824) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b35bc8325d560..78ad9728800d6 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6896,21 +6896,21 @@ def count(self, axis=0, level=None, numeric_only=False):
Constructing DataFrame from a dictionary:
>>> df = pd.DataFrame({"... | See https://github.com/pandas-dev/pandas/issues/21824 for the segfault description, changing the example so running the doctests will work: https://github.com/pandas-dev/pandas/pull/19952 | https://api.github.com/repos/pandas-dev/pandas/pulls/22368 | 2018-08-15T13:49:58Z | 2018-08-15T16:09:51Z | 2018-08-15T16:09:51Z | 2018-08-15T16:11:16Z |
fixes #22085 (int type pandas.series.index contains float type key bug) | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index bfa669a0ca164..fb3cbfaaae6a5 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -1948,6 +1948,9 @@ def __nonzero__(self):
@Appender(_index_shared_docs['__contains__'] % _index_doc_kwargs)
def __contains__(s... | - [x] closes #22085
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
checks for type using is_float, is_integer_dtype and if key is a float that does not resolve to an equivalent int and Index is int, returns false. | https://api.github.com/repos/pandas-dev/pandas/pulls/22366 | 2018-08-15T12:50:39Z | 2018-08-16T14:44:20Z | null | 2019-10-23T20:51:40Z |
Resampler.__iter__() not working | diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst
index 45e449d081fb0..00f2735f76552 100644
--- a/doc/source/groupby.rst
+++ b/doc/source/groupby.rst
@@ -389,7 +389,7 @@ This is mainly syntactic sugar for the alternative and much more verbose:
Additionally this method avoids recomputing the internal groupin... | - [x] closes #15314
- [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/22365 | 2018-08-15T10:39:14Z | 2018-08-22T10:35:33Z | 2018-08-22T10:35:32Z | 2018-08-22T10:35:36Z |
TestPeriodIndex.test_resample_empty_dataframe is failed when I pass kwargs to Resampler._groupby_and_aggregate | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 3f84fa0f0670e..61dadd833be35 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1168,7 +1168,12 @@ def var(self, ddof=1, *args, **kwargs):
"""
nv.validate_groupby_func('var', args, kwar... | - [x] closes #22339
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
`test_resample.py::TestPeriodIndex::test_resample_empty_dataframe` triggers new changes
| https://api.github.com/repos/pandas-dev/pandas/pulls/22364 | 2018-08-15T09:34:14Z | 2018-08-17T07:59:21Z | null | 2018-08-17T07:59:21Z |
DOC: update doc-string in Index.rename | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index bfa669a0ca164..7237b7754b09e 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -1278,39 +1278,52 @@ def _set_names(self, values, level=None):
def set_names(self, names, level=None, inplace=False):
""... | updated doc-strings with examples
- [x] closes #20787
- N/A 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/22363 | 2018-08-15T09:02:50Z | 2018-08-19T10:00:46Z | 2018-08-19T10:00:45Z | 2018-08-19T10:01:25Z |
BUG: Check types in Index.__contains__ (#22085) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 9e1d2487b00fe..3643023637d4c 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -658,6 +658,7 @@ Indexing
- Bug when indexing :class:`DatetimeIndex` with nanosecond resolution dates and timezones (:i... | - [x] closes #22085
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I added is_float, is_integer_dtype in Index.\_\_contains\_\_.
If key is float and dtype of Index object is integer, return False. | https://api.github.com/repos/pandas-dev/pandas/pulls/22360 | 2018-08-15T07:36:17Z | 2018-09-05T06:13:49Z | null | 2018-09-05T07:14:21Z |
DOC: Expose ExcelWriter as part of the Generated API | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 551b3eff10fa0..d2bc11adc4d11 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -61,6 +61,12 @@ Excel
read_excel
ExcelFile.parse
+.. autosummary::
+ :toctree: generated/
+ :template: autosummary/class_without_autosummary.rst
+
+ ExcelWr... | - [x] closes #21835
- N/A 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/22359 | 2018-08-15T07:26:58Z | 2018-09-18T12:54:32Z | 2018-09-18T12:54:31Z | 2018-09-18T14:51:08Z |
Fix index locator cast bool key to float. | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index b37261ea79f21..39eae9643b6b4 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -655,6 +655,7 @@ Indexing
- Fixed ``DataFrame[np.nan]`` when columns are non-unique (:issue:`21428`)
- Bug when indexi... | - closes #19087
| https://api.github.com/repos/pandas-dev/pandas/pulls/22357 | 2018-08-15T05:05:13Z | 2018-08-22T10:31:00Z | 2018-08-22T10:31:00Z | 2018-08-22T10:31:06Z |
CLN/DEPR: removed deprecated as_indexer arg from str.match() | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index cf12759c051fc..321561b4df6b4 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -518,7 +518,7 @@ Removal of prior version deprecations/changes
- The ``LongPanel`` and ``WidePanel`` classes have been ... | - [x] closes #22316
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
removed as_indexer(deprecated of 0.20.0) arg completely from str.match. | https://api.github.com/repos/pandas-dev/pandas/pulls/22356 | 2018-08-15T02:56:54Z | 2018-09-07T09:06:16Z | null | 2023-05-11T01:18:11Z |
Grab timezones appropriately in timetz test | diff --git a/pandas/tests/series/test_datetime_values.py b/pandas/tests/series/test_datetime_values.py
index 06eb525bbac56..b9eaa76cbe068 100644
--- a/pandas/tests/series/test_datetime_values.py
+++ b/pandas/tests/series/test_datetime_values.py
@@ -15,8 +15,7 @@
date_range, period_range, timedelta_... | - [x] closes #22337
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` | https://api.github.com/repos/pandas-dev/pandas/pulls/22354 | 2018-08-14T23:29:46Z | 2018-08-16T10:32:32Z | 2018-08-16T10:32:32Z | 2018-08-16T16:54:39Z |
~Finish Collecting Arithmetic Tests | diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py
index 844472b8bcf0d..63df26706b3ec 100644
--- a/pandas/tests/arithmetic/conftest.py
+++ b/pandas/tests/arithmetic/conftest.py
@@ -30,12 +30,21 @@ def zero(request):
@pytest.fixture(params=[pd.Float64Index(np.arange(5, dtype='float... | De-duplicate fixtures and put nearly all of them in conftest | https://api.github.com/repos/pandas-dev/pandas/pulls/22350 | 2018-08-14T21:56:07Z | 2018-09-09T01:36:56Z | null | 2018-09-09T01:37:09Z |
Drop redundant TestLocale | diff --git a/pandas/tests/util/test_testing.py b/pandas/tests/util/test_testing.py
index dee01ab6efff6..da84973274933 100644
--- a/pandas/tests/util/test_testing.py
+++ b/pandas/tests/util/test_testing.py
@@ -848,18 +848,6 @@ def test_RNGContext(self):
assert np.random.randn() == expected0
-class TestL... | We have the `TestLocaleUtils` class in `tests/util/test_util.py`
https://github.com/pandas-dev/pandas/blob/master/pandas/tests/util/test_util.py#L421
which is more comprehensive and includes `test_get_locales` which is functionally identical.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff u... | https://api.github.com/repos/pandas-dev/pandas/pulls/22349 | 2018-08-14T17:31:41Z | 2018-08-16T10:43:03Z | 2018-08-16T10:43:03Z | 2018-08-17T12:27:31Z |
API: ExtensionDtype._is_numeric | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index a018b4997bf7d..d7feb6e547b22 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -442,6 +442,7 @@ ExtensionType Changes
- ``ExtensionArray`` has gained the abstract methods ``.dropna()`` (:issue:`2118... | closes #22290
split from https://github.com/pandas-dev/pandas/pull/22325
It's not clear what else we should be testing, since I'm not sure what all uses `Block.is_numeric`.
cc @jschendel | https://api.github.com/repos/pandas-dev/pandas/pulls/22345 | 2018-08-14T15:37:19Z | 2018-08-20T11:18:11Z | 2018-08-20T11:18:11Z | 2018-08-20T14:02:54Z |
[CLN] Make more of numpy_helper unnecessary | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index 5918560cf1436..2fed95ff9ba3e 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -319,15 +319,14 @@ cdef class IndexEngine:
# form the set of the results (like ismember)
members = np.empty(n, dtype=np.uint8)
fo... | https://api.github.com/repos/pandas-dev/pandas/pulls/22344 | 2018-08-14T15:26:50Z | 2018-08-16T10:46:59Z | 2018-08-16T10:46:59Z | 2018-08-16T16:14:43Z | |
API: dispatch to EA.astype | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index cf12759c051fc..65494c7a789e2 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -446,7 +446,7 @@ ExtensionType Changes
- Bug in :meth:`Series.get` for ``Series`` using ``ExtensionArray`` and integer ... | Closes https://github.com/pandas-dev/pandas/issues/21296
split from https://github.com/pandas-dev/pandas/pull/22325
Note that this is just a partial fix to get sparse working. We have some issues:
for better or worse, categorical is still special cased. `Series[EA].astype('category')` will not yet dispatch to ... | https://api.github.com/repos/pandas-dev/pandas/pulls/22343 | 2018-08-14T14:32:39Z | 2018-08-20T11:07:36Z | 2018-08-20T11:07:35Z | 2018-08-20T12:12:22Z |
CLN: remove Index.__inv__ , add Index.__invert__ | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 9b70bda82e247..db5045b55a2b8 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -614,6 +614,8 @@ Indexing
- Fixed ``DataFrame[np.nan]`` when columns are non-unique (:issue:`21428`)
- Bug when indexi... | - [x] closes #22335
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
@jreback @jorisvandenbossche suggestions on where to put a test (``pandas/tests/test_arithmetic.py`` would seem the right place, except it only contains tests involving datetime... | https://api.github.com/repos/pandas-dev/pandas/pulls/22336 | 2018-08-14T10:01:06Z | 2018-11-04T16:15:04Z | null | 2018-11-04T16:15:05Z |
BUG: Interval scalar arithmetic operations reset closed | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 9b70bda82e247..75c2a8acdc859 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -600,7 +600,7 @@ Interval
- Bug in the :class:`IntervalIndex` constructor where the ``closed`` parameter did not alwa... | - [X] closes #22313
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Including this with 0.24.0 for the time being; I think this would be easy to backport into 0.23.5 since this looks to be disjoint from the other interval related changes but tho... | https://api.github.com/repos/pandas-dev/pandas/pulls/22331 | 2018-08-14T04:24:22Z | 2018-08-14T14:28:28Z | 2018-08-14T14:28:28Z | 2018-08-14T14:28:57Z |
CLN: de-duplicate index validation code | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index 293f067810f27..b7a1471ae5a9e 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -50,23 +50,7 @@ cpdef get_value_at(ndarray arr, object loc, object tz=None):
cpdef object get_value_box(ndarray arr, object loc):
- cdef:
- P... | There are currently 3 nearly-identical versions of this code. I'm pretty sure the strictest one is the most-correct, so that is made into the only one. | https://api.github.com/repos/pandas-dev/pandas/pulls/22329 | 2018-08-14T01:43:07Z | 2018-08-22T10:37:56Z | 2018-08-22T10:37:56Z | 2018-08-22T13:47:40Z |
CLN: Parameterize test case | diff --git a/pandas/tests/scalar/timestamp/test_unary_ops.py b/pandas/tests/scalar/timestamp/test_unary_ops.py
index 9f000a6f22cd6..bf41840c58ded 100644
--- a/pandas/tests/scalar/timestamp/test_unary_ops.py
+++ b/pandas/tests/scalar/timestamp/test_unary_ops.py
@@ -19,26 +19,19 @@ class TestTimestampUnaryOps(object):
... | - [y] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/22327 | 2018-08-13T23:07:19Z | 2018-08-14T10:08:58Z | 2018-08-14T10:08:58Z | 2018-08-14T10:09:01Z |
SparseArray is an ExtensionArray | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index a05ef67a7238f..67b166db89647 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -380,6 +380,37 @@ is the case with :attr:`Period.end_time`, for example
p.end_time
+.. _whatsnew_0240.api_breaki... | Closes #21978
Closes #19506
Closes https://github.com/pandas-dev/pandas/issues/22835
High-level summary: SparseArray is an ExtensionArray. It's no longer an ndarray subclass. The actual data model hasn't changed at all, it's still an array and a `sparse_index`. Only now the sparse values are `self.sparse_values`... | https://api.github.com/repos/pandas-dev/pandas/pulls/22325 | 2018-08-13T20:02:46Z | 2018-10-13T11:37:14Z | 2018-10-13T11:37:13Z | 2021-11-30T15:01:35Z |
CLN: Remove deprecated method | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index b7771436f8e55..1e982a59fc460 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -423,14 +423,6 @@ resulting ``DatetimeIndex``:
Custom Frequency Ranges
~~~~~~~~~~~~~~~~~~~~~~~
-.. warning::
-
- This functionality was or... | These params are no longer in the method, therefore can remove the docs strings
| https://api.github.com/repos/pandas-dev/pandas/pulls/22324 | 2018-08-13T19:56:32Z | 2018-08-13T23:58:26Z | null | 2023-05-11T01:18:10Z |
CLN: Remove unused param | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index bfa669a0ca164..216fe3558cc3d 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4695,7 +4695,7 @@ def _maybe_update_attributes(self, attrs):
""" Update Index attributes (e.g. freq) depending on op """
... | Param no longer used. Can remove it from single caller of this function | https://api.github.com/repos/pandas-dev/pandas/pulls/22323 | 2018-08-13T19:50:17Z | 2018-11-04T16:15:36Z | null | 2018-11-04T16:15:36Z |
CLN: Remove variable assignment on CI script | diff --git a/ci/print_skipped.py b/ci/print_skipped.py
index dd2180f6eeb19..67bc7b556cd43 100755
--- a/ci/print_skipped.py
+++ b/ci/print_skipped.py
@@ -10,7 +10,7 @@ def parse_results(filename):
root = tree.getroot()
skipped = []
- current_class = old_class = ''
+ current_class = ''
i = 1
a... | Looks to me like this variable assignment is not required since on line 19 `old_class = current_class` | https://api.github.com/repos/pandas-dev/pandas/pulls/22322 | 2018-08-13T19:49:26Z | 2018-08-14T00:05:41Z | 2018-08-14T00:05:41Z | 2018-08-26T18:38:16Z |
CLN: Remove unused method | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 37f4415776b83..5b2e3a76adf05 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -752,11 +752,6 @@ def _constructor(self):
def inferred_type(self):
return 'mixed'
- @staticmethod
- def _from_... | - [y] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This method isn't used anywhere in the codebase, good to delete? | https://api.github.com/repos/pandas-dev/pandas/pulls/22321 | 2018-08-13T19:45:35Z | 2018-08-14T10:10:05Z | 2018-08-14T10:10:05Z | 2018-08-14T10:10:10Z |
Bump pytest | diff --git a/ci/environment-dev.yaml b/ci/environment-dev.yaml
index 8d516a6214f95..f66a831aae0f5 100644
--- a/ci/environment-dev.yaml
+++ b/ci/environment-dev.yaml
@@ -8,7 +8,7 @@ dependencies:
- flake8
- flake8-comprehensions
- moto
- - pytest>=3.1
+ - pytest>=3.6
- python-dateutil>=2.5.0
- python=3
... | - [X] closes #22319
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
@TomAugspurger | https://api.github.com/repos/pandas-dev/pandas/pulls/22320 | 2018-08-13T19:26:18Z | 2018-08-16T10:54:19Z | 2018-08-16T10:54:18Z | 2019-02-28T07:23:23Z |
DEPR: join_axes-kwarg in pd.concat | diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst
index 43d44ff30c64a..6e63e672bb968 100644
--- a/doc/source/user_guide/merging.rst
+++ b/doc/source/user_guide/merging.rst
@@ -70,9 +70,8 @@ some configurable handling of "what to do with the other axes":
::
- pd.concat(objs, axis... | - [x] closes #21951
- [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/22318 | 2018-08-13T19:22:29Z | 2019-07-03T11:32:54Z | 2019-07-03T11:32:54Z | 2019-07-31T13:32:50Z |
DOC/DEPR: clarify argmin/argmax deprecation message | diff --git a/pandas/core/series.py b/pandas/core/series.py
index b84179875db1f..d80a9a0fc52f4 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1807,16 +1807,22 @@ def idxmax(self, axis=0, skipna=True, *args, **kwargs):
argmin = deprecate(
'argmin', idxmin, '0.21.0',
msg=dedent("... | Attempt to better phrase the message, xref https://github.com/pandas-dev/pandas/issues/16830#issuecomment-412211029 | https://api.github.com/repos/pandas-dev/pandas/pulls/22310 | 2018-08-13T12:26:08Z | 2018-08-13T16:33:45Z | 2018-08-13T16:33:45Z | 2018-08-14T08:45:43Z |
BUG: Fix float formatting when a string is passed as float_format arg | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 4ff3cc728f7f7..0fad0dc65edaa 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1395,6 +1395,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form
- Bug in :meth:`rea... | closes #21625
closes #22270.
If a string `float_format` argument is passed by the user to `to_string`, `to_latex`, `to_html`, etc, then disable fixed width, so that now e.g.
```python
df.to_string(float_format='%.3f')
```
will give the same result as
```python
df.to_string(float_format=lambda x: '%.3f' % x)
... | https://api.github.com/repos/pandas-dev/pandas/pulls/22308 | 2018-08-13T10:05:39Z | 2018-11-26T13:59:23Z | 2018-11-26T13:59:22Z | 2018-11-26T14:21:49Z |
DOC: fixes to DataFrame.plot.area docstring | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 85b2738e572b6..4fa3b51c60ee4 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -3385,25 +3385,13 @@ def area(self, x=None, y=None, **kwds):
.. plot::
:context: close-figs
- >>> df = pd.DataFra... | Follow-up on https://github.com/pandas-dev/pandas/pull/20170 | https://api.github.com/repos/pandas-dev/pandas/pulls/22307 | 2018-08-13T09:57:28Z | 2018-08-14T08:46:43Z | 2018-08-14T08:46:43Z | 2018-08-14T08:46:46Z |
ENH: add quantile method to resample | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 551b3eff10fa0..77d37ec2a7b2e 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -2352,6 +2352,7 @@ Computations / Descriptive Stats
Resampler.std
Resampler.sum
Resampler.var
+ Resampler.quantile
Style
-----
diff --git a/doc/source/wha... | - [x] closes #15023
- [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/22304 | 2018-08-13T07:28:02Z | 2018-08-22T12:27:04Z | 2018-08-22T12:27:03Z | 2018-08-22T12:27:10Z |
DOC fix parenthesis placement in style docs | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 808b6979b235e..4d68971bf0ef6 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -577,7 +577,7 @@ def apply(self, func, axis=0, subset=None, **kwargs):
-----
The output shape of ``func`` should match the... | https://api.github.com/repos/pandas-dev/pandas/pulls/22301 | 2018-08-13T05:47:35Z | 2018-08-13T05:57:51Z | 2018-08-13T05:57:51Z | 2018-08-13T09:50:25Z | |
Use a more helpful error message for invalid correlation methods in DataFrame.corr | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 9b70bda82e247..b30b2c885be40 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -468,6 +468,7 @@ Other API Changes
- :meth:`PeriodIndex.tz_convert` and :meth:`PeriodIndex.tz_localize` have been remov... | `DataFrame.corr` currently returns a `KeyError` for invalid correlation methods. The proposed change would instead return a `ValueError` with an error message reminding the user of the valid correlation methods.
```
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.normal(size=(10, 3)))
df.co... | https://api.github.com/repos/pandas-dev/pandas/pulls/22298 | 2018-08-12T23:53:02Z | 2018-08-18T19:48:01Z | 2018-08-18T19:48:01Z | 2018-08-18T19:53:34Z |
BUG: don't mangle NaN-float-values and pd.NaT (GH 22295) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 649629714c3b1..ff9661bcd37fc 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -720,13 +720,16 @@ Indexing
- Bug where mixed indexes wouldn't allow integers for ``.at`` (:issue:`19860`)
- ``Float64... | it is more or less the clean-up after PR #21904 and PR #22207, the underlying hash-map handles all cases correctly out-of-the box and thus no special handling is needed.
As a collateral, the mangling of NaNs and NaT is fixed.
- [x] closes #22295
- [x] closes #22332
- [x] tests added / passed
- [x] passes `git... | https://api.github.com/repos/pandas-dev/pandas/pulls/22296 | 2018-08-12T20:10:14Z | 2018-09-18T12:51:16Z | 2018-09-18T12:51:16Z | 2018-09-19T11:00:36Z |
TST: Add test of DataFrame.xs() with duplicates (#13719) | diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py
index dcfeab55f94fc..ecd0af9c13d34 100644
--- a/pandas/tests/test_multilevel.py
+++ b/pandas/tests/test_multilevel.py
@@ -10,7 +10,8 @@
import numpy as np
from pandas.core.index import Index, MultiIndex
-from pandas import Panel, DataFra... | Added tests of DataFrame.xs() method for multilevel index containing duplicates. The underlying bug reported in #13719 was fixed previously, but was not covered by specific unit tests.
- [ ] closes #13719
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsn... | https://api.github.com/repos/pandas-dev/pandas/pulls/22294 | 2018-08-12T16:35:54Z | 2018-09-15T12:37:25Z | 2018-09-15T12:37:25Z | 2018-09-15T15:42:02Z |
Bug: Logical operator of Series with Index (#22092) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 649629714c3b1..a8204ffb356a5 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -796,7 +796,8 @@ Other
- :meth:`~pandas.io.formats.style.Styler.background_gradient` now takes a ``text_color_threshold... | - [ ] closes #22092
- [ ] 1 test added for &, | and ^ logical operator of series
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/22293 | 2018-08-12T14:15:20Z | 2018-09-18T13:54:15Z | 2018-09-18T13:54:15Z | 2018-09-18T13:54:15Z |
Remove unused param/method | diff --git a/ci/print_skipped.py b/ci/print_skipped.py
index dd2180f6eeb19..980f47fce4ce7 100755
--- a/ci/print_skipped.py
+++ b/ci/print_skipped.py
@@ -10,7 +10,7 @@ def parse_results(filename):
root = tree.getroot()
skipped = []
- current_class = old_class = ''
+ current_class = ''
i = 1
a... | - [y] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
-Remove unused param "op" in `_validate_for_numeric_unaryop`. ( Param remove from single call of function)
-Static method `_from_element` appears to be unused
| https://api.github.com/repos/pandas-dev/pandas/pulls/22289 | 2018-08-12T00:39:32Z | 2018-08-13T20:01:43Z | null | 2018-08-13T20:01:43Z |
API: Add CalendarDay ('CD') offset | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index f5d1007dfbbbb..5dfac98d069e7 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -369,7 +369,7 @@ In practice this becomes very cumbersome because we often need a very long
index with a large number of timestamps. If we need... | - [x] closes #22274
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Adds `CalendarDay` and `'CD'` offset and alias respectively and changes `Day` (`'D'`) in `date_range` to respect calendar day.
With regards to `CalendarDay` added tests for:... | https://api.github.com/repos/pandas-dev/pandas/pulls/22288 | 2018-08-12T00:26:27Z | 2018-09-07T12:08:14Z | 2018-09-07T12:08:14Z | 2022-05-19T03:03:08Z |
[CLN] More Misc Cleanups in _libs | diff --git a/pandas/_libs/algos.pxd b/pandas/_libs/algos.pxd
index a535872ff7279..0888cf3c85f2f 100644
--- a/pandas/_libs/algos.pxd
+++ b/pandas/_libs/algos.pxd
@@ -1,10 +1,12 @@
from util cimport numeric
-from numpy cimport float64_t, double_t
+
cpdef numeric kth_smallest(numeric[:] a, Py_ssize_t k) nogil
+
cde... | cpdef --> cdef in a few cases
modernize string formatting
modernize for loop syntax
Should be orthogonal to other outstanding PR(s) | https://api.github.com/repos/pandas-dev/pandas/pulls/22287 | 2018-08-11T22:49:06Z | 2018-08-20T11:13:10Z | 2018-08-20T11:13:10Z | 2018-08-24T04:07:19Z |
ENH: add inplace-kwarg to df.update | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index ed1bf0a4f8394..15a30c19c5434 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -187,9 +187,11 @@ Other Enhancements
- :class:`Series` and :class:`DataFrame` now support :class:`Iterable` in construc... | - [x] closes #21858
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
There wasn't a lot of discussion yet in #21858, so I thought I'd speed things up with a PR. So far:
* @gfyoung @toobaz (in https://github.com/pandas-dev/pandas/issues/21855#iss... | https://api.github.com/repos/pandas-dev/pandas/pulls/22286 | 2018-08-11T22:47:43Z | 2018-12-03T01:59:21Z | null | 2018-12-03T06:56:15Z |
[PERF] use numexpr in dispatch_to_series | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 4faf4e88e5a3c..251bc6587872d 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4837,15 +4837,23 @@ def _arith_op(left, right):
copy=False)
def _combine_match_index(self, other, func, level=None):
+... | Also avoid copy/cast in mixed-dtype case for `_combine_match_index`
Lets us use `dispatch_to_series` and get rid of `DataFrame._compare_frame`.
```
asv continuous -f 1.1 -E virtualenv master HEAD -b binary_ops
[...]
before after ratio
[03707400] [0cf9fa00]
- 105.09ms 94.39ms 0.90 bi... | https://api.github.com/repos/pandas-dev/pandas/pulls/22284 | 2018-08-11T18:58:40Z | 2018-09-08T02:42:47Z | 2018-09-08T02:42:47Z | 2018-09-08T03:11:27Z |
[CLN] More cython cleanups, with bonus type annotations | diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in
index 1efef480f3a29..ed4c0e4c59609 100644
--- a/pandas/_libs/algos_common_helper.pxi.in
+++ b/pandas/_libs/algos_common_helper.pxi.in
@@ -45,7 +45,7 @@ def get_dispatch(dtypes):
@cython.wraparound(False)
@cython.boundsche... | A few places where string formatting is modernized
Removed remaining `# cython: profile=False` comments
The main (and possible controversial) thing done here is changing some functions to use type-hint syntax. The affected functions are all currently `cpdef`, but are never used in cython, so _should_ only be `de... | https://api.github.com/repos/pandas-dev/pandas/pulls/22283 | 2018-08-11T16:31:16Z | 2018-09-08T02:45:30Z | 2018-09-08T02:45:30Z | 2018-09-08T03:10:34Z |
BUG: Swap byteorder in constructor of Block Manager (#4737) | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index fc3a12a9da82a..f3d4a3eae1d81 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -4,13 +4,14 @@
import itertools
import operator
import re
+import sys
import numpy as np
from pandas._l... | - [x] closes #4737
- [x] tests added / passed (at least the test_internals.py)
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is one possible approach to directly change the dtypes to the native byteorder in the constructor of the BlockManager. This code does it aut... | https://api.github.com/repos/pandas-dev/pandas/pulls/22282 | 2018-08-11T16:17:35Z | 2018-12-09T20:06:58Z | null | 2018-12-09T20:06:58Z |
Add initial property-based tests using Hypothesis | diff --git a/.gitignore b/.gitignore
index 96b1f945870de..a59f2843c365a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -62,6 +62,8 @@ dist
coverage.xml
coverage_html_report
*.pytest_cache
+# hypothesis test database
+.hypothesis/
# OS generated files #
######################
diff --git a/ci/appveyor-27.yaml b/ci/ap... | This pull request has no features or bugfixes for Pandas itself (though it does have a whatsnew entry for contributors), but adds support for and actually adds a few tests using Hypothesis. The new section of the contributing guide below should explain what this means and why it's desirable. There are basically three... | https://api.github.com/repos/pandas-dev/pandas/pulls/22280 | 2018-08-11T13:04:53Z | 2018-08-25T02:05:41Z | 2018-08-25T02:05:40Z | 2018-08-28T00:05:08Z |
BUG: do not crash on a callable grouper returning tuples | diff --git a/doc/source/whatsnew/v0.23.5.txt b/doc/source/whatsnew/v0.23.5.txt
index 88ea7a6caecfc..39c47303142a6 100644
--- a/doc/source/whatsnew/v0.23.5.txt
+++ b/doc/source/whatsnew/v0.23.5.txt
@@ -20,10 +20,11 @@ and bug fixes. We recommend that all users upgrade to this version.
Fixed Regressions
~~~~~~~~~~~~~~~... | - [x] closes #22257
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Notice I didn't have time to test which commit caused the regression. | https://api.github.com/repos/pandas-dev/pandas/pulls/22279 | 2018-08-11T09:45:42Z | 2018-12-14T15:51:59Z | null | 2018-12-14T15:51:59Z |
Added table as Allowed `orient` Value in to_json Docs(#22272) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 08d9191d72a8a..ac7278953e658 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1952,13 +1952,13 @@ def to_json(self, path_or_buf=None, orient=None, date_format=None,
* Series
- default is 'index'
- ... | - [x] closes #22272
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/22277 | 2018-08-11T00:50:32Z | 2018-08-11T01:37:09Z | 2018-08-11T01:37:09Z | 2018-08-11T01:37:15Z |
Comments to understand code! | diff --git a/README.md b/README.md
index 3c8fe57400099..3dde5e5e2a76e 100644
--- a/README.md
+++ b/README.md
@@ -89,7 +89,7 @@
-## What is it
+## What is it?
**pandas** is a Python package providing fast, flexible, and expressive data
structures designed to make working with "relational" or "labeled" data bot... | - [ ] 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/22273 | 2018-08-10T18:40:27Z | 2018-08-10T18:46:37Z | null | 2018-08-10T18:51:13Z |
Replace tar_csv.tar.gz with gzipped tar | diff --git a/pandas/tests/io/parser/data/tar_csv.tar.gz b/pandas/tests/io/parser/data/tar_csv.tar.gz
index b5a0f3e1b5805..80505d345f1e2 100644
Binary files a/pandas/tests/io/parser/data/tar_csv.tar.gz and b/pandas/tests/io/parser/data/tar_csv.tar.gz differ
| tar was not compressed previously
| https://api.github.com/repos/pandas-dev/pandas/pulls/22269 | 2018-08-10T10:36:39Z | 2018-08-17T11:17:54Z | 2018-08-17T11:17:54Z | 2018-08-17T12:25:54Z |
Continue Collecting Arithmetic Tests | diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py
index 77e8da6c44af2..a27199b58cf5e 100644
--- a/pandas/tests/arithmetic/test_datetime64.py
+++ b/pandas/tests/arithmetic/test_datetime64.py
@@ -5,6 +5,7 @@
import operator
from datetime import datetime, timedelta
imp... | A small amount of cleanup/parametrization, but mostly moving tests ~unchanged.
A few tests in tests.frame.test_operators are moved to tests.frame.test_arithmetic.
In a bunch of cases I'm trying to not move things that will cause merge conflicts with #22163; will get those in an upcoming pass. | https://api.github.com/repos/pandas-dev/pandas/pulls/22267 | 2018-08-09T19:35:04Z | 2018-08-10T09:58:21Z | 2018-08-10T09:58:21Z | 2018-08-10T17:21:13Z |
ENH: Add support for excluding the index from Parquet files (GH20768) | diff --git a/doc/source/io.rst b/doc/source/io.rst
index c2c8c1c17700f..cb22bb9198e25 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -4570,6 +4570,9 @@ dtypes, including extension dtypes such as datetime with tz.
Several caveats.
* Duplicate column names and non-string columns names are not supported.
+*... | - [x] closes #20768
- [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/22266 | 2018-08-09T19:32:05Z | 2018-09-21T08:18:02Z | 2018-09-21T08:18:00Z | 2018-09-21T21:16:52Z |
DEPR: list-likes of list-likes in str.cat | diff --git a/doc/source/text.rst b/doc/source/text.rst
index 0081b592f91bf..61583a179e572 100644
--- a/doc/source/text.rst
+++ b/doc/source/text.rst
@@ -306,7 +306,7 @@ The same alignment can be used when ``others`` is a ``DataFrame``:
Concatenating a Series and many objects into a Series
^^^^^^^^^^^^^^^^^^^^^^^^^^^^... | - [x] closes #21950
- [x] tests modified / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
As mentioned in #21950, my suggestion is to modify the allowed combinations (as of v0.23) as follows:
```
Type of "others" | action | comment
---... | https://api.github.com/repos/pandas-dev/pandas/pulls/22264 | 2018-08-09T18:14:53Z | 2018-08-31T10:25:40Z | 2018-08-31T10:25:40Z | 2018-09-04T23:11:55Z |
Unable to pass additional arguments to resample().apply() | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index d7feb6e547b22..83f88e2c23f62 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -693,7 +693,7 @@ Groupby/Resample/Rolling
``SeriesGroupBy`` when the grouping variable only contains NaNs and numpy v... | - [x] closes #14615
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
There is flake8 warning ^ but it is not related with my changes. | https://api.github.com/repos/pandas-dev/pandas/pulls/22261 | 2018-08-09T11:48:09Z | 2018-08-22T12:24:24Z | 2018-08-22T12:24:24Z | 2018-08-22T12:24:32Z |
Backport PR #22169 on branch 0.23.x | diff --git a/doc/source/whatsnew/v0.23.5.txt b/doc/source/whatsnew/v0.23.5.txt
index ee0ee4259f86d..6a36adb915b3c 100644
--- a/doc/source/whatsnew/v0.23.5.txt
+++ b/doc/source/whatsnew/v0.23.5.txt
@@ -37,3 +37,7 @@ Bug Fixes
-
-
+
+**I/O**
+
+- Bug in :func:`read_csv` that caused it to raise ``OverflowError`` when ... | Backport PR #22169: BUG: Fix using "inf"/"-inf" in na_values for csv with int index column | https://api.github.com/repos/pandas-dev/pandas/pulls/22259 | 2018-08-09T10:38:22Z | 2018-08-09T14:45:12Z | 2018-08-09T14:45:12Z | 2018-08-09T14:45:13Z |
Backport PR #22253 on branch 0.23.x | diff --git a/doc/source/whatsnew/v0.23.5.txt b/doc/source/whatsnew/v0.23.5.txt
index ee0ee4259f86d..4b478bba7d972 100644
--- a/doc/source/whatsnew/v0.23.5.txt
+++ b/doc/source/whatsnew/v0.23.5.txt
@@ -30,7 +30,7 @@ Bug Fixes
**Groupby/Resample/Rolling**
--
+- Bug in :meth:`DataFrame.resample` when resampling ``NaT... | Backport PR #22253: Resampling with NaT in TimedeltaIndex raises MemoryError | https://api.github.com/repos/pandas-dev/pandas/pulls/22258 | 2018-08-09T10:33:55Z | 2018-08-09T14:45:30Z | 2018-08-09T14:45:29Z | 2018-08-09T14:45:30Z |
Implement arithmetic.test_numeric and arithmetic.test_object | diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py
index 1e25d4a5224ee..844472b8bcf0d 100644
--- a/pandas/tests/arithmetic/conftest.py
+++ b/pandas/tests/arithmetic/conftest.py
@@ -4,6 +4,8 @@
import numpy as np
import pandas as pd
+from pandas.compat import long
+
@pytest.fix... | Also move a bunch more dt64 and td64 tests that have been hiding. For the most part this doesn't do any of the parametrizing over box-classes; that and a bunch of de-duplication are for the next pass. | https://api.github.com/repos/pandas-dev/pandas/pulls/22254 | 2018-08-08T22:32:26Z | 2018-08-09T10:31:38Z | 2018-08-09T10:31:38Z | 2018-08-09T15:57:45Z |
Resampling with NaT in TimedeltaIndex raises MemoryError | diff --git a/doc/source/whatsnew/v0.23.5.txt b/doc/source/whatsnew/v0.23.5.txt
index 916a246355b5f..f9247bc04a96e 100644
--- a/doc/source/whatsnew/v0.23.5.txt
+++ b/doc/source/whatsnew/v0.23.5.txt
@@ -33,7 +33,7 @@ Bug Fixes
**Groupby/Resample/Rolling**
--
+- Bug in :meth:`DataFrame.resample` when resampling ``NaT... | - [x] closes #13223
- [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/22253 | 2018-08-08T19:05:53Z | 2018-08-09T10:33:35Z | 2018-08-09T10:33:34Z | 2018-08-09T10:33:35Z |
DOC: Add missing question mark in README | diff --git a/README.md b/README.md
index 3c8fe57400099..3dde5e5e2a76e 100644
--- a/README.md
+++ b/README.md
@@ -89,7 +89,7 @@
-## What is it
+## What is it?
**pandas** is a Python package providing fast, flexible, and expressive data
structures designed to make working with "relational" or "labeled" data bot... | - [ ] 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/22251 | 2018-08-08T18:16:37Z | 2018-08-09T04:38:38Z | 2018-08-09T04:38:38Z | 2018-08-09T07:10:34Z |
DOC: Fix dateutil link in install instructions | diff --git a/doc/source/install.rst b/doc/source/install.rst
index 087bca0d5cd3c..eb837547037db 100644
--- a/doc/source/install.rst
+++ b/doc/source/install.rst
@@ -225,7 +225,7 @@ Dependencies
* `setuptools <https://setuptools.readthedocs.io/en/latest/>`__: 24.2.0 or higher
* `NumPy <http://www.numpy.org>`__: 1.9.... | This should be a rather straightforward review. :) Some errant slashes were preventing the python-dateutil link from working. | https://api.github.com/repos/pandas-dev/pandas/pulls/22249 | 2018-08-08T16:24:00Z | 2018-08-08T16:26:45Z | 2018-08-08T16:26:45Z | 2018-08-08T18:32:42Z |
CLN: remove redundant call to ensure_index | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8205d3df377f5..638129291b495 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -7616,7 +7616,7 @@ def _arrays_to_mgr(arrays, arr_names, index, columns, dtype=None):
arrays = _homogenize(arrays, index, dtype)
# from BlockManager per... | - [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Small followup to #22232
| https://api.github.com/repos/pandas-dev/pandas/pulls/22245 | 2018-08-08T11:45:01Z | 2018-08-09T00:17:42Z | 2018-08-09T00:17:42Z | 2018-08-09T05:46:51Z |
Backport PR #22232 on branch 0.23.x | diff --git a/doc/source/whatsnew/v0.23.5.txt b/doc/source/whatsnew/v0.23.5.txt
index ee0ee4259f86d..916a246355b5f 100644
--- a/doc/source/whatsnew/v0.23.5.txt
+++ b/doc/source/whatsnew/v0.23.5.txt
@@ -20,6 +20,9 @@ and bug fixes. We recommend that all users upgrade to this version.
Fixed Regressions
~~~~~~~~~~~~~~~~~... | Backport PR #22232: BUG: Fix DataFrame construction regression | https://api.github.com/repos/pandas-dev/pandas/pulls/22244 | 2018-08-08T10:30:33Z | 2018-08-09T00:12:01Z | null | 2018-08-09T00:12:01Z |
WIP: Bitarray backed Int EAs | diff --git a/pandas/core/arrays/_mask.py b/pandas/core/arrays/_mask.py
new file mode 100644
index 0000000000000..7b908f519be95
--- /dev/null
+++ b/pandas/core/arrays/_mask.py
@@ -0,0 +1,103 @@
+import numpy as np
+
+
+class NAMask():
+ """Generic class which can be used to represent missing data.
+
+ Will use bit... | First pass at #21839 and most likely a precursor to #22226.
Very hacky at the moment but was able to get tests to pass locally (will fail CI given new Bitarray depdencendy). Going to work through a refactor of this but sharing as POC in case anyone has feedback.
Generally the hard part here was working around pla... | https://api.github.com/repos/pandas-dev/pandas/pulls/22238 | 2018-08-07T23:32:05Z | 2019-01-31T14:01:41Z | null | 2023-04-12T20:15:52Z |
Collect datetime64 and PeriodDtype arithmetic tests | diff --git a/pandas/tests/arithmetic/__init__.py b/pandas/tests/arithmetic/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py
new file mode 100644
index 0000000000000..1e25d4a5224ee
--- /dev/null
+++ b/pandas/tests/a... | As suggested, these are split by dtype in a new tests/arithmetic directory.
Started parametrizing a few of these over `box` classes, but for the most part this is just collecting tests from their existing locations. There is going to be a lot of parametrization and de-duplication coming up.
Holding off on moving... | https://api.github.com/repos/pandas-dev/pandas/pulls/22237 | 2018-08-07T23:11:39Z | 2018-08-08T10:06:54Z | 2018-08-08T10:06:54Z | 2018-08-08T15:48:16Z |
TST/CLN: break up & parametrize tests for df.set_index | diff --git a/pandas/tests/frame/conftest.py b/pandas/tests/frame/conftest.py
new file mode 100644
index 0000000000000..fdedb93835d75
--- /dev/null
+++ b/pandas/tests/frame/conftest.py
@@ -0,0 +1,191 @@
+import pytest
+
+import numpy as np
+
+from pandas import compat
+import pandas.util.testing as tm
+from pandas impor... | While working on #22225 I had the strong urge to clean up the tests for `df.set_index` (to be able to work off of them for `series.set_index`)
Since the diff is pretty busted, here's a description. In `tests/frame/test_alter_axes.py`, I did:
- externalised an often-used df as a fixture
- broke up `test_set_index2`... | https://api.github.com/repos/pandas-dev/pandas/pulls/22236 | 2018-08-07T22:41:48Z | 2018-09-15T22:50:55Z | 2018-09-15T22:50:55Z | 2018-09-16T21:12:21Z |
Assorted _libs cleanups | diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in
index 0d3f6664da9e3..97b7196da80bb 100644
--- a/pandas/_libs/algos_common_helper.pxi.in
+++ b/pandas/_libs/algos_common_helper.pxi.in
@@ -523,7 +523,7 @@ def put2d_{{name}}_{{dest_type}}(ndarray[{{c_type}}, ndim=2, cast=True]... | Modernize for-loop syntax
Modernize string formatting
Use memoryviews in a few places
Docstrings, change a couple of funcs in tslibs.parsing to cdef
Follow-up cleanup in tslibs.period
Move some unneeded stuff out of tslibs.util to wrap up the self-contained goal.
| https://api.github.com/repos/pandas-dev/pandas/pulls/22235 | 2018-08-07T22:11:28Z | 2018-08-10T07:55:29Z | 2018-08-10T07:55:29Z | 2018-08-10T17:21:04Z |
Added whatsnew for v0.23.5 | diff --git a/doc/source/whatsnew/v0.23.5.txt b/doc/source/whatsnew/v0.23.5.txt
new file mode 100644
index 0000000000000..ee0ee4259f86d
--- /dev/null
+++ b/doc/source/whatsnew/v0.23.5.txt
@@ -0,0 +1,39 @@
+.. _whatsnew_0235:
+
+v0.23.5 (TBD 0, 2018)
+---------------------
+
+This is a minor bug-fix release in the 0.23.x... | - [ ] 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/22233 | 2018-08-07T16:22:52Z | 2018-08-07T16:23:03Z | 2018-08-07T16:23:03Z | 2018-08-07T17:45:03Z |
BUG: Fix DataFrame construction regression | diff --git a/doc/source/whatsnew/v0.23.5.txt b/doc/source/whatsnew/v0.23.5.txt
index ee0ee4259f86d..916a246355b5f 100644
--- a/doc/source/whatsnew/v0.23.5.txt
+++ b/doc/source/whatsnew/v0.23.5.txt
@@ -20,6 +20,9 @@ and bug fixes. We recommend that all users upgrade to this version.
Fixed Regressions
~~~~~~~~~~~~~~~~~... | - [x] closes #22227
- [x] tests added
- [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/22232 | 2018-08-07T15:32:11Z | 2018-08-08T10:30:07Z | 2018-08-08T10:30:07Z | 2019-03-11T19:15:32Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.