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 |
|---|---|---|---|---|---|---|---|
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 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 |
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 |
[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 |
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 |
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 |
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 |
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 |
REGR: changed behavior in series[period].mask(foo, bar, inplace=True) | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index f321aabc0a8a5..48b62637c26b1 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Regression in :meth:`Series... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
Behavior change in 1.4rc was undocumented. | https://api.github.com/repos/pandas-dev/pandas/pulls/45546 | 2022-01-22T01:58:35Z | 2022-01-23T00:06:14Z | 2022-01-23T00:06:14Z | 2022-01-23T00:11:43Z |
Backport PR #45489 on branch 1.4.x (Bug tojson memleak) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 327432de0a3f7..363d4b57544a9 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -966,6 +966,7 @@ I/O
- Bug in :func:`read_json` raising ``ValueError`` when attempting to parse json strings containing ":/... | Backport PR #45489: Bug tojson memleak | https://api.github.com/repos/pandas-dev/pandas/pulls/45545 | 2022-01-22T01:23:17Z | 2022-01-22T09:04:11Z | 2022-01-22T09:04:11Z | 2022-01-22T09:04:12Z |
Backport PR #45519 on branch 1.4.x (EA interface: rename ExtensionArray._hasnans to ._hasna) | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index c16c404d56295..d955d8e583f1c 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -427,7 +427,7 @@ def __contains__(self, item: object) -> bool | np.bool_:
if not self._can_hold_na:
return Fal... | Backport PR #45519 | https://api.github.com/repos/pandas-dev/pandas/pulls/45543 | 2022-01-21T22:27:41Z | 2022-01-22T01:22:30Z | 2022-01-22T01:22:30Z | 2022-01-22T09:26:46Z |
Backport PR #45483 on branch 1.4.x (Rename to main) | diff --git a/doc/source/getting_started/comparison/comparison_with_sql.rst b/doc/source/getting_started/comparison/comparison_with_sql.rst
index 0596687b4d15e..0a891a4c6d2d7 100644
--- a/doc/source/getting_started/comparison/comparison_with_sql.rst
+++ b/doc/source/getting_started/comparison/comparison_with_sql.rst
@@ ... | Backport PR #45483: Rename to main | https://api.github.com/repos/pandas-dev/pandas/pulls/45542 | 2022-01-21T21:41:46Z | 2022-01-22T00:08:02Z | 2022-01-22T00:08:02Z | 2022-01-22T00:08:03Z |
Backport PR #45524 on branch 1.4.x (REGR: fix period dtype <-> arrow roundtrip for pyarrow < 4) | diff --git a/pandas/core/internals/api.py b/pandas/core/internals/api.py
index 537ae8f2a4320..371f1e2443b36 100644
--- a/pandas/core/internals/api.py
+++ b/pandas/core/internals/api.py
@@ -24,6 +24,7 @@
from pandas.core.internals.blocks import (
Block,
DatetimeTZBlock,
+ ExtensionBlock,
check_ndim,
... | Backport PR #45524: REGR: fix period dtype <-> arrow roundtrip for pyarrow < 4 | https://api.github.com/repos/pandas-dev/pandas/pulls/45541 | 2022-01-21T21:33:45Z | 2022-01-22T00:07:51Z | 2022-01-22T00:07:51Z | 2022-01-22T00:07:51Z |
Backport PR #45536 on branch 1.4.x (DOC: tidy 1.4.0 release notes (2)) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 4e5369072e116..327432de0a3f7 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -92,7 +92,7 @@ Styler
- Styling and formatting of indexes has been added, with :meth:`.Styler.apply_index`, :meth:`.Sty... | Backport PR #45536: DOC: tidy 1.4.0 release notes (2) | https://api.github.com/repos/pandas-dev/pandas/pulls/45540 | 2022-01-21T21:33:10Z | 2022-01-21T22:45:31Z | 2022-01-21T22:45:31Z | 2022-01-21T22:45:31Z |
Bug: Resample ignoring closed=right for TimedeltaIndex | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 1ae76984484af..9756ae7adf930 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -241,7 +241,7 @@ Plotting
Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
--
+- Bug in :meth:`DataFrame.resample` igno... | - [x] closes #45414
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45539 | 2022-01-21T20:57:54Z | 2022-01-22T17:28:32Z | 2022-01-22T17:28:31Z | 2022-01-22T19:04:00Z |
Backport PR #45219 on branch 1.4.x (MISC: Check that min versions are aligned in CI and import_optional_dependency) | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 854b7b2e4fe63..5232b76a6388d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -181,3 +181,8 @@ repos:
entry: 'pg8000'
files: ^ci/deps
types: [yaml]
+ - id: validate-min-versions-in-sync
+ nam... | Backport PR #45219: MISC: Check that min versions are aligned in CI and import_optional_dependency | https://api.github.com/repos/pandas-dev/pandas/pulls/45537 | 2022-01-21T19:09:51Z | 2022-01-21T20:10:38Z | 2022-01-21T20:10:38Z | 2022-01-21T20:10:38Z |
DOC: tidy 1.4.0 release notes (2) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 4e5369072e116..327432de0a3f7 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -92,7 +92,7 @@ Styler
- Styling and formatting of indexes has been added, with :meth:`.Styler.apply_index`, :meth:`.Sty... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/45536 | 2022-01-21T18:39:12Z | 2022-01-21T21:33:00Z | 2022-01-21T21:33:00Z | 2022-01-21T21:54:29Z |
PERF: Improve performance for df.duplicated with one column subset | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index 16925b7959e6a..5254bdba14990 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -611,6 +611,9 @@ def time_frame_duplicated(self):
def time_frame_duplicated_wide(self):
... | - [x] closes #45236
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
```
%timeit df["a"].duplicated()
3.16 ms ± 96 µs per loop (mean ± std. dev. of 7 ru... | https://api.github.com/repos/pandas-dev/pandas/pulls/45534 | 2022-01-21T17:03:13Z | 2022-01-21T22:22:05Z | 2022-01-21T22:22:05Z | 2022-06-13T08:25:02Z |
Backport PR #45528 on branch 1.4.x (DOC: tidy 1.4.0 release notes) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 234fada5e2ba3..4e5369072e116 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -1,6 +1,6 @@
.. _whatsnew_140:
-What's new in 1.4.0 (January ??, 2022)
+What's new in 1.4.0 (January 22, 2022)
---------... | Backport PR #45528: DOC: tidy 1.4.0 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/45533 | 2022-01-21T16:54:43Z | 2022-01-21T18:35:15Z | 2022-01-21T18:35:15Z | 2022-01-21T18:35:16Z |
Fixes #45506 Catch overflow error when converting to datetime | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 919ed926f8195..41b95532f1511 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -247,7 +247,7 @@ Conversion
- Bug in :meth:`Float64Index.astype` to unsigned integer dtype incorrectly casting to ``np.int6... | Exception is raised when date part (like day, month, year) is greater than 32 bit signed integer
- [x] xref #45506
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whats... | https://api.github.com/repos/pandas-dev/pandas/pulls/45532 | 2022-01-21T16:22:44Z | 2022-01-31T16:31:36Z | 2022-01-31T16:31:36Z | 2022-02-08T16:40:01Z |
Update development docs recommended pyenv version to a supported version | diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst
index 5f36a2a609c9f..b28f7c833d7ad 100644
--- a/doc/source/development/contributing_environment.rst
+++ b/doc/source/development/contributing_environment.rst
@@ -222,7 +222,7 @@ Consult the docs for se... | **Only doc change**
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
As far as i understand - python development should be done on... | https://api.github.com/repos/pandas-dev/pandas/pulls/45531 | 2022-01-21T15:16:05Z | 2022-01-21T21:48:21Z | 2022-01-21T21:48:21Z | 2022-01-21T21:48:29Z |
Backport PR #45522 on branch 1.4.x (REGR: read_fwf interpreting infer as list of colspecs when checking names length) | diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py
index 6d60f94e89291..ef693fcbd3720 100644
--- a/pandas/io/parsers/readers.py
+++ b/pandas/io/parsers/readers.py
@@ -856,7 +856,7 @@ def read_fwf(
# Ensure length of `colspecs` matches length of `names`
names = kwds.get("names")
if n... | Backport PR #45522: REGR: read_fwf interpreting infer as list of colspecs when checking names length | https://api.github.com/repos/pandas-dev/pandas/pulls/45530 | 2022-01-21T14:02:44Z | 2022-01-21T16:54:02Z | 2022-01-21T16:54:02Z | 2022-01-21T16:54:02Z |
Backport PR #45523 on branch 1.4.x (DEPR: restore to_frame() name=None behaviour but deprecate it) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 1ca4e8cc97df0..234fada5e2ba3 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -696,6 +696,7 @@ Other Deprecations
- Deprecated the behavior of :meth:`Timestamp.utcfromtimestamp`, in the future it will ... | Backport PR #45523: DEPR: restore to_frame() name=None behaviour but deprecate it | https://api.github.com/repos/pandas-dev/pandas/pulls/45529 | 2022-01-21T14:01:45Z | 2022-01-21T16:53:49Z | 2022-01-21T16:53:49Z | 2022-01-21T16:53:50Z |
DOC: tidy 1.4.0 release notes | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 1ca4e8cc97df0..a27d9d6c67c98 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -1,6 +1,6 @@
.. _whatsnew_140:
-What's new in 1.4.0 (January ??, 2022)
+What's new in 1.4.0 (January 22, 2022)
---------... | still more to do but this is what I have so far.
To make review easier could merge this if ok and then follow-up with another PR if I find anything else rather than add more commits. | https://api.github.com/repos/pandas-dev/pandas/pulls/45528 | 2022-01-21T13:58:59Z | 2022-01-21T16:54:33Z | 2022-01-21T16:54:33Z | 2022-01-21T16:56:40Z |
BUG: df.getitem returning copy instead of view for unique column in dup index | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 2346a86ad21f8..4a86194356a71 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -810,6 +810,7 @@ Indexing
^^^^^^^^
- Bug in :meth:`loc.__getitem__` with a list of keys causing an internal inconsistency ... | - [x] closes #45316
- [x] closes #41062
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
I think this is more intuitive (and "more" correct) than the pre... | https://api.github.com/repos/pandas-dev/pandas/pulls/45526 | 2022-01-21T12:29:26Z | 2022-06-22T01:19:38Z | 2022-06-22T01:19:37Z | 2022-06-22T07:41:10Z |
test replace on out of bound datetime | diff --git a/pandas/tests/frame/methods/test_replace.py b/pandas/tests/frame/methods/test_replace.py
index b9024b4233d7f..001a50c3ce1b0 100644
--- a/pandas/tests/frame/methods/test_replace.py
+++ b/pandas/tests/frame/methods/test_replace.py
@@ -753,6 +753,13 @@ def test_replace_for_new_dtypes(self, datetime_frame):
... | Just adds a test for the functionality that is working on `main`. Placed the test in amongst the other `DataFrame.replace` tests.
- [x] closes #36782
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-comm... | https://api.github.com/repos/pandas-dev/pandas/pulls/45525 | 2022-01-21T12:27:02Z | 2022-01-23T00:12:09Z | 2022-01-23T00:12:09Z | 2022-01-23T17:56:15Z |
REGR: fix period dtype <-> arrow roundtrip for pyarrow < 4 | diff --git a/pandas/core/internals/api.py b/pandas/core/internals/api.py
index 537ae8f2a4320..371f1e2443b36 100644
--- a/pandas/core/internals/api.py
+++ b/pandas/core/internals/api.py
@@ -24,6 +24,7 @@
from pandas.core.internals.blocks import (
Block,
DatetimeTZBlock,
+ ExtensionBlock,
check_ndim,
... | Closes #45470 | https://api.github.com/repos/pandas-dev/pandas/pulls/45524 | 2022-01-21T12:02:40Z | 2022-01-21T21:33:37Z | 2022-01-21T21:33:36Z | 2022-01-22T09:09:12Z |
DEPR: restore to_frame() name=None behaviour but deprecate it | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 1ca4e8cc97df0..234fada5e2ba3 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -696,6 +696,7 @@ Other Deprecations
- Deprecated the behavior of :meth:`Timestamp.utcfromtimestamp`, in the future it will ... | Closes #45448
| https://api.github.com/repos/pandas-dev/pandas/pulls/45523 | 2022-01-21T11:53:10Z | 2022-01-21T14:01:18Z | 2022-01-21T14:01:18Z | 2022-01-21T16:45:31Z |
REGR: read_fwf interpreting infer as list of colspecs when checking names length | diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py
index 6d60f94e89291..ef693fcbd3720 100644
--- a/pandas/io/parsers/readers.py
+++ b/pandas/io/parsers/readers.py
@@ -856,7 +856,7 @@ def read_fwf(
# Ensure length of `colspecs` matches length of `names`
names = kwds.get("names")
if n... | - [x] closes #45337
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
No whatsnew needed if this goes into 1.4, otherwise I will add one for 1.4.1 when ava... | https://api.github.com/repos/pandas-dev/pandas/pulls/45522 | 2022-01-21T11:38:31Z | 2022-01-21T14:02:36Z | 2022-01-21T14:02:36Z | 2022-01-21T14:03:21Z |
EA interface: rename ExtensionArray._hasnans to ._hasna | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index c16c404d56295..d955d8e583f1c 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -427,7 +427,7 @@ def __contains__(self, item: object) -> bool | np.bool_:
if not self._can_hold_na:
return Fal... | As discussed in follow-up on https://github.com/pandas-dev/pandas/pull/45024#discussion_r774711601
Since this is "public" for developers, we need to decide on a name now for 1.4. Using "na" instead of "nan" makes it consistent with the other missing values related methods in the EA interface (isna, dropna, fillna, _... | https://api.github.com/repos/pandas-dev/pandas/pulls/45519 | 2022-01-21T08:02:43Z | 2022-01-21T21:35:04Z | 2022-01-21T21:35:03Z | 2022-01-22T08:18:31Z |
Backport PR #45449: DEPR: undo deprecation of astype(int64) for datetimelike values | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index ed66861efad93..a392aeb5274c2 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -811,7 +811,7 @@ Other Deprecations
- Deprecated allowing scalars to be passed to the :class:`Categorical` constructor (:is... | Manual backport of https://github.com/pandas-dev/pandas/pull/45449 | https://api.github.com/repos/pandas-dev/pandas/pulls/45518 | 2022-01-21T07:39:14Z | 2022-01-21T08:56:31Z | 2022-01-21T08:56:31Z | 2022-01-21T09:21:08Z |
DEPR: __array_wrap__ | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 1ae76984484af..de27c4229bd4d 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -145,6 +145,7 @@ Other Deprecations
- Deprecated behavior of :meth:`SparseArray.astype`, :meth:`Series.astype`, and :meth:`... | Follow-up on https://github.com/pandas-dev/pandas/pull/45451 to deprecate the method, so we can actually remove it again in the future. | https://api.github.com/repos/pandas-dev/pandas/pulls/45517 | 2022-01-21T07:32:25Z | 2022-01-21T21:50:05Z | 2022-01-21T21:50:05Z | 2022-01-22T09:06:41Z |
get_dummies to select string dtype in addition to object and categorical | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 1ae76984484af..2843ee7551780 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -247,6 +247,7 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
- Bug in :func:`concat` between a :class:`Series` with inte... | - [x] closes #44965
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45516 | 2022-01-21T04:32:01Z | 2022-01-28T02:21:00Z | 2022-01-28T02:21:00Z | 2022-03-02T01:13:02Z |
ENH: ExtensionEngine | diff --git a/pandas/_libs/index.pyi b/pandas/_libs/index.pyi
index 446a980487cde..86f2429575ebb 100644
--- a/pandas/_libs/index.pyi
+++ b/pandas/_libs/index.pyi
@@ -3,6 +3,7 @@ import numpy as np
from pandas._typing import npt
from pandas import MultiIndex
+from pandas.core.arrays import ExtensionArray
class Ind... | Follow-up on https://github.com/pandas-dev/pandas/pull/43930/
Avoid object-dtype cast.
Next/last PR in this sequence introduces NullableEngine. | https://api.github.com/repos/pandas-dev/pandas/pulls/45514 | 2022-01-20T21:19:54Z | 2022-01-25T17:31:24Z | 2022-01-25T17:31:24Z | 2022-01-31T13:01:14Z |
Test to datetime null to NaT | diff --git a/pandas/tests/tools/test_to_datetime.py b/pandas/tests/tools/test_to_datetime.py
index 5f8e0b4f70ec4..1e05603f704a7 100644
--- a/pandas/tests/tools/test_to_datetime.py
+++ b/pandas/tests/tools/test_to_datetime.py
@@ -1066,6 +1066,33 @@ def test_convert_object_to_datetime_with_cache(
)
tm.a... | - [x] closes #35888
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45512 | 2022-01-20T20:42:50Z | 2022-02-01T00:34:52Z | 2022-02-01T00:34:51Z | 2022-02-01T00:34:55Z |
on branch 1.4.x: follow up to #45450 and #45120 manual backports | diff --git a/ci/deps/actions-38.yaml b/ci/deps/actions-38.yaml
index 60db02def8a3d..b23f686d845e9 100644
--- a/ci/deps/actions-38.yaml
+++ b/ci/deps/actions-38.yaml
@@ -36,7 +36,7 @@ dependencies:
- psycopg2
- pymysql
- pytables
- - pyarrow
+ - pyarrow=3
- pyreadstat
- pyxlsb
- s3fs
diff --git a/ci/... | xref #45450 and #45464 | https://api.github.com/repos/pandas-dev/pandas/pulls/45511 | 2022-01-20T20:18:35Z | 2022-01-21T00:38:26Z | 2022-01-21T00:38:26Z | 2022-01-21T09:08:58Z |
Backport PR #45257 on branch 1.4.x (CI: Simplify GHA dependency files) | diff --git a/ci/deps/actions-39.yaml b/ci/deps/actions-39.yaml
index 0019360d39ec9..631ef40b02e33 100644
--- a/ci/deps/actions-39.yaml
+++ b/ci/deps/actions-39.yaml
@@ -4,37 +4,47 @@ channels:
dependencies:
- python=3.9
- # tools
- - cython>=0.29.24
+ # test dependencies
+ - cython=0.29.24
- pytest>=6.0
... | Backport PR #45257 | https://api.github.com/repos/pandas-dev/pandas/pulls/45510 | 2022-01-20T20:01:19Z | 2022-01-21T00:37:46Z | 2022-01-21T00:37:46Z | 2022-01-21T09:09:32Z |
TST: Add test inconsistency in group by (#44803) | diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py
index fb2b9f0632f0d..03c09112be1fe 100644
--- a/pandas/tests/groupby/test_groupby.py
+++ b/pandas/tests/groupby/test_groupby.py
@@ -32,6 +32,20 @@
from pandas.core.groupby.base import maybe_normalize_deprecated_kernels
+def te... | - [X] closes #44803
- [X] tests added / passed
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/45509 | 2022-01-20T19:49:56Z | 2022-01-23T00:07:41Z | 2022-01-23T00:07:40Z | 2022-01-23T22:57:18Z |
Backport PR #45355 on branch 1.4.x (CI: Ensure GHA uses major versions of actions) | diff --git a/.github/workflows/asv-bot.yml b/.github/workflows/asv-bot.yml
index ad2e2b4278dd2..f3946aeb84a63 100644
--- a/.github/workflows/asv-bot.yml
+++ b/.github/workflows/asv-bot.yml
@@ -65,7 +65,7 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
echo "REGEX=$REGEX" >> $GITHUB_ENV
- - uses: actions... | Backport PR #45355: CI: Ensure GHA uses major versions of actions | https://api.github.com/repos/pandas-dev/pandas/pulls/45508 | 2022-01-20T19:37:59Z | 2022-01-21T00:37:29Z | 2022-01-21T00:37:29Z | 2022-01-21T00:37:29Z |
CI: Troubleshoot | diff --git a/pandas/tests/io/parser/test_unsupported.py b/pandas/tests/io/parser/test_unsupported.py
index 0d383cc4bde8f..e223378b600e0 100644
--- a/pandas/tests/io/parser/test_unsupported.py
+++ b/pandas/tests/io/parser/test_unsupported.py
@@ -12,6 +12,7 @@
import pytest
+from pandas.compat import is_platform_win... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45507 | 2022-01-20T19:35:57Z | 2022-01-22T22:34:49Z | 2022-01-22T22:34:49Z | 2022-01-22T23:41:50Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.