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 |
|---|---|---|---|---|---|---|---|
API: consistent __array__ for datetime-like ExtensionArrays | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 65f9bb14158bb..2de22e062b29b 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -391,6 +391,12 @@ def _formatter(self, boxed=False):
def nbytes(self):
return self._data.nbyte... | closes #23569
Already makes the `__array__` for the datetimelike EAs consistent with each other and with Series/Index (for the default case of not specifying a dtype)
| https://api.github.com/repos/pandas-dev/pandas/pulls/23593 | 2018-11-09T10:36:38Z | 2019-01-05T21:17:37Z | 2019-01-05T21:17:36Z | 2019-01-06T21:08:58Z |
MAINT: tm.assert_raises_regex --> pytest.raises | diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py
index c3ebd8f773aa6..73921a18ee5c7 100644
--- a/pandas/tests/arithmetic/test_datetime64.py
+++ b/pandas/tests/arithmetic/test_datetime64.py
@@ -687,7 +687,7 @@ def check(get_ser, test_ser):
# with 'operate'... | `pytest.raises` has all of the functionality that we need from `tm.assert_raises_regex`.
Closes #16521 (for good this time! 🙂 ).
If this is something we would like to have for `0.24.0`, I would ask that this get reviewed and merged ASAP, given how massive the refactoring is and the high probability of merge conf... | https://api.github.com/repos/pandas-dev/pandas/pulls/23592 | 2018-11-09T09:35:09Z | 2018-11-10T22:13:35Z | 2018-11-10T22:13:34Z | 2018-11-11T20:19:20Z |
PERF: define is_all_dates to shortcut inadvertent copy when slicing an IntervalIndex | diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index 79239ec90ac80..eb4284203d865 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -1061,6 +1061,14 @@ def func(self, other):
name=result_name)
return ... | We get a few orders of magnitude speedup in `IntervalIndex` slicing by simply overriding the base class definition of `is_all_dates`, like all other `Index` derivatives also do. The root cause of the performance degradation is as follows:
- When slicing a `Series`, a new `Series` is created for the result.
- The la... | https://api.github.com/repos/pandas-dev/pandas/pulls/23591 | 2018-11-09T07:30:01Z | 2018-11-09T13:29:52Z | 2018-11-09T13:29:52Z | 2018-11-09T17:14:18Z |
PERF: Speeds up creation of Period, PeriodArray, with Offset freq | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 8f5887754e40d..b80d21d625bcf 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -84,6 +84,8 @@ cdef to_offset(object obj):
Wrap pandas.tseries.frequencies.to_offset to keep centralize runtime
... | master:
```python
In [2]: freq = pd.tseries.offsets.Day()
...:
...: %timeit pd.Period("2001", freq=freq)
294 µs ± 5.53 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
In [3]: %timeit pd.Period._maybe_convert_freq(freq)
...:
64.7 µs ± 382 ns per loop (mean ± std. dev. of 7 runs, 10000 lo... | https://api.github.com/repos/pandas-dev/pandas/pulls/23589 | 2018-11-09T03:41:20Z | 2018-11-09T13:41:21Z | 2018-11-09T13:41:21Z | 2018-11-09T14:05:39Z |
CLN: datetimelike arrays: isort, small reorg | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 3fa4f503d2dd5..daf2dcccd284b 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -124,8 +124,12 @@ def asi8(self):
# do not cache or you'll create a memory leak
return sel... | Big diff, few real changes.
Implement `__repr__` for DTA/TDA. Shared with PeriodArray implementation. Added truncation so we don't print all N elements. Adds tests for all three subclasses. Creates dedicated test files for test_datetimes and test_timedeltas
Some PeriodArray methods got shuffled into weird pla... | https://api.github.com/repos/pandas-dev/pandas/pulls/23587 | 2018-11-08T23:43:50Z | 2018-11-12T11:42:44Z | 2018-11-12T11:42:44Z | 2018-11-12T14:43:13Z |
CLN: use float64_t consistently instead of double, double_t | diff --git a/pandas/_libs/algos.pxd b/pandas/_libs/algos.pxd
index 0888cf3c85f2f..5df1e381ea3ce 100644
--- a/pandas/_libs/algos.pxd
+++ b/pandas/_libs/algos.pxd
@@ -1,9 +1,6 @@
from util cimport numeric
-cpdef numeric kth_smallest(numeric[:] a, Py_ssize_t k) nogil
-
-
cdef inline Py_ssize_t swap(numeric *a, numer... | remove some commented-out or otherwise unused code
disable boundscheck/wraparound in a couple places in tslib where it is safe
add `const` modifiers to some of the memoryview functions so they don't raise if we ever pass read-only arrays to them
standardized NPY_NAT as always being the `cdef int64_t` version a... | https://api.github.com/repos/pandas-dev/pandas/pulls/23583 | 2018-11-08T22:03:03Z | 2018-11-11T15:08:15Z | 2018-11-11T15:08:15Z | 2018-11-11T17:10:44Z |
TST: add method/dtype coverage to str-accessor; precursor to #23167 | diff --git a/pandas/conftest.py b/pandas/conftest.py
index f450193d9388e..29c3abf4d1e1b 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1,3 +1,5 @@
+from datetime import date, time, timedelta
+from decimal import Decimal
import importlib
import os
@@ -8,7 +10,7 @@
import pytest
from pytz import Fixed... | - [x] PRECURSOR to #23167
- [x] tests added / passed / xfailed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
The effort to test all methods of the `.str`-accessor against all inferred data types in #23167 unearthed a bunch of bugs. However, that PR is getting quite unwieldy, and since @jreba... | https://api.github.com/repos/pandas-dev/pandas/pulls/23582 | 2018-11-08T21:57:24Z | 2018-11-28T14:10:35Z | 2018-11-28T14:10:35Z | 2018-11-28T23:27:05Z |
API: added array | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 2e9acfc1e09ed..d4f1f5c0cdaf4 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -720,6 +720,19 @@ strings and apply several methods to it. These can be accessed like
Series.dt
Index.str
+
+.. _api.arrays:
+
+Arrays
+------
+
+Pandas a... | Adds
- a new top-level `pd.array` method for creating arrays
- all our extension dtypes to the top-level API
- adds pd.arrays for all our EAs
TODO
- [x] Add the actual array classes somewhere to the public API (pandas.arrays?)
- [x] API docs for the rest of the arrays and dtypes.
Closes #22860
supers... | https://api.github.com/repos/pandas-dev/pandas/pulls/23581 | 2018-11-08T21:50:33Z | 2018-12-28T22:58:39Z | 2018-12-28T22:58:39Z | 2023-04-05T22:26:10Z |
Melting with not present column does not produce error | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 007f5b7feb060..28e6f1c2c3573 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1418,6 +1418,7 @@ Reshaping
- Bug in :func:`pandas.concat` when concatenating a multicolumn DataFrame with tz-aware da... | - [x] closes #23570
- [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/23575 | 2018-11-08T18:08:30Z | 2018-11-21T17:16:11Z | 2018-11-21T17:16:10Z | 2018-11-21T17:54:41Z |
remove uses of (ts)?lib.(NaT|iNaT|Timestamp) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 396b092a286c1..a6224478070ec 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10,7 +10,7 @@
import numpy as np
import pandas as pd
-from pandas._libs import tslib, properties
+from pandas._libs import properties, Timestamp, iNaT
... | Since they are no longer defined there; instead import then from more appropriate places. | https://api.github.com/repos/pandas-dev/pandas/pulls/23562 | 2018-11-08T01:37:39Z | 2018-11-08T12:38:10Z | 2018-11-08T12:38:10Z | 2018-11-08T14:48:55Z |
API: DataFrame.__getitem__ returns Series for sparse column | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index eb7a11e4ba17e..aeaef105a8549 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -560,6 +560,7 @@ changes were made:
- The result of concatenating a mix of sparse and dense Series is a Series with spa... | Awaiting consensus on #23559, but I went ahead an implemented it.
Breaking API change for
```python
In [1]: import pandas as pd
In [2]: df = pd.DataFrame({"A": pd.SparseSeries([1, 0])})
In [3]: type(df['A'])
Out[3]: pandas.core.sparse.series.SparseSeries
```
Now Out[3] is a Series.
closes https://g... | https://api.github.com/repos/pandas-dev/pandas/pulls/23561 | 2018-11-08T00:34:57Z | 2018-11-11T15:22:07Z | 2018-11-11T15:22:06Z | 2018-11-11T15:22:21Z |
DOC: Prepare to add first docstrings checks to the CI | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b24f79e89902a..6b29725ba2bea 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -864,12 +864,17 @@ def iterrows(self):
data types, the iterator returns a copy and not a view, and writing
to it will have no effect.
- ... | Fixing some docstring issues, so CI doesn't fail when we add the first validation of docstrings in #22854.
- [ ] closes #
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23560 | 2018-11-08T00:23:12Z | 2018-11-11T01:28:18Z | 2018-11-11T01:28:18Z | 2018-11-11T01:28:19Z |
DOC/CI: Fixes to make validate_docstrings.py to not generate warnings or unwanted output | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 396b092a286c1..7679922ddb21e 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5091,7 +5091,7 @@ def get_ftype_counts(self):
1 b 2 2.0
2 c 3 3.0
- >>> df.get_ftype_counts()
+ >>> df.ge... | Follow up of #23514. Making `validate_docstrings.py` not generate warnings or other unwanted output, mainly when called with `--format=json`. This includes preventing matplotlib of opening windows with the plots, and also canceling output from flake8.
Also, fixed some bugs, and corrected some tests that weren't bein... | https://api.github.com/repos/pandas-dev/pandas/pulls/23552 | 2018-11-07T22:05:58Z | 2018-11-08T16:12:13Z | 2018-11-08T16:12:13Z | 2018-11-08T17:42:06Z |
BUG: Fix error message for invalid HTML flavor | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index eb7a11e4ba17e..fd7d88bd52383 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1292,6 +1292,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form
- Bug in :func:`Dat... | The flavors were not rendering properly in the string formatting.
Closes #23549.
Follow-up to #17660. | https://api.github.com/repos/pandas-dev/pandas/pulls/23550 | 2018-11-07T21:19:09Z | 2018-11-08T00:08:14Z | 2018-11-08T00:08:14Z | 2018-11-08T00:16:32Z |
BUG: astype fill_value for SparseArray.astype | diff --git a/pandas/core/arrays/sparse.py b/pandas/core/arrays/sparse.py
index a63b3fb53625f..672261c2a407e 100644
--- a/pandas/core/arrays/sparse.py
+++ b/pandas/core/arrays/sparse.py
@@ -284,6 +284,83 @@ def is_dtype(cls, dtype):
return True
return isinstance(dtype, np.dtype) or dtype == 'Sparse... | I don't think we have a specific issue for this. This is not a fix / change for https://github.com/pandas-dev/pandas/issues/23125
This fixes strange things like
```python
In [1]: import pandas as pd; import numpy as np
In [2]: a = pd.SparseArray([0, 1])
In [3]: a.astype(bool)
Out[3]:
[0, True]
Fill: 0
... | https://api.github.com/repos/pandas-dev/pandas/pulls/23547 | 2018-11-07T16:56:35Z | 2018-11-12T12:28:45Z | 2018-11-12T12:28:45Z | 2018-11-12T12:28:46Z |
BUG: raise if invalid freq is passed | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index 44133a1a63597..e2914957d01cd 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -733,11 +733,11 @@ class Timestamp(_Timestamp):
if ts.value == NPY_NAT:
return NaT
-... | - [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Quick follow-up to very small regression in #23503 (see https://github.com/pandas-dev/pandas/pull/23503#discussion_r231513790 )
| https://api.github.com/repos/pandas-dev/pandas/pulls/23546 | 2018-11-07T14:45:25Z | 2018-11-08T12:47:42Z | 2018-11-08T12:47:42Z | 2018-11-08T13:06:33Z |
BUG: Delegate more of Excel parsing to CSV | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 5d29e349e2898..beb1c1daba962 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -2861,7 +2861,13 @@ to be parsed.
read_excel('path_to_file.xls', 'Sheet1', usecols=2)
-If `usecols` is a list of integers, then it is assumed to be the file column
+You... | The idea is that we read the Excel file, get the data, and let the `TextParser` handle reading and parsing, or at least most of it. We shouldn't be doing a lot of work that is already defined in `parsers.py`
In doing so, identified several bugs:
* `index_col=None` was not being respected
* `usecols` behavior ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23544 | 2018-11-07T09:17:45Z | 2018-11-11T15:40:43Z | 2018-11-11T15:40:43Z | 2018-11-11T22:36:01Z |
CI/DOC: Fixing bug in validate_docstrings.py | diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py
index cf8abd1680341..271c7c3021905 100644
--- a/scripts/tests/test_validate_docstrings.py
+++ b/scripts/tests/test_validate_docstrings.py
@@ -345,6 +345,11 @@ def method(self, foo=None, bar=None):
"""
pa... | Follow up of #23514. One of the validation error wasn't tested, and with the refactoring a typo was introduced, where a bracket closed in the wrong place, raised a KeyError when a private class was found in a docstrings (and adding test for that case
- [X] tests added / passed
- [X] passes `git diff upstream/master... | https://api.github.com/repos/pandas-dev/pandas/pulls/23543 | 2018-11-07T09:06:47Z | 2018-11-07T13:38:59Z | 2018-11-07T13:38:59Z | 2018-11-07T13:38:59Z |
BUG: Return KeyError for invalid string key | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 149d618c4a621..b122a24ee5450 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1205,6 +1205,7 @@ Indexing
^^^^^^^^
- The traceback from a ``KeyError`` when asking ``.loc`` for a single missing l... | - [x] closes #22803
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
In principle, it is nice to raise different errors if the string is invalid, or if the resulting period is missing. However, we want, and need, methods such as ``.loc`` to retur... | https://api.github.com/repos/pandas-dev/pandas/pulls/23540 | 2018-11-07T06:34:43Z | 2018-11-07T14:09:13Z | 2018-11-07T14:09:12Z | 2018-11-07T14:17:43Z |
BUG/REF: TimedeltaIndex.__new__ | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 3c05d4d90e44d..73fd526640212 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -247,6 +247,7 @@ Backwards incompatible API changes
- A newly constructed empty :class:`DataFrame` with integer as th... | `TimedeltaIndex.__new__` type-checking is tough to decipher, and hides multiple bugs
```
>>> dti = pd.date_range('2016-01-01', periods=3)
>>> pd.TimedeltaIndex(np.array(dti))
TimedeltaIndex(['16801 days', '16802 days', '16803 days'], dtype='timedelta64[ns]', freq=None)
```
In addition to this incorrect behavi... | https://api.github.com/repos/pandas-dev/pandas/pulls/23539 | 2018-11-07T05:34:16Z | 2018-11-11T23:27:00Z | 2018-11-11T23:27:00Z | 2018-11-13T18:08:28Z |
ENH - Index set operation modifications to address issue #23525 | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 30bc332f8a04b..961eb237f7d17 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -154,6 +154,33 @@ returned if all the columns were dummy encoded, and a :class:`DataFrame` otherwi
Providing any ``Spar... | This is a first pass at addressing the associated issue. Needs plenty of discussion, feedback and testing.
- [ ] closes #23525
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23538 | 2018-11-07T04:05:23Z | 2019-05-21T20:41:45Z | 2019-05-21T20:41:44Z | 2019-05-21T20:41:45Z |
Isort io and compat dirs | diff --git a/pandas/compat/numpy/function.py b/pandas/compat/numpy/function.py
index a4232ca2ebf78..30fdeca35faf3 100644
--- a/pandas/compat/numpy/function.py
+++ b/pandas/compat/numpy/function.py
@@ -19,11 +19,13 @@
"""
from numpy import ndarray
-from pandas.util._validators import (validate_args, validate_kwargs,... | - [x] xref #23334
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` | https://api.github.com/repos/pandas-dev/pandas/pulls/23534 | 2018-11-06T20:14:31Z | 2018-11-07T01:17:37Z | 2018-11-07T01:17:37Z | 2019-12-25T20:22:25Z |
DOC/TST: Fix warning in concat docstring | diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py
index 0e60068732447..3d97114428c7a 100644
--- a/pandas/core/reshape/concat.py
+++ b/pandas/core/reshape/concat.py
@@ -177,12 +177,12 @@ def concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False,
letter number animal
... | xref https://github.com/pandas-dev/pandas/issues/23149 | https://api.github.com/repos/pandas-dev/pandas/pulls/23529 | 2018-11-06T14:40:08Z | 2018-11-06T19:21:25Z | 2018-11-06T19:21:25Z | 2018-11-06T19:21:54Z |
BUG: Don't over-optimize memory with jagged CSV | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 73fd526640212..342132513cc42 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1298,6 +1298,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form
- :func:`read_excel... | With jagged CSV's, we risk being too quick to dump memory that we need to allocate because previous chunks would have indicated much larger rows than we can anticipate in subsequent chunks.
Closes #23509. | https://api.github.com/repos/pandas-dev/pandas/pulls/23527 | 2018-11-06T09:08:08Z | 2018-11-12T13:13:00Z | 2018-11-12T13:13:00Z | 2018-11-12T19:43:45Z |
CI: Moving CI dependencies to "ci/deps" | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 5b10036818901..cdfe93613fbdd 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -21,7 +21,7 @@ jobs:
environment:
JOB: "3.6_LOCALE"
- ENV_FILE: "ci/circle-36-locale.yaml"
+ ENV_FILE: "ci/deps/circle-36-locale.yaml"
... | - [X] refs #23115
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
@jreback you were +0 on this, do you want to take a look? Also @TomAugspurger and @jbrockmendel | https://api.github.com/repos/pandas-dev/pandas/pulls/23526 | 2018-11-06T07:47:18Z | 2018-11-06T19:48:58Z | 2018-11-06T19:48:58Z | 2018-11-06T19:48:59Z |
BUG: Casting tz-aware DatetimeIndex to object-dtype ndarray/Index | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 5fefb9e3e405c..7db553fde1620 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1125,6 +1125,9 @@ Datetimelike
- Bug in :class:`PeriodIndex` with attribute ``freq.n`` greater than 1 where adding a :... | Also fixes bug with `DateOffset == "infer"` incorrectly raising instead of returning `False`.
Also fixes bug(?) with `pd.Index(dtindex, dtype=object)` returning an index of datetimes instead of Timestamps, potentially losing nanoseconds.
- [x] closes #23491
- [x] tests added / passed
- [x] passes `git diff upst... | https://api.github.com/repos/pandas-dev/pandas/pulls/23524 | 2018-11-06T01:55:16Z | 2018-11-11T16:20:04Z | 2018-11-11T16:20:04Z | 2018-11-11T17:08:28Z |
CI: Auto-cancel redundant builds | diff --git a/.circleci/config.yml b/.circleci/config.yml
index cdfe93613fbdd..6e789d0aafdb4 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,10 +1,6 @@
version: 2
jobs:
-
- # --------------------------------------------------------------------------
- # 1. py36_locale
- # ------------------------... | This removes the `workflows` section from the `cirleci` config, which broke auto-cancellation.
Also testing whether azure auto-cancels builds.
cc @gfyoung | https://api.github.com/repos/pandas-dev/pandas/pulls/23523 | 2018-11-05T22:09:31Z | 2018-11-08T13:29:17Z | 2018-11-08T13:29:17Z | 2018-11-19T17:53:06Z |
BUILD: Simplifying contributor dependencies | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index eba96f0c6c2fc..fac5c211cdad8 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -9,16 +9,19 @@
# In the future we may want to add the validation of docstrings and other checks here.
#
# Usage:
-# $ ./ci/code_checks.sh # run all checks
-# ... | Unifying dev and optional dependencies, moving them to their standard locations, and create script to generate the pip file, and make sure in the CI they are always sync
- [X] refs #23115
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23522 | 2018-11-05T20:12:12Z | 2018-11-11T23:36:29Z | 2018-11-11T23:36:29Z | 2018-11-11T23:36:33Z |
CI: Fixed pytest minversion | diff --git a/setup.cfg b/setup.cfg
index 0608585872775..2362ef05733e0 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -36,7 +36,6 @@ split_penalty_after_opening_bracket = 1000000
split_penalty_logical_operator = 30
[tool:pytest]
-minversion = 3.6
testpaths = pandas
markers =
single: mark a test as single cpu only
| xref https://github.com/pandas-dev/pandas/issues/23519 | https://api.github.com/repos/pandas-dev/pandas/pulls/23520 | 2018-11-05T19:55:06Z | 2018-11-06T00:23:47Z | 2018-11-06T00:23:47Z | 2018-11-07T11:53:03Z |
Extraneous parts broken off from other DTA/TDA PRs | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 95b997fae6b6c..58044aeb7d84c 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -12,7 +12,8 @@
from pandas._libs.tslibs.period import (
Period, DIFFERENT_FREQ_INDEX, IncompatibleFreq... | - [ ] 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/23518 | 2018-11-05T19:43:14Z | 2018-11-06T03:11:53Z | 2018-11-06T03:11:53Z | 2018-11-08T15:59:01Z |
DOC: Updating the docstring of read_csv and related functions | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index a1f02165f8d3d..acb9bca2545c0 100755
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -1,6 +1,7 @@
"""
Module contains tools for processing files into DataFrames or other objects
"""
+
from __future__ import print_function
from collections imp... | - [X] closes #23496
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Make docstrings of the following modules to comply with [pandas docstring](https://pandas.pydata.org/pandas-docs/stable/contributing_docstring.html)
- pandas.read_table
- pandas.read_csv
- panda... | https://api.github.com/repos/pandas-dev/pandas/pulls/23517 | 2018-11-05T19:13:00Z | 2018-11-21T12:53:42Z | 2018-11-21T12:53:42Z | 2019-01-02T20:26:13Z |
Make validate_docstrings.py ready for the CI | diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py
index a3feee6552178..cf8abd1680341 100644
--- a/scripts/tests/test_validate_docstrings.py
+++ b/scripts/tests/test_validate_docstrings.py
@@ -1,14 +1,13 @@
-import string
-import random
import io
+import random
+import s... | - [X] closes #23481
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This will allow us to start having validation rules for the docstings in the CI, for example, we can have:
```
$ ./scripts/validate_docstrings.py --prefix="pandas.read_" --for... | https://api.github.com/repos/pandas-dev/pandas/pulls/23514 | 2018-11-05T18:16:28Z | 2018-11-07T08:51:17Z | 2018-11-07T08:51:17Z | 2018-11-07T09:00:37Z |
BUG: pivot/unstack leading to too many items should raise exception | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index a84fd118061bc..5f40ca2ad3b36 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1646,6 +1646,7 @@ Reshaping
- :meth:`DataFrame.nlargest` and :meth:`DataFrame.nsmallest` now returns the correct n val... |
- [x] closes #20601
- [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/23512 | 2018-11-05T16:56:10Z | 2018-12-31T13:16:44Z | 2018-12-31T13:16:44Z | 2018-12-31T15:51:55Z |
Update description of Index._values/values/ndarray_values | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index ae64179b36485..9621479f48c48 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -709,7 +709,7 @@ def values(self):
@property
def _values(self):
- # type: () -> Union[ExtensionArray, Index]
+ ... | closes #23504
@jbrockmendel @TomAugspurger | https://api.github.com/repos/pandas-dev/pandas/pulls/23507 | 2018-11-05T11:02:43Z | 2018-11-08T18:30:23Z | 2018-11-08T18:30:23Z | 2018-11-08T18:30:23Z |
DOC: Validate space before colon docstring parameters #23483 | diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py
index c1bdab73c2671..60b60603f0289 100644
--- a/scripts/tests/test_validate_docstrings.py
+++ b/scripts/tests/test_validate_docstrings.py
@@ -761,9 +761,8 @@ def test_bad_generic_functions(self, func):
('BadParam... | - [X] closes #23483
- [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/23506 | 2018-11-05T08:37:28Z | 2018-11-15T05:50:12Z | 2018-11-15T05:50:12Z | 2018-11-15T08:48:50Z |
BUG: Timestamp retains frequency of input Timestamps | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 149d618c4a621..a1e9b6f1bae79 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1121,6 +1121,7 @@ Datetimelike
- Bug in :func:`date_range` with frequency of ``Day`` or higher where dates sufficientl... | - [x] closes #22311
- [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/23503 | 2018-11-05T01:30:33Z | 2018-11-07T14:05:46Z | 2018-11-07T14:05:46Z | 2018-11-07T16:07:23Z |
TST: Tests and Helpers for Datetime/Period Arrays | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 8f5887754e40d..f29d995136a81 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -346,6 +346,7 @@ class _BaseOffset(object):
def __add__(self, other):
if getattr(other, "_typ", None) in... | Implement ABCDatetimeArray, ABCTimedeltaArray
Fix some problems in DatetimeArray comparison methods, with tests
Implement assert_datetime_array_equal, still need to do the same for TimedeltaArray
Extend fixtures to allow us to run some of the arithmetic tests on PeriodArray, DatetimeArray. Change a few usages... | https://api.github.com/repos/pandas-dev/pandas/pulls/23502 | 2018-11-04T23:30:38Z | 2018-11-09T09:22:54Z | 2018-11-09T09:22:54Z | 2018-11-09T14:09:59Z |
STYLE: Run Isort on tests-> util, series, arrays | diff --git a/pandas/tests/arrays/categorical/test_missing.py b/pandas/tests/arrays/categorical/test_missing.py
index c78f02245a5b4..32698d190d93c 100644
--- a/pandas/tests/arrays/categorical/test_missing.py
+++ b/pandas/tests/arrays/categorical/test_missing.py
@@ -4,11 +4,13 @@
import numpy as np
import pytest
-imp... | - [x] partial #23334
- [x] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Run `isort` on some leftover files from `tests/util`, `tests/arrays` and `tests/series`.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23501 | 2018-11-04T23:07:22Z | 2018-11-05T18:31:34Z | 2018-11-05T18:31:33Z | 2019-01-02T20:26:28Z |
BUG - pd.concat with all Series on axis=1 ignores the `names` argument (Issue: 23490) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 700bf4ddc3a37..b23a42c6ac2c7 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -933,6 +933,7 @@ Reshaping
^^^^^^^^^
- Bug in :func:`pandas.concat` when joining resampled DataFrames with timezone ... | - [x] closes #23490
- [x] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Fix issue described in #23490, and add tests to catch this case. | https://api.github.com/repos/pandas-dev/pandas/pulls/23499 | 2018-11-04T22:07:40Z | 2018-11-06T17:58:03Z | 2018-11-06T17:58:02Z | 2018-11-06T17:58:11Z |
DOC: Fix syntax error in groupby docs | diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst
index 0a896bac0f2d7..17a723e2a2f42 100644
--- a/doc/source/groupby.rst
+++ b/doc/source/groupby.rst
@@ -133,7 +133,8 @@ but the specified columns
.. ipython:: python
df2 = df.set_index(['A', 'B'])
- grouped = df2.groupby(level=df2.index.names.differe... | https://travis-ci.org/pandas-dev/pandas/jobs/450582832
#15559 has been rearing its head again. Turns out the reason for the timeout is one silly, missing parenthesis in the `groupby.rst` docs (that was the cause as well in #15506). 😆
Follow-up to #23394. | https://api.github.com/repos/pandas-dev/pandas/pulls/23498 | 2018-11-04T21:35:07Z | 2018-11-05T10:19:29Z | 2018-11-05T10:19:29Z | 2018-11-06T04:19:55Z |
CI: Exclude asv benchmark envs from flake8 checks | diff --git a/setup.cfg b/setup.cfg
index 8a3cfd1551a46..3a2140baefac1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -27,7 +27,8 @@ exclude =
doc/build/*.py,
doc/temp/*.py,
.eggs/*.py,
- versioneer.py
+ versioneer.py,
+ env # exclude asv benchmark environments from linting
[yapf]
based_on_style ... | When running `ci/code_checks.sh` on a local repository that has also been used to run `asv` benchmarks, `flake8` also lints the environments created. This massively increases the runtime and leads to linting errors on non-`pandas` packages, which is not informative.
This change simply adds `env` to the `flake8` excl... | https://api.github.com/repos/pandas-dev/pandas/pulls/23497 | 2018-11-04T20:35:57Z | 2018-11-06T01:49:39Z | 2018-11-06T01:49:39Z | 2018-11-06T01:49:42Z |
BUG GH23451 Allow setting date in string index for Series | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 6ace245a4bae1..0e1eb1a4e842b 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1118,6 +1118,7 @@ Datetimelike
- Bug in :func:`DataFrame.combine` with datetimelike values raising a TypeError (:issue... | - [X] closes #23451
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Prevents string indices from turning into lists of characters when setting a date.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23495 | 2018-11-04T19:40:36Z | 2018-11-06T13:08:47Z | 2018-11-06T13:08:46Z | 2018-11-06T13:08:50Z |
Fixing typo in cython casting lint, and making it azure friendly | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 26b7eaca87a04..3e2f35c7b4721 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -49,7 +49,7 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
# Note: this grep pattern is (intended to be) equivalent to the python
# regex r'(?<![ ->])> '
MS... | @jbrockmendel
Fixing typo introduced in #23474, when validating the spaces in casts in the cython code.
The original grep command used was:
`grep -r -E --include '*.pyx' --include '*.pxi.in' '> ' pandas/_libs | grep -v '[ ->]> ' `
If I'm not mistaken, the goal of `grep -v '[ ->]> '` was to exclude from the i... | https://api.github.com/repos/pandas-dev/pandas/pulls/23486 | 2018-11-04T09:51:39Z | 2018-11-06T03:17:51Z | 2018-11-06T03:17:51Z | 2018-11-06T03:17:54Z |
TST: Add test for mangling of unnamed columns | diff --git a/pandas/tests/io/parser/mangle_dupes.py b/pandas/tests/io/parser/mangle_dupes.py
index 1ebfa9cb0f645..56d59060cc17d 100644
--- a/pandas/tests/io/parser/mangle_dupes.py
+++ b/pandas/tests/io/parser/mangle_dupes.py
@@ -86,3 +86,22 @@ def test_thorough_mangle_names(self):
mangle... | xref #13017. | https://api.github.com/repos/pandas-dev/pandas/pulls/23485 | 2018-11-04T09:49:51Z | 2018-11-06T03:19:51Z | 2018-11-06T03:19:51Z | 2018-11-06T04:18:12Z |
BUG: Fix of handle missing CSV MI column names | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 4084514885aa9..3512dcf3d2038 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1275,6 +1275,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form
- Bug in :func:`to_... | De-hackifies this hack:
https://github.com/pandas-dev/pandas/blob/d78bd7a65f87022bae5021d36c8656c0ea5a7b76/pandas/io/parsers.py#L3206-L3211
Setup:
~~~python
from pandas.compat import StringIO
from pandas import read_csv
data = ",,col\na,c,1\na,d,2\nb,c,3\nb,d,4"
print(read_csv(StringIO(data), index_col=[... | https://api.github.com/repos/pandas-dev/pandas/pulls/23484 | 2018-11-04T09:06:22Z | 2018-11-06T13:08:14Z | 2018-11-06T13:08:14Z | 2018-11-07T06:15:34Z |
TST: Add test of assignment chaining and dupe cols | diff --git a/pandas/tests/indexing/test_chaining_and_caching.py b/pandas/tests/indexing/test_chaining_and_caching.py
index 71fec75f9a7d3..8bc8cb3fb1535 100644
--- a/pandas/tests/indexing/test_chaining_and_caching.py
+++ b/pandas/tests/indexing/test_chaining_and_caching.py
@@ -337,13 +337,24 @@ def f():
df2['y'... | xref #13017 | https://api.github.com/repos/pandas-dev/pandas/pulls/23487 | 2018-11-04T09:00:00Z | 2018-11-05T19:10:38Z | 2018-11-05T19:10:38Z | 2018-11-06T04:20:00Z |
Bumping up min version for pyarrow | diff --git a/ci/requirements-optional-conda.txt b/ci/requirements-optional-conda.txt
index c9dc385b87986..8758c8154abca 100644
--- a/ci/requirements-optional-conda.txt
+++ b/ci/requirements-optional-conda.txt
@@ -1,7 +1,7 @@
beautifulsoup4>=4.2.1
blosc
bottleneck>=1.2.0
-fastparquet
+fastparquet>=0.1.2
gcsfs
html5... | closes #18742
closes #23409
- [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/23482 | 2018-11-04T07:05:35Z | 2018-11-05T21:46:12Z | 2018-11-05T21:46:11Z | 2018-11-05T21:46:13Z |
TST: Empty Series.reindex with tz-aware dtype | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index b19003e1c1284..ea26a7882da13 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1197,6 +1197,7 @@ Indexing
- The traceback from a ``KeyError`` when asking ``.loc`` for a single missing label is now ... | - [x] closes #20869
- [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/23480 | 2018-11-04T06:16:18Z | 2018-11-04T20:12:23Z | 2018-11-04T20:12:23Z | 2018-11-04T20:44:38Z |
TST: drop tz-aware timestamp from DatetimIndex with DST transition | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index b19003e1c1284..4084514885aa9 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1150,6 +1150,7 @@ Timezones
- Bug in :meth:`DatetimeIndex.unique` that did not re-localize tz-aware dates correctly (:... | - [x] closes #21761
- [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/23479 | 2018-11-04T05:53:47Z | 2018-11-04T15:16:56Z | 2018-11-04T15:16:56Z | 2018-11-04T16:50:39Z |
PERF: cython optimizations | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 24828db64c392..6a66e5556e8ba 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -409,7 +409,7 @@ def pad(ndarray[algos_t] old, ndarray[algos_t] new, limit=None):
nleft = len(old)
nright = len(new)
indexer = np.empty(nrigh... | cython was emitting some warnings about untyped array lookups in `tslibs.conversion`; added types to those
`arr.fill(val)` is a python call, while `arr[:]` is a C call, so replaced all of those
modernized an old non-python for-loop, some other small cleanups along the way.
We're running out of available optimi... | https://api.github.com/repos/pandas-dev/pandas/pulls/23477 | 2018-11-03T23:23:22Z | 2018-11-06T03:23:47Z | 2018-11-06T03:23:47Z | 2018-11-06T03:25:21Z |
DOC: Remove dead link and update links to https | diff --git a/doc/source/basics.rst b/doc/source/basics.rst
index 16ab345fd1744..81efbfd6d1403 100644
--- a/doc/source/basics.rst
+++ b/doc/source/basics.rst
@@ -767,7 +767,7 @@ We encourage you to view the source code of :meth:`~DataFrame.pipe`.
.. _dplyr: https://github.com/hadley/dplyr
.. _magrittr: https://githu... | Removed one dead tutorial link and updated our doc links to https where available.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23476 | 2018-11-03T22:22:38Z | 2018-11-05T05:19:01Z | 2018-11-05T05:19:01Z | 2018-11-05T05:19:04Z |
STY: standardize spacing for casting, with linting | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index b829cbefe8f7a..26b7eaca87a04 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -44,6 +44,14 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
flake8 pandas/_libs --filename=*.pxi.in,*.pxd --select=E501,E302,E203,E111,E114,E221,E303,E231,E126,F403
... | Casting in cython is done with the syntax `<type>obj` or `<type> obj`. ATM the code uses both of these. This PR standardizes on the first usage, with a lint check.
@datapythonista I'm not sure whether the grep check here belongs in the patterns section or in the non-python section. LMK if you have a preference. | https://api.github.com/repos/pandas-dev/pandas/pulls/23474 | 2018-11-03T21:13:13Z | 2018-11-04T05:01:22Z | 2018-11-04T05:01:22Z | 2020-04-05T17:38:22Z |
Fixing flake8 problems new to flake8 3.6.0 | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 29f947e1144ea..e8d87d4c8368c 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -99,7 +99,7 @@
# JP: added from sphinxdocs
autosummary_generate = False
-if any(re.match("\s*api\s*", l) for l in index_rst_lines):
+if any(re.match(r"\s*api\s*", l) fo... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Seems like flake8 3.6.0 has just been released to conda. And when the CI uses the new version, it fails on the linting because a new validation `W605` which checks invalid escape... | https://api.github.com/repos/pandas-dev/pandas/pulls/23472 | 2018-11-03T08:29:01Z | 2018-11-03T13:09:46Z | 2018-11-03T13:09:46Z | 2018-11-03T13:10:01Z |
DOC: Updating DataFrame.join docstring | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 7aadf7e735f38..eff75938b1181 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6494,123 +6494,121 @@ def append(self, other, ignore_index=False,
def join(self, other, on=None, how='left', lsuffix='', rsuffix='',
sort=False)... | - [X] closes #22897
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Original work from @JustinZhengBC in #22904. The remote branch does not exist anymore, and I need to create this new PR to rebase.
Merging on green. | https://api.github.com/repos/pandas-dev/pandas/pulls/23471 | 2018-11-03T07:11:52Z | 2018-11-07T15:18:15Z | 2018-11-07T15:18:14Z | 2018-11-07T15:18:15Z |
DOC: clean doc string for NDFrame.astype | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 6ca8f6731bbb8..d1e9f103477cc 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5279,7 +5279,9 @@ def astype(self, dtype, copy=True, errors='raise', **kwargs):
Convert to ordered categorical type with custom ordering:
- ... | Using astype(ordered..., categories=...) has been deprecated. This PR cleans a usage of this pattern in a doc string.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23469 | 2018-11-03T00:06:07Z | 2018-11-03T14:40:09Z | 2018-11-03T14:40:09Z | 2018-11-03T14:45:27Z |
TST: Fix dtype mismatch on 32bit in IntervalTree get_indexer test | diff --git a/pandas/_libs/intervaltree.pxi.in b/pandas/_libs/intervaltree.pxi.in
index 875848c00311f..f9427fbbcd900 100644
--- a/pandas/_libs/intervaltree.pxi.in
+++ b/pandas/_libs/intervaltree.pxi.in
@@ -105,7 +105,7 @@ cdef class IntervalTree(IntervalMixin):
self.root.query(result, key)
if not resul... | xref https://github.com/pandas-dev/pandas/pull/23442#issuecomment-435340042
To address @jreback's comment in the xref:
> `.get_indexer` should be returning platform int - but it’s not ? (maybe just this case)
It looks like `IntervalTree.get_indexer` and any other similar `IntervalTree` methods (`get_loc`, `get_i... | https://api.github.com/repos/pandas-dev/pandas/pulls/23468 | 2018-11-02T23:14:04Z | 2018-11-08T13:10:44Z | 2018-11-08T13:10:44Z | 2018-11-09T23:40:14Z |
API: Make Categorical.searchsorted returns a scalar when supplied a scalar | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 69232fa836102..3c95453aa2089 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1007,6 +1007,8 @@ Other API Changes
- Slicing a single row of a DataFrame with multiple ExtensionArrays of the same ty... | - [x] closes #21019
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
``Categorical.searchsorted`` returns the wrong shape for scalar input. Numpy arrays and all other array types return a scalar if the input is a scalar, but ``Categorical`` does ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23466 | 2018-11-02T22:27:02Z | 2018-11-18T22:29:55Z | 2018-11-18T22:29:55Z | 2018-11-19T07:19:42Z |
CI: Unpin NumPy | diff --git a/ci/travis-37-numpydev.yaml b/ci/travis-37-numpydev.yaml
index 957941b7379aa..82c75b7c91b1f 100644
--- a/ci/travis-37-numpydev.yaml
+++ b/ci/travis-37-numpydev.yaml
@@ -13,5 +13,5 @@ dependencies:
- "git+git://github.com/dateutil/dateutil.git"
- "-f https://7933911d6844c6c53a7d-47bd50c35cd79bd838d... | Closes https://github.com/pandas-dev/pandas/issues/23172 | https://api.github.com/repos/pandas-dev/pandas/pulls/23465 | 2018-11-02T22:17:48Z | 2018-11-06T03:18:47Z | 2018-11-06T03:18:47Z | 2019-12-17T21:35:00Z |
REF: cython cleanup, typing, optimizations | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 3ba4c2375b4e8..02815dce156fb 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -77,6 +77,8 @@ class NegInfinity(object):
__ge__ = lambda self, other: isinstance(other, NegInfinity)
+@cython.wraparound(False)
+@cython.boundsche... | Splitting out more easy parts of #23382, #23368 | https://api.github.com/repos/pandas-dev/pandas/pulls/23464 | 2018-11-02T19:10:27Z | 2018-11-03T13:24:19Z | 2018-11-03T13:24:19Z | 2018-11-03T14:39:53Z |
BUG: fix groupby.transform rename bug (#23461) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 6ace245a4bae1..3f29b0b7b31fb 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1304,6 +1304,7 @@ Groupby/Resample/Rolling
- :func:`RollingGroupby.agg` and :func:`ExpandingGroupby.agg` now support m... | - [x] closes #23461
- [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/23463 | 2018-11-02T18:48:40Z | 2018-11-06T13:23:05Z | 2018-11-06T13:23:04Z | 2018-11-06T13:23:08Z |
BUG: Avoid casting to double type unnecessarily when setting values i… | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index fa748cccc0d65..7afe24880eadc 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1210,6 +1210,7 @@ Indexing
- :class:`Index` no longer mangles ``None``, ``NaN`` and ``NaT``, i.e. they are treated as ... | …n time delta column
- [x] closes #23511
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
When setting a timedelta column in a dataframe using `pd.Series` or array as index, there is some rounding error because the underlying TimeDeltaBlock is... | https://api.github.com/repos/pandas-dev/pandas/pulls/23462 | 2018-11-02T18:25:55Z | 2018-11-05T19:15:01Z | 2018-11-05T19:15:01Z | 2018-11-05T21:36:10Z |
BUG: Allow freq conversion from dt64 to period | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 1bbad4b73953d..90e7beac63427 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -967,24 +967,15 @@ def dt64arr_to_periodarr(data, freq, tz=None):
if data.dtype != np.dtype('M8[ns]'):
raise ValueErro... | Closes #23438
In the PeriodArray refactor, I disallowed changing freq when converting from datetime64 to period. I didn't realize that was supported.
cc @thequackdaddy, does this close all the issues you ran into? | https://api.github.com/repos/pandas-dev/pandas/pulls/23460 | 2018-11-02T16:38:21Z | 2018-11-03T13:58:46Z | 2018-11-03T13:58:45Z | 2018-11-03T13:59:05Z |
REF: cython cleanup, typing, optimizations | diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in
index 518664d70cf06..2835c95c96575 100644
--- a/pandas/_libs/algos_common_helper.pxi.in
+++ b/pandas/_libs/algos_common_helper.pxi.in
@@ -1,16 +1,6 @@
"""
Template for each `dtype` helper function using 1-d template
-# 1-... | Easy parts split off from #23368, #23382. | https://api.github.com/repos/pandas-dev/pandas/pulls/23456 | 2018-11-02T02:34:03Z | 2018-11-02T13:31:36Z | 2018-11-02T13:31:36Z | 2018-11-02T15:01:18Z |
Fail Azure CI for failing tests | diff --git a/ci/azure/linux.yml b/ci/azure/linux.yml
index 1f62c30f6dfef..b5a8e36d5097d 100644
--- a/ci/azure/linux.yml
+++ b/ci/azure/linux.yml
@@ -54,3 +54,28 @@ jobs:
inputs:
testResultsFiles: 'test-data-*.xml'
testRunTitle: 'Linux'
+ - powershell: |
+ $junitXml = "test-data-single... | - [x] closes #23453
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This should hopefully return a failed status on Azure | https://api.github.com/repos/pandas-dev/pandas/pulls/23454 | 2018-11-01T23:58:19Z | 2018-11-07T02:02:59Z | 2018-11-07T02:02:59Z | 2019-12-24T05:24:20Z |
API: change default for sep in str.cat (in docstring) | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index c824ad1712a5a..18a83269a2f0f 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -2074,9 +2074,10 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
If others is None, the method returns the concatenation of ... | In the course of #22725, @WillAyd mentioned (about the `sep=None` in `Series.str.cat` being immediately overwritten by `sep = '' if sep is None else sep`):
> Not anything you need to change in this PR but if we just overwrite `None` here it would probably make more sense to change the default function signature to sim... | https://api.github.com/repos/pandas-dev/pandas/pulls/23443 | 2018-11-01T08:51:38Z | 2018-11-06T03:55:31Z | 2018-11-06T03:55:31Z | 2018-11-06T10:13:18Z |
TST: Skip 32bit failing IntervalTree tests | diff --git a/pandas/tests/indexes/interval/test_interval_tree.py b/pandas/tests/indexes/interval/test_interval_tree.py
index f9da247cd5592..c880133f4fc6b 100644
--- a/pandas/tests/indexes/interval/test_interval_tree.py
+++ b/pandas/tests/indexes/interval/test_interval_tree.py
@@ -8,14 +8,28 @@
from pandas._libs.interv... | xref #23440, https://github.com/pandas-dev/pandas/pull/23353#issuecomment-434642190
Note that we've been skipping tests due to this issue for some time now, it just wasn't formally documented as an issue:
https://github.com/pandas-dev/pandas/blob/9019582c45d17035098941a666a8b6072c13a357/pandas/tests/indexes/inter... | https://api.github.com/repos/pandas-dev/pandas/pulls/23442 | 2018-11-01T06:44:54Z | 2018-11-01T17:05:50Z | 2018-11-01T17:05:50Z | 2018-11-02T22:53:37Z |
TST: tweak Hypothesis configuration and idioms | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 6142f188f5613..03e09175bdb09 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -14,10 +14,12 @@
hypothesis.settings.register_profile(
"ci",
# Hypothesis timing checks are tuned for scalars by default, so we bump
- # them from 200ms to 5 ... | #19831 saw a flaky test, where a slow VM on Travis [went over the default deadline](https://travis-ci.org/pandas-dev/pandas/jobs/448750638#L2895). This PR therefore configures the per-test-case deadline to a higher value, and disables the global timeout (which is deprecated - we know it's confusing but haven't bumped ... | https://api.github.com/repos/pandas-dev/pandas/pulls/23441 | 2018-11-01T06:18:58Z | 2018-11-01T22:19:57Z | 2018-11-01T22:19:57Z | 2018-11-01T22:20:01Z |
BUG: Cleanup timedelta offset | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index fa748cccc0d65..567f84d612445 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1127,6 +1127,8 @@ Timedelta
- Fixed bug in adding a :class:`DataFrame` with all-`timedelta64[ns]` dtypes to a :class:`... | - [x] closes #21762
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Fixed to use same unit parsing logic in `Timedelta` and `to_timedelta`. Needs to update after #23264 and #23259.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23439 | 2018-11-01T02:57:54Z | 2018-11-06T03:27:30Z | 2018-11-06T03:27:30Z | 2018-11-13T00:54:12Z |
BUG: fix HDFStore.append with all empty strings error (GH12242) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index c7820a8cb9de1..31a6648e3eb7d 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1267,6 +1267,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form
- Bug in :meth:`det... | - [x] closes #12242
- [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/23435 | 2018-10-31T20:36:57Z | 2018-11-01T17:06:53Z | 2018-11-01T17:06:53Z | 2019-02-12T21:06:35Z |
CI: Move durations to pytest call | diff --git a/ci/azure/windows-py27.yml b/ci/azure/windows-py27.yml
index 8718cc849b7a8..991e7adc4e9d6 100644
--- a/ci/azure/windows-py27.yml
+++ b/ci/azure/windows-py27.yml
@@ -37,7 +37,7 @@ jobs:
displayName: 'Build'
- script: |
call activate %CONDA_ENV%
- pytest --junitxml=test-data.xml --... | Having it in the setup.cfg meant it was used with doctests, which
pushed errors further from the exit code.
| https://api.github.com/repos/pandas-dev/pandas/pulls/23434 | 2018-10-31T20:25:30Z | 2018-10-31T23:54:48Z | 2018-10-31T23:54:47Z | 2018-10-31T23:54:52Z |
REF: strictness and checks for Timedelta _simple_new | diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py
index 397297c1b88d0..9653121879c0d 100644
--- a/pandas/core/arrays/timedeltas.py
+++ b/pandas/core/arrays/timedeltas.py
@@ -11,7 +11,7 @@
from pandas import compat
from pandas.core.dtypes.common import (
- _TD_DTYPE, ensure_int64, i... | Broken off from #23426.
- [x] closes #9462
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23433 | 2018-10-31T19:38:17Z | 2018-11-03T13:12:50Z | 2018-11-03T13:12:50Z | 2018-11-03T14:39:35Z |
DOC: add checks on the returns section in the docstrings (#23138) | diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py
index 3d16fecb4ec3c..bb58449843096 100644
--- a/scripts/tests/test_validate_docstrings.py
+++ b/scripts/tests/test_validate_docstrings.py
@@ -633,6 +633,43 @@ def no_punctuation(self):
"""
return "Hello ... | - [X] Closes #23138
Updated returns checks in `validate_docstrings.py`:
- check that no name is given when only one value is returned
- check capitalization and punctuation in descriptions
Updated `test_validate_docstrings.py`:
- added some tests to validate these new checks | https://api.github.com/repos/pandas-dev/pandas/pulls/23432 | 2018-10-31T18:20:51Z | 2018-12-30T22:45:59Z | 2018-12-30T22:45:59Z | 2018-12-30T22:46:22Z |
REF: strictness/simplification in DatetimeArray/Index _simple_new | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index b656690b30e34..e0f07cb59b1ff 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -177,16 +177,14 @@ def _simple_new(cls, values, freq=None, tz=None, **kwargs):
we require the we have a dtype c... | Broken off of #23426. The edits to DatetimeIndex._simple_new go beyond what is done there. | https://api.github.com/repos/pandas-dev/pandas/pulls/23431 | 2018-10-31T18:07:24Z | 2018-11-02T13:33:46Z | 2018-11-02T13:33:46Z | 2018-11-02T15:00:41Z |
REF: Remove DatetimelikeArrayMixin._shallow_copy | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index dc7cf51ca109d..dfc0a0f109836 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -89,18 +89,6 @@ def _get_attributes_dict(self):
"""return an attributes dict for my class"""
... | Broken off of #23426. | https://api.github.com/repos/pandas-dev/pandas/pulls/23430 | 2018-10-31T16:39:49Z | 2018-11-02T13:34:49Z | 2018-11-02T13:34:49Z | 2018-11-05T09:22:52Z |
Fix+test timedelta64(nat) ops | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 58044aeb7d84c..92de1fe2e0679 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -36,6 +36,7 @@
is_object_dtype)
from pandas.core.dtypes.generic import ABCSeries, ABCDataFrame, ABCInd... | Fixes issues mentioned as follow-ups to #23320
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/23425 | 2018-10-30T23:52:49Z | 2018-11-06T20:49:42Z | 2018-11-06T20:49:42Z | 2018-11-08T13:25:59Z |
PERF: DataFrame.values | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 304e350a377bb..2747e2bc5e1f0 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1653,6 +1653,8 @@ def to_numpy(
[2, 4.5, Timestamp('2000-01-02 00:00:00')]], dtype=object)
"""
self._consolidate_inplace()
+ ... | ```
from asv_bench.benchmarks.frame_methods import *
self = ToNumpy()
self.setup()
%timeit self.time_to_numpy_mixed_tall()
24.2 ms ± 324 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- master
11.8 ms ± 609 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- PR
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/43160 | 2021-08-22T04:02:07Z | 2021-08-30T15:13:02Z | 2021-08-30T15:13:02Z | 2021-08-30T15:15:12Z |
TST: Test inequality w/ complex dtypes (GH28050) | diff --git a/pandas/tests/dtypes/test_dtypes.py b/pandas/tests/dtypes/test_dtypes.py
index abb29ce66fd34..30447de874aaa 100644
--- a/pandas/tests/dtypes/test_dtypes.py
+++ b/pandas/tests/dtypes/test_dtypes.py
@@ -1095,3 +1095,15 @@ def test_period_dtype_compare_to_string():
dtype = PeriodDtype(freq="M")
asser... | - [x] closes #28050
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Whats new::
Add a test to `pandas/test/dtypes/test_dtypes.py`
| https://api.github.com/repos/pandas-dev/pandas/pulls/43159 | 2021-08-21T21:30:15Z | 2021-08-22T18:03:11Z | 2021-08-22T18:03:11Z | 2021-08-22T19:09:08Z |
ENH: use github issue form for doc improvement | diff --git a/.github/ISSUE_TEMPLATE/documentation_improvement.md b/.github/ISSUE_TEMPLATE/documentation_improvement.md
deleted file mode 100644
index 3351ff9581121..0000000000000
--- a/.github/ISSUE_TEMPLATE/documentation_improvement.md
+++ /dev/null
@@ -1,22 +0,0 @@
----
-
-name: Documentation Improvement
-about: Repo... | xref #42951, #43009
Screenshot of current version:
<img width="829" alt="Screen Shot 2021-08-21 at 12 12 44 PM" src="https://user-images.githubusercontent.com/37011898/130328264-29ea829e-b664-4a68-bb7d-8a3b21c5bfee.png">
https://github.com/mzeitlin11/issue-forms/issues if anyone wants to play around with open... | https://api.github.com/repos/pandas-dev/pandas/pulls/43158 | 2021-08-21T16:19:31Z | 2021-08-26T23:11:36Z | 2021-08-26T23:11:36Z | 2021-08-27T01:47:16Z |
Updating _resolve_numeric_only function of GroupBy | diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst
index 126e0819febb9..6bcce36bef93d 100644
--- a/doc/source/whatsnew/v1.3.3.rst
+++ b/doc/source/whatsnew/v1.3.3.rst
@@ -27,6 +27,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.__getitem__` raising error for slice of :class:`Dat... | - [x] closes #43108 and #42395
It sets the numeric_only value based on the columns on which aggregate functions are applied
- [x] tests added / passed
New Test is added to `test_groupby_aggregation_mixed_dtype` function
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/de... | https://api.github.com/repos/pandas-dev/pandas/pulls/43154 | 2021-08-21T14:20:06Z | 2021-09-09T17:59:38Z | 2021-09-09T17:59:37Z | 2021-09-10T17:32:15Z |
TST: groupby.first/last retains categorical dtype | diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py
index 63ae54cafc900..d989cde09380a 100644
--- a/pandas/tests/groupby/test_categorical.py
+++ b/pandas/tests/groupby/test_categorical.py
@@ -1741,3 +1741,15 @@ def test_groupby_categorical_indices_unused_categories():
a... | - [x] closes #33090
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43153 | 2021-08-21T11:57:46Z | 2021-08-31T23:58:07Z | 2021-08-31T23:58:06Z | 2021-09-01T05:45:49Z |
BUG: Outer/right merge with EA dtypes cast to object | diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst
index b4265c1bc5ddd..00409cf963ab3 100644
--- a/doc/source/whatsnew/v1.3.3.rst
+++ b/doc/source/whatsnew/v1.3.3.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression in :class:`DataFrame` constructor failing to broadcast for defined :cla... | - [x] closes #40073
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43152 | 2021-08-21T11:30:33Z | 2021-09-03T21:52:08Z | 2021-09-03T21:52:08Z | 2021-09-04T02:34:44Z |
BUG: GroupBy.quantile fails with pd.NA | diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst
index 00409cf963ab3..46080e1847317 100644
--- a/doc/source/whatsnew/v1.3.3.rst
+++ b/doc/source/whatsnew/v1.3.3.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression in :class:`DataFrame` constructor failing to broadcast for defined :cla... | - [x] closes #42849
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43150 | 2021-08-21T07:48:39Z | 2021-09-04T23:29:29Z | 2021-09-04T23:29:29Z | 2021-09-12T17:54:13Z |
ENH: `Styler.to_html` gets `bold_headers` and `caption` kwarg | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index aef6128c63829..081441eddd7a7 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -73,7 +73,7 @@ Styler
- Styling of indexing has been added, with :meth:`.Styler.apply_index` and :meth:`.Styler.applymap_... | adds an item to #41693
| https://api.github.com/repos/pandas-dev/pandas/pulls/43149 | 2021-08-21T07:38:13Z | 2021-09-01T17:50:57Z | 2021-09-01T17:50:57Z | 2021-09-01T21:51:24Z |
TYP: callable refactor for apply methods in styler | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 81bd14629cfd3..5d523f59a46f8 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -1140,7 +1140,7 @@ def clear(self) -> None:
def _apply(
self,
- func: Callable[..., Styler],
+ func: Callable,... | unrelated question: if i'm in pandas-core can I be added as a maintainer to `config.yml`? | https://api.github.com/repos/pandas-dev/pandas/pulls/43148 | 2021-08-21T07:05:49Z | 2021-08-27T16:38:12Z | 2021-08-27T16:38:12Z | 2021-08-27T17:09:19Z |
PERF: avoid extraneous extract_array | diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py
index 7fbe249788a98..5db01989cbb6a 100644
--- a/asv_bench/benchmarks/frame_ctor.py
+++ b/asv_bench/benchmarks/frame_ctor.py
@@ -2,6 +2,7 @@
import pandas as pd
from pandas import (
+ Categorical,
DataFrame,
MultiIndex,... | ```
from asv_bench.benchmarks.frame_ctor import *
self = FromDicts()
self.setup()
%timeit self.time_dict_of_categoricals()
# 530 µs ± 21.1 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- master
# 471 µs ± 2.85 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- PR
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/43147 | 2021-08-21T04:45:25Z | 2021-08-21T14:11:37Z | 2021-08-21T14:11:37Z | 2021-08-21T15:24:51Z |
REGR: Fix fastparquet 0.7.0 not being able to read a parquet file | diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst
index 7c1a414c1f37d..bcfdcf6fd4b75 100644
--- a/doc/source/whatsnew/v1.3.3.rst
+++ b/doc/source/whatsnew/v1.3.3.rst
@@ -18,7 +18,7 @@ Fixed regressions
- Performance regression in :meth:`core.window.ewm.ExponentialMovingWindow.mean` (:issue:`... | - [x] closes #43075
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
My bad on this one, pinning one of the CI to ensure that this works. | https://api.github.com/repos/pandas-dev/pandas/pulls/43145 | 2021-08-21T02:19:26Z | 2021-09-01T19:36:43Z | 2021-09-01T19:36:43Z | 2021-11-11T01:38:11Z |
PERF: _form_blocks | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index 8f5d6d6bb0ef4..d0dad26cfb275 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -1,11 +1,9 @@
from __future__ import annotations
-from collections import defaultdict
import itertools
from... | ```
from asv_bench.benchmarks.frame_ctor import *
self = FromArrays()
self.setup()
%timeit self.time_frame_from_arrays_int()
2.28 ms ± 67 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- master
1.82 ms ± 5.34 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- PR
```
Orthogonal... | https://api.github.com/repos/pandas-dev/pandas/pulls/43144 | 2021-08-21T00:17:09Z | 2021-08-23T00:49:41Z | 2021-08-23T00:49:41Z | 2021-08-23T01:47:48Z |
PERF: DataFrame constructor | diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py
index b7aa001f2ccee..a02426648cef0 100644
--- a/pandas/core/internals/construction.py
+++ b/pandas/core/internals/construction.py
@@ -121,11 +121,30 @@ def arrays_to_mgr(
# don't force copy because getting jammed in an... | ```
from asv_bench.benchmarks.frame_ctor import *
self = FromArrays()
self.setup()
%timeit self.time_frame_from_arrays_int()
2.77 ms ± 129 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- master
2.11 ms ± 57.6 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- PR
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/43142 | 2021-08-20T21:13:01Z | 2021-08-21T01:07:14Z | 2021-08-21T01:07:14Z | 2021-08-21T01:12:43Z |
REF: remove create_block_manager_from_arrays | diff --git a/pandas/core/internals/__init__.py b/pandas/core/internals/__init__.py
index e04abd11697c3..6cbaae3fe12e0 100644
--- a/pandas/core/internals/__init__.py
+++ b/pandas/core/internals/__init__.py
@@ -1,7 +1,4 @@
-from pandas.core.internals.api import (
- create_block_manager_from_arrays,
- make_block,
-)... | Looks like dask uses create_block_manager_from_blocks, but I haven't seen any evidence that any downstream package uses create_block_manager_from_arrays. | https://api.github.com/repos/pandas-dev/pandas/pulls/43138 | 2021-08-20T17:03:49Z | 2021-08-21T01:52:18Z | 2021-08-21T01:52:18Z | 2021-08-21T01:59:31Z |
TYP: Index methods | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 7d51b50f783a5..57e015dc378c8 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -787,6 +787,7 @@ def _reduce(
)
return func(skipna=skipna, **kwds)
+ @final
def _map_values(self, mapper, na_action=None):
"""
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43137 | 2021-08-20T17:02:05Z | 2021-08-21T01:24:08Z | 2021-08-21T01:24:08Z | 2021-08-21T02:09:22Z |
REF: Replacing `axis in` with `_get_axis_number(axis)` | diff --git a/pandas/tests/generic/test_label_or_level_utils.py b/pandas/tests/generic/test_label_or_level_utils.py
index 87bb6a58600f4..d1c85d770621c 100644
--- a/pandas/tests/generic/test_label_or_level_utils.py
+++ b/pandas/tests/generic/test_label_or_level_utils.py
@@ -69,11 +69,12 @@ def assert_level_reference(fram... | xref [#43048](https://github.com/pandas-dev/pandas/issues/43048). Refactored test_label_or_level_utils.py | https://api.github.com/repos/pandas-dev/pandas/pulls/43131 | 2021-08-20T12:50:45Z | 2021-08-20T23:05:28Z | 2021-08-20T23:05:28Z | 2021-08-23T08:28:50Z |
REF: `axis in [...]` becomes `_get_axis_number(axis)` in Styler | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 5d523f59a46f8..8432a0b61b89a 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -1148,11 +1148,7 @@ def _apply(
subset = slice(None) if subset is None else subset
subset = non_reducing_slice(subset)
... | - [x] addresses an item in #43048
| https://api.github.com/repos/pandas-dev/pandas/pulls/43121 | 2021-08-20T07:43:05Z | 2021-08-30T09:04:27Z | 2021-08-30T09:04:27Z | 2021-08-30T11:42:00Z |
BUG: Throw a ParserError when header rows have unequal column counts … | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 985cd2bb553b7..52cbaa033e707 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -383,7 +383,7 @@ I/O
- Bug in :func:`Series.to_json` and :func:`DataFrame.to_json` where some attributes were skipped when ... | (GH43102)
- closes #43102
- Fixed uncaught IndexError that is raised when the iterator `i` in `extract(r)` inside base_parser.py exceeds the length of a header row (when `field_count > len(r)`).
- A Parser error is raised when the header row had unequal columns. Outputs the first row where a mismatch is found.
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/43118 | 2021-08-20T05:28:07Z | 2021-09-05T15:59:21Z | 2021-09-05T15:59:21Z | 2021-09-05T17:39:58Z |
EHN: partially upgrade sql module for SQLAlchemy 2.0 compat | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index afd045bd8bb2b..45444852c99a6 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -279,13 +279,9 @@ def read_sql_table(
--------
>>> pd.read_sql_table('table_name', 'postgres:///db_name') # doctest:+SKIP
"""
- from sqlalchemy.exc import Invali... | xref #40686
| https://api.github.com/repos/pandas-dev/pandas/pulls/43116 | 2021-08-19T23:20:43Z | 2021-08-20T12:38:21Z | 2021-08-20T12:38:21Z | 2021-08-20T15:18:11Z |
PERF: GroupBy.std operate blockwise instead of column-wise | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 6761387b0dbc2..ab29dea3190c8 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2918,7 +2918,7 @@ def _get_cythonized_result(
if min_count is not None:
base_func = partial(base_func... | The relevant cython code already supports 2D, so this is a super-simple fix. | https://api.github.com/repos/pandas-dev/pandas/pulls/43115 | 2021-08-19T22:58:09Z | 2021-08-20T00:56:55Z | 2021-08-20T00:56:55Z | 2021-08-20T01:53:24Z |
REF: names no longer needed in _form_blocks, create_block_manager_from_arrays | diff --git a/pandas/core/internals/__init__.py b/pandas/core/internals/__init__.py
index af1350f088b7a..e04abd11697c3 100644
--- a/pandas/core/internals/__init__.py
+++ b/pandas/core/internals/__init__.py
@@ -1,4 +1,7 @@
-from pandas.core.internals.api import make_block # pseudo-public version
+from pandas.core.intern... | 1) copy/paste create_block_manager_from_arrays and _form_blocks to the pseudo-public internals.api
2) rename create_block_manager_from_arrays -> create_block_manager_from_column_arrays
3) prune no-longer-needed args from create_block_manager_from_arrays, _form_blocks
Two follow-ups after this:
4) remove no-longer... | https://api.github.com/repos/pandas-dev/pandas/pulls/43114 | 2021-08-19T21:22:58Z | 2021-08-20T00:57:56Z | 2021-08-20T00:57:56Z | 2021-08-20T18:11:31Z |
DOC: `Styler` whats new section refactor 1.4.0 | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index daa6a5d894191..84fdc4600dc63 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -63,6 +63,21 @@ In Pandas 2.0, :class:`NumericIndex` will become the default numeric index type
See :ref:`here <advanced.... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/43111 | 2021-08-19T17:30:10Z | 2021-08-19T18:50:51Z | 2021-08-19T18:50:51Z | 2021-08-19T18:50:55Z |
REF: arrays_to_manager dont need names | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 94750bb25733c..d9940d23ac66d 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -700,7 +700,6 @@ def __init__(
arrays,
columns,
index,
- columns,
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
In turn this means that create_block_manager_from_arrays doesnt need `columns`, but bc that... | https://api.github.com/repos/pandas-dev/pandas/pulls/43110 | 2021-08-19T16:35:09Z | 2021-08-19T19:02:59Z | 2021-08-19T19:02:59Z | 2021-08-19T19:21:43Z |
TYP: Replace namedtuple with dataclass #40531 | diff --git a/pandas/core/groupby/base.py b/pandas/core/groupby/base.py
index d4e042122a9c3..986aaa07a913c 100644
--- a/pandas/core/groupby/base.py
+++ b/pandas/core/groupby/base.py
@@ -5,9 +5,15 @@
"""
from __future__ import annotations
-import collections
+import dataclasses
+from typing import Hashable
+
+
+@data... | This PR replaces namedtuple with dataclass in pandas/core/groupby/base.py and closes #40531.
The parameters `order` and `frozen` is set equal to True to make sure that that behaviour of OutputKey does not change.
| https://api.github.com/repos/pandas-dev/pandas/pulls/43107 | 2021-08-19T09:30:02Z | 2021-08-19T11:42:38Z | 2021-08-19T11:42:38Z | 2021-08-19T11:42:38Z |
REF: reorder_arrays handle missing | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 823de2133f0b3..aa78f8f701840 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2019,6 +2019,8 @@ def from_records(
2 1 c
3 0 d
"""
+ result_index = None
+
# Make a copy of the input... | By doing this here, we avoid the need to do it in _form_blocks. In conjunction with #43099 this will let us simplify _form_blocks quite a bit, which I am optimistic will be a nice performance bump. | https://api.github.com/repos/pandas-dev/pandas/pulls/43104 | 2021-08-18T23:12:05Z | 2021-08-19T01:09:30Z | 2021-08-19T01:09:30Z | 2021-08-19T01:49:51Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.