title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
DOC: Only include numpy.std note for std, not all ddof methods | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 5bd845534fc96..d27cf5e3a28bb 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10557,6 +10557,7 @@ def mad(self, axis=None, skipna=None, level=None):
name1=name1,
name2=name2,
axis_descr=axis_des... | I noticed that this note was mistakenly added to all methods that use `num_ddof_doc`, e.g. including [`sem`](https://pandas.pydata.org/docs/reference/api/pandas.Series.sem.html), which is misleading - this statement is only true for `std`. This PR makes sure we only add the note in that case.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42290 | 2021-06-28T21:33:37Z | 2021-07-13T16:52:33Z | 2021-07-13T16:52:33Z | 2021-07-13T16:52:39Z |
DEPR: treating dt64 as UTC in Timestamp constructor | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 5b09b62fa9e88..ae00309ba964d 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -150,6 +150,7 @@ Deprecations
- Deprecated :meth:`Index.is_type_compatible` (:issue:`42113`)
- Deprecated ``method`` argum... | - [ ] xref #24559
- [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
Once enforced this will match the DatetimeIndex/DatetimeArray/Series behavior | https://api.github.com/repos/pandas-dev/pandas/pulls/42288 | 2021-06-28T20:56:12Z | 2021-07-08T12:42:13Z | 2021-07-08T12:42:13Z | 2021-07-08T15:19:09Z |
to_timedelta docs warning on default behaviour | diff --git a/doc/source/user_guide/timedeltas.rst b/doc/source/user_guide/timedeltas.rst
index 0b4ddaaa8a42a..180de1df53f9e 100644
--- a/doc/source/user_guide/timedeltas.rst
+++ b/doc/source/user_guide/timedeltas.rst
@@ -88,13 +88,19 @@ or a list/array of strings:
pd.to_timedelta(["1 days 06:05:01.00003", "15.5us... | - [x] closes #34633
- [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
Have added clarification to the user guide on the default behaviour of `to_timedelta` when a string is passed. | https://api.github.com/repos/pandas-dev/pandas/pulls/42285 | 2021-06-28T18:18:36Z | 2021-07-11T20:15:33Z | 2021-07-11T20:15:33Z | 2021-07-11T20:15:39Z |
TST: move custom business month tests to own file (#27085) | diff --git a/pandas/tests/tseries/offsets/test_custom_business_month.py b/pandas/tests/tseries/offsets/test_custom_business_month.py
new file mode 100644
index 0000000000000..4cdd25d6483f7
--- /dev/null
+++ b/pandas/tests/tseries/offsets/test_custom_business_month.py
@@ -0,0 +1,339 @@
+"""
+Tests for the following offs... | - [ ] xref #27085
- [x] tests added / passed (no new tests added; all tests pass)
- [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
Move custom month business cases from the `test_month.p... | https://api.github.com/repos/pandas-dev/pandas/pulls/42284 | 2021-06-28T16:29:36Z | 2021-07-23T00:01:02Z | 2021-07-23T00:01:02Z | 2021-07-23T18:19:48Z |
Backport PR #42268: PERF: IntervalIndex.intersection | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 1de28cb26e7dc..1dcc3337990a3 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3099,9 +3099,13 @@ def _intersection(self, other: Index, sort=False):
"""
intersection specialized to the case with m... | Backport PR #42268 | https://api.github.com/repos/pandas-dev/pandas/pulls/42283 | 2021-06-28T16:13:46Z | 2021-06-28T17:18:45Z | 2021-06-28T17:18:45Z | 2021-06-28T17:52:27Z |
Backport PR #42270: PERF: CategoricalIndex.get_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 1de28cb26e7dc..b03e25631d235 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3407,12 +3407,25 @@ def get_indexer(
# matched to Interval scalars
return self._get_indexer_non_comparable(t... | Backport PR #42270 | https://api.github.com/repos/pandas-dev/pandas/pulls/42282 | 2021-06-28T16:07:00Z | 2021-06-28T21:28:38Z | 2021-06-28T21:28:38Z | 2021-06-28T21:33:04Z |
Backport PR #42277 on branch 1.3.x (DOC GH29075 close database connections after creation) | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index c2b030d732ba9..1b28aa2900f65 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -5526,13 +5526,23 @@ below and the SQLAlchemy `documentation <https://docs.sqlalchemy.org/en/latest/c
# Create your engine.
... | Backport PR #42277: DOC GH29075 close database connections after creation | https://api.github.com/repos/pandas-dev/pandas/pulls/42281 | 2021-06-28T15:43:05Z | 2021-06-28T16:56:25Z | 2021-06-28T16:56:25Z | 2021-06-28T16:56:25Z |
Backport PR #42254 on branch 1.3.x (REGR: groupby with as_index=False on an empty frame) | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 5cb0eac5d9074..18c84d9aa88bf 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1676,7 +1676,9 @@ def _wrap_transformed_output(
def _wrap_agged_manager(self, mgr: Manager2D) -> DataFrame:
... | Backport PR #42254: REGR: groupby with as_index=False on an empty frame | https://api.github.com/repos/pandas-dev/pandas/pulls/42280 | 2021-06-28T14:28:15Z | 2021-06-28T15:41:48Z | 2021-06-28T15:41:48Z | 2021-06-28T15:41:49Z |
Backport PR #42091 on branch 1.3.x (REGR: Subclassing `Styler` and addressing `from_custom_template`) | diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst
index c94795aac732c..7b790daea37ff 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -24,6 +24,8 @@ Styler properties
Styler.env
Styler.template_html
+ Styler.template_html_style
+ Styler.templat... | Backport PR #42091: REGR: Subclassing `Styler` and addressing `from_custom_template` | https://api.github.com/repos/pandas-dev/pandas/pulls/42279 | 2021-06-28T13:24:57Z | 2021-06-28T14:24:22Z | 2021-06-28T14:24:22Z | 2021-06-28T14:24:23Z |
TST: Added test for upcasting to object when concatinating on categorical indexes with non-identical categories | diff --git a/pandas/tests/reshape/concat/test_categorical.py b/pandas/tests/reshape/concat/test_categorical.py
index d8b5f19c6a745..aba14fd2fcd77 100644
--- a/pandas/tests/reshape/concat/test_categorical.py
+++ b/pandas/tests/reshape/concat/test_categorical.py
@@ -202,3 +202,24 @@ def test_categorical_concat_gh7864(sel... | This PR simple adds a test for upcasting to object when concatinating on categorical indexes with non-identical categories.
- [x] closes #17629
- [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 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/42278 | 2021-06-28T13:07:55Z | 2021-07-01T23:46:31Z | 2021-07-01T23:46:31Z | 2021-07-01T23:46:37Z |
DOC GH29075 close database connections after creation | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index c2b030d732ba9..1b28aa2900f65 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -5526,13 +5526,23 @@ below and the SQLAlchemy `documentation <https://docs.sqlalchemy.org/en/latest/c
# Create your engine.
... | - [x] closes #29075
- [ ] whatsnew entry
I've expanded on the use of a context manager to handle the closing of the database connection after the connection has been opened. I've also included a warning at the end of the section highlighting problems with leaving the database connection open. I think these additio... | https://api.github.com/repos/pandas-dev/pandas/pulls/42277 | 2021-06-28T08:30:47Z | 2021-06-28T15:42:38Z | 2021-06-28T15:42:38Z | 2021-06-28T16:01:22Z |
⬆️ UPGRADE: Autoupdate pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 631a78b877b45..cda7f64708dbd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -53,7 +53,7 @@ repos:
types: [text]
args: [--append-config=flake8/cython-template.cfg]
- repo: https://github.com/PyCQA/isort
- ... | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/master)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/nod... | https://api.github.com/repos/pandas-dev/pandas/pulls/42274 | 2021-06-28T07:10:51Z | 2021-06-30T07:47:25Z | 2021-06-30T07:47:25Z | 2021-06-30T07:47:28Z |
ENH: Add `method='table'` for EWM.mean | diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py
index d35770b720f7a..97294fc02834b 100644
--- a/asv_bench/benchmarks/rolling.py
+++ b/asv_bench/benchmarks/rolling.py
@@ -296,5 +296,8 @@ def time_apply(self, method):
table_method_func, raw=True, engine="numba"
)
+ ... | - [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/42273 | 2021-06-28T05:49:30Z | 2021-06-29T12:24:59Z | 2021-06-29T12:24:59Z | 2021-07-02T08:21:58Z |
CLN: simplify Styler clear mechanics and tests | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 06e5ba3fad460..931e775f7bdec 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -1029,15 +1029,14 @@ def clear(self) -> None:
Returns None.
"""
- self.ctx.clear()
- self.tooltips = None
... | - [x] follows #42187
- [x] checks an item off #40675
The current mechanics are unstructured and the tests is not future proof (if new attributes are added tests will not pick these up and fail). This PR generalises the construction and future proofs the tests. No user facing change.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42271 | 2021-06-27T21:43:56Z | 2021-07-01T23:56:26Z | 2021-07-01T23:56:26Z | 2021-07-03T07:25:23Z |
PERF: CategoricalIndex.get_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 64ba18271100e..c5d26eddcf451 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3415,16 +3415,24 @@ def get_indexer(
# matched to Interval scalars
return self._get_indexer_non_comparable(t... | - [x] closes #42249
- [ ] 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
```
import pandas as pd
import string, itertools
data_unique = pd.CategoricalIndex(
... | https://api.github.com/repos/pandas-dev/pandas/pulls/42270 | 2021-06-27T19:57:46Z | 2021-06-28T14:58:01Z | 2021-06-28T14:58:00Z | 2021-06-28T16:14:21Z |
DEPR: Index.get_loc with method | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 81545ada63ce5..5ffb5b0c7ed7e 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -97,7 +97,7 @@ Other API changes
Deprecations
~~~~~~~~~~~~
- Deprecated :meth:`Index.is_type_compatible` (:issue:`42113`)... | - [ ] closes #xxxx
- [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
We only use it one place internally; this will allow us to simplify get_loc, which will mar... | https://api.github.com/repos/pandas-dev/pandas/pulls/42269 | 2021-06-27T18:21:14Z | 2021-07-01T23:15:30Z | 2021-07-01T23:15:30Z | 2022-11-28T18:55:23Z |
PERF: IntervalIndex.intersection | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 64ba18271100e..1cd0ba3c47cd8 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3089,7 +3089,13 @@ def _intersection(self, other: Index, sort=False):
"""
intersection specialized to the case with m... | - [x] closes #42240
- [ ] 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
```
import pandas as pd
import numpy as np
N = 10 ** 5
left = pd.IntervalIndex.from_... | https://api.github.com/repos/pandas-dev/pandas/pulls/42268 | 2021-06-27T16:42:14Z | 2021-06-28T14:25:14Z | 2021-06-28T14:25:14Z | 2021-06-28T16:16:17Z |
TST IntegerArray bounds error closing GH21796 | diff --git a/pandas/tests/arrays/test_array.py b/pandas/tests/arrays/test_array.py
index 61d56df485ab1..958ccec930f0e 100644
--- a/pandas/tests/arrays/test_array.py
+++ b/pandas/tests/arrays/test_array.py
@@ -309,6 +309,14 @@ def test_scalar_raises():
pd.array(1)
+def test_bounds_check():
+ # GH21796
+ ... | - [x] closes #21796
- [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
| https://api.github.com/repos/pandas-dev/pandas/pulls/42267 | 2021-06-27T16:35:16Z | 2021-07-01T23:55:16Z | 2021-07-01T23:55:16Z | 2021-07-01T23:55:16Z |
BUG: Series.loc[dtstr] type depends on monotonicity | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 81545ada63ce5..016ece3b57e73 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -158,7 +158,7 @@ Interval
Indexing
^^^^^^^^
--
+- Bug in indexing on a :class:`Series` or :class:`DataFrame` with a :cla... | - [x] closes #24892
- [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
xref #42258 which makes the same change for PeriodIndex._can_partial_date_slice but its be... | https://api.github.com/repos/pandas-dev/pandas/pulls/42265 | 2021-06-26T22:52:34Z | 2021-07-01T23:18:58Z | 2021-07-01T23:18:57Z | 2021-07-01T23:39:02Z |
CLN: Group tests for apply/agg/transform with a string argument | diff --git a/pandas/tests/apply/test_frame_apply.py b/pandas/tests/apply/test_frame_apply.py
index 14266a2c29a7f..388ae1dbf2f53 100644
--- a/pandas/tests/apply/test_frame_apply.py
+++ b/pandas/tests/apply/test_frame_apply.py
@@ -1,5 +1,4 @@
from datetime import datetime
-from itertools import chain
import warnings
... | - [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
Reorg of apply tests, grouping all those that take a string argument together. Plan to next create `test_list` and `test_dict`, then all other test files in appl... | https://api.github.com/repos/pandas-dev/pandas/pulls/42264 | 2021-06-26T20:57:47Z | 2021-07-09T13:15:46Z | 2021-07-09T13:15:46Z | 2021-07-09T13:54:31Z |
CLN: simplify take2d_axis0 generated code | diff --git a/pandas/_libs/algos_take_helper.pxi.in b/pandas/_libs/algos_take_helper.pxi.in
index 90a9a7b2349e1..ec041c03b05e1 100644
--- a/pandas/_libs/algos_take_helper.pxi.in
+++ b/pandas/_libs/algos_take_helper.pxi.in
@@ -109,32 +109,33 @@ def take_2d_axis0_{{name}}_{{dest}}(ndarray[{{c_type_in}}, ndim=2] values,
... | For example, on master we generate:
```
@cython.wraparound(False)
@cython.boundscheck(False)
def take_2d_axis0_int8_int32(const int8_t[:, :] values,
ndarray[intp_t] indexer,
int32_t[:, :] out,
fill_value... | https://api.github.com/repos/pandas-dev/pandas/pulls/42263 | 2021-06-26T20:14:00Z | 2021-07-01T23:40:14Z | 2021-07-01T23:40:14Z | 2021-07-01T23:45:06Z |
BUG: Fix to_datetime() cache behaviour to not omit duplicated output values | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 81545ada63ce5..86ae571ff0b77 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -122,7 +122,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
--
+- Bug in :func:`to_datetime` returning pd.NaT for inputs that... | - [x] closes #42259
- [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/42261 | 2021-06-26T19:45:12Z | 2021-07-04T21:32:21Z | 2021-07-04T21:32:21Z | 2021-07-22T12:25:42Z |
CLN: allow label memviews to be None | diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi
index d0f664c323a89..9da5534c51321 100644
--- a/pandas/_libs/algos.pyi
+++ b/pandas/_libs/algos.pyi
@@ -123,7 +123,7 @@ def is_monotonic(
def rank_1d(
values: np.ndarray, # ndarray[rank_t, ndim=1]
- labels: np.ndarray, # const int64_t[:]
+ lab... | Saves some unnecessary memory allocations, plus moving towards making `rank_sorted_1d` easier to call. Also have done something similar for allowing `mask` to be None, but split that off this pr to keep it simpler.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42260 | 2021-06-26T19:24:10Z | 2021-07-01T23:42:10Z | 2021-07-01T23:42:10Z | 2021-07-01T23:45:18Z |
REF: simplify __can_partial_date_slice, _parsed_string_to_bounds | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 2a2993dedb25d..ce44ce3261286 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -567,21 +567,6 @@ def _parsed_string_to_bounds(self, reso: Resolution, parsed: datetime):
-------
... | - [ ] 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/42258 | 2021-06-26T18:39:19Z | 2021-07-01T23:13:25Z | 2021-07-01T23:13:25Z | 2021-07-01T23:23:55Z |
Backport PR #42148 on branch 1.3.x (DOC: share swaplevel docstring between DataFrame and Series (#42120)) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 0dc844fe3d58d..e555625dbba95 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6744,23 +6744,16 @@ def nsmallest(self, n, columns, keep: str = "first") -> DataFrame:
self, n=n, keep=keep, columns=columns
).nsmallest()
... | Backport PR #42148: DOC: share swaplevel docstring between DataFrame and Series (#42120) | https://api.github.com/repos/pandas-dev/pandas/pulls/42257 | 2021-06-26T18:32:38Z | 2021-06-27T08:39:28Z | 2021-06-27T08:39:28Z | 2021-06-27T08:39:28Z |
CI: fewer workers on windows | diff --git a/ci/azure/windows.yml b/ci/azure/windows.yml
index 5644ad46714d5..7c088622f9638 100644
--- a/ci/azure/windows.yml
+++ b/ci/azure/windows.yml
@@ -12,11 +12,13 @@ jobs:
ENV_FILE: ci/deps/azure-windows-37.yaml
CONDA_PY: "37"
PATTERN: "not slow and not network"
+ PYTEST_WORKERS... | - [x] closes #42236
Seeing if this helps for #42236
| https://api.github.com/repos/pandas-dev/pandas/pulls/42256 | 2021-06-26T17:05:12Z | 2021-06-29T12:26:37Z | 2021-06-29T12:26:37Z | 2021-06-29T12:26:54Z |
REGR: groupby with as_index=False on an empty frame | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 5cb0eac5d9074..18c84d9aa88bf 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1676,7 +1676,9 @@ def _wrap_transformed_output(
def _wrap_agged_manager(self, mgr: Manager2D) -> DataFrame:
... | - [x] closes #41998
- [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
No whatsnew because this was introduced in 1.3
| https://api.github.com/repos/pandas-dev/pandas/pulls/42254 | 2021-06-26T16:17:55Z | 2021-06-28T14:27:50Z | 2021-06-28T14:27:50Z | 2021-10-19T03:46:02Z |
ENH: allow attrs to be propagated via pd.concat | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 193356a46a6ea..9e48e8bb35838 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -190,6 +190,7 @@ representation of :class:`DataFrame` objects (:issue:`4889`).
Other enhancements
^^^^^^^^^^^^^^^^^^
+- ... | - [x] closes #41828
- [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
@TomAugspurger @lithomas1 I have made a fix to this issue and I wonder if do you mind have... | https://api.github.com/repos/pandas-dev/pandas/pulls/42252 | 2021-06-26T12:19:46Z | 2021-12-05T15:39:24Z | 2021-12-05T15:39:23Z | 2021-12-05T19:07:15Z |
DOC: Clarify relation between DateOffset and relativedelta | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index ac7447420596a..6596aebc1892e 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -1152,12 +1152,13 @@ class DateOffset(RelativeDeltaOffset, metaclass=OffsetMeta):
"""
Standard kind of date in... | dateutil.relativedelta can be constructed either from two date/datetime objects passed as positional arguments, or explicitly constructed in terms of year, month, day etc passed as keyword arguments. DateOffset only supports the keyword argument form of relativedelta.
- [x] related to #41847
- [ ] tests added / pas... | https://api.github.com/repos/pandas-dev/pandas/pulls/42251 | 2021-06-26T12:14:55Z | 2021-07-11T19:35:36Z | 2021-07-11T19:35:36Z | 2021-07-11T19:35:44Z |
DOC: create folders in to_csv #24306 | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 5f57c353391c2..b697739b6166e 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3450,6 +3450,18 @@ def to_csv(
... archive_name='out.csv') # doctest: +SKIP
>>> df.to_csv('out.zip', index=False... | - [x] closes #24306
- [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
| https://api.github.com/repos/pandas-dev/pandas/pulls/42250 | 2021-06-26T10:16:43Z | 2021-09-21T19:15:44Z | 2021-09-21T19:15:44Z | 2021-09-21T19:15:48Z |
CLN: simplify MultiIndex.get_locs | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index cac0a8cc5791f..398b49884efe4 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -3040,7 +3040,9 @@ def partial_selection(key, indexer=None):
indexer = self._get_level_indexer(key, level=level)
... | I think this can be simplified further, but need to fix a newly-surfaced get_indexer_non_unique bug first | https://api.github.com/repos/pandas-dev/pandas/pulls/42245 | 2021-06-26T02:59:19Z | 2021-07-04T21:37:03Z | 2021-07-04T21:37:03Z | 2021-07-04T21:45:20Z |
Updated the return type section of to_datetime | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 014a702618bda..9a1ee029f1609 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -762,7 +762,9 @@ def to_datetime(
If parsing succeeded.
Return type depends on input:
- - list-li... | Updated the return type section of to_datetime to include list-like mixed timezone inputs
- [x] closes #42229
- [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/42244 | 2021-06-26T00:02:49Z | 2021-07-11T19:41:22Z | 2021-07-11T19:41:21Z | 2021-07-12T08:06:37Z |
PERF/ENH: allow Generator in sampling methods | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 45c280b89ea28..02ea989ed5525 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -29,7 +29,7 @@ enhancement2
Other enhancements
^^^^^^^^^^^^^^^^^^
--
+- :meth:`Series.sample`, :meth:`DataFrame.sample`,... | - [x] closes #38100
- [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
The perf gap is pretty crazy:
```
In [10]: rng = np.random.default_rng()
In [11]... | https://api.github.com/repos/pandas-dev/pandas/pulls/42243 | 2021-06-25T23:01:18Z | 2021-07-04T21:37:34Z | 2021-07-04T21:37:34Z | 2021-07-04T22:00:35Z |
DOC: Add pandas-workshop community tutorial. | diff --git a/doc/source/getting_started/tutorials.rst b/doc/source/getting_started/tutorials.rst
index b8940d2efed2f..a349251bdfca6 100644
--- a/doc/source/getting_started/tutorials.rst
+++ b/doc/source/getting_started/tutorials.rst
@@ -18,6 +18,19 @@ entails.
For the table of contents, see the `pandas-cookbook GitHub... | - [X] closes #42009
- [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 | https://api.github.com/repos/pandas-dev/pandas/pulls/42242 | 2021-06-25T22:59:26Z | 2021-07-11T19:47:14Z | 2021-07-11T19:47:14Z | 2021-07-11T20:14:10Z |
Backport PR #42237 on branch 1.3.x (TST/CI: Reduce number of unnecessary numba tests in groupby ops) | diff --git a/pandas/tests/groupby/conftest.py b/pandas/tests/groupby/conftest.py
index b69a467f91659..9e7d6d2a7c5bd 100644
--- a/pandas/tests/groupby/conftest.py
+++ b/pandas/tests/groupby/conftest.py
@@ -137,13 +137,17 @@ def parallel(request):
return request.param
-@pytest.fixture(params=[True, False])
+# Ca... | Backport PR #42237: TST/CI: Reduce number of unnecessary numba tests in groupby ops | https://api.github.com/repos/pandas-dev/pandas/pulls/42241 | 2021-06-25T21:59:32Z | 2021-06-26T11:28:53Z | 2021-06-26T11:28:53Z | 2021-06-26T11:28:53Z |
REF: share Index.join | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 6219aa07478d7..e437099572d75 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3870,6 +3870,7 @@ def _reindex_non_unique(
# --------------------------------------------------------------------
# Join Meth... | - [ ] 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/42238 | 2021-06-25T20:34:45Z | 2021-06-25T22:07:28Z | 2021-06-25T22:07:28Z | 2021-06-25T22:12:25Z |
TST/CI: Reduce number of unnecessary numba tests in groupby ops | diff --git a/pandas/tests/groupby/conftest.py b/pandas/tests/groupby/conftest.py
index b69a467f91659..9e7d6d2a7c5bd 100644
--- a/pandas/tests/groupby/conftest.py
+++ b/pandas/tests/groupby/conftest.py
@@ -137,13 +137,17 @@ def parallel(request):
return request.param
-@pytest.fixture(params=[True, False])
+# Ca... | - [x] closes #42236
- [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
Limiting the numba `engine_kwargs` parameterization for groupby tests similar to #42024
cc @mzeitlin11 | https://api.github.com/repos/pandas-dev/pandas/pulls/42237 | 2021-06-25T19:51:31Z | 2021-06-25T21:59:05Z | 2021-06-25T21:59:05Z | 2021-06-25T22:55:37Z |
BUG: OutOfBoundsTimedelta not raised for out-of-bounds Timedelta | diff --git a/pandas/tests/scalar/timedelta/test_constructors.py b/pandas/tests/scalar/timedelta/test_constructors.py
index ea4a56be6da48..34b725eb9fe77 100644
--- a/pandas/tests/scalar/timedelta/test_constructors.py
+++ b/pandas/tests/scalar/timedelta/test_constructors.py
@@ -204,15 +204,26 @@ def test_overflow_on_cons... | - [x] closes #36615
- [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
| https://api.github.com/repos/pandas-dev/pandas/pulls/42235 | 2021-06-25T18:56:09Z | 2021-07-13T21:17:24Z | 2021-07-13T21:17:24Z | 2021-07-13T21:17:28Z |
Backport PR #42168: ENH: add ignore index to DataFrame / Series.sample | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index ddcce820f5a19..49c168cd5eb84 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -278,6 +278,7 @@ Other enhancements
- Improved error message in ``corr`` and ``cov`` methods on :class:`.Rolling`, :class:`... | Backport of #42168
| https://api.github.com/repos/pandas-dev/pandas/pulls/42234 | 2021-06-25T18:39:19Z | 2021-06-25T21:58:24Z | 2021-06-25T21:58:24Z | 2021-06-25T22:39:00Z |
PERF/REF: groupby sample | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index 1648985a56b91..6ca951e946bad 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -832,4 +832,18 @@ def function(values):
self.grouper.agg(function, engine="cython")
+class Sample:
+ def... | - [x] closes #34483
- [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
Benchmarks:
```
before after ratio
[d61ace50] [... | https://api.github.com/repos/pandas-dev/pandas/pulls/42233 | 2021-06-25T18:22:21Z | 2021-07-02T00:05:13Z | 2021-07-02T00:05:13Z | 2021-07-02T00:07:27Z |
PERF: Avoid copy in DataFrame._reduce corner cases | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 0acbb0c34266f..bf5cf8ce6da8a 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -9810,8 +9810,12 @@ def _reduce(
FutureWarning,
stacklevel=5,
)
- cols = self.columns[~dtype_is_dt]
- ... | This implements BlockManager._get_data_subset (which ArrayManager already has) to avoid making a copy in a `DataFrame.__getitem__` usage inside DataFrame._reduce.
This path is deprecated so this snippet will be removed in 2.0.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42232 | 2021-06-25T17:37:39Z | 2021-06-25T22:12:38Z | 2021-06-25T22:12:38Z | 2021-06-25T22:15:25Z |
PERF: tighten _should_compare for MultiIndex | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 64ba18271100e..928c4928dded0 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -5345,6 +5345,16 @@ def _get_indexer_non_comparable(
"""
if method is not None:
other = unpack_nested_dty... | - [ ] 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/42231 | 2021-06-25T17:08:41Z | 2021-07-01T23:03:39Z | 2021-07-01T23:03:39Z | 2021-07-16T21:38:54Z |
REF: move short-circuiting up to get_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 6219aa07478d7..7b58e34152547 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3077,7 +3077,7 @@ def intersection(self, other, sort=False):
return Index([], name=result_name)
elif not is_dty... | This is the last of the boilerplate-cleanups I have for get_indexer, with some additional CLN thrown in for good measure. | https://api.github.com/repos/pandas-dev/pandas/pulls/42230 | 2021-06-25T17:03:06Z | 2021-06-25T22:08:20Z | 2021-06-25T22:08:20Z | 2021-06-25T22:11:23Z |
CLN: setops | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 6219aa07478d7..3a26c5e44c599 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3089,8 +3089,6 @@ def _intersection(self, other: Index, sort=False):
"""
intersection specialized to the case with ma... | - [ ] 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/42228 | 2021-06-25T16:52:42Z | 2021-06-25T22:09:21Z | 2021-06-25T22:09:21Z | 2021-06-25T22:12:01Z |
REF: implement Index._should_partial_index | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 64ba18271100e..f23366193958f 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3410,7 +3410,7 @@ def get_indexer(
if len(target) == 0:
return np.array([], dtype=np.intp)
- if not self... | Formalize the IntervalIndex special case, in principle let subclasses override. | https://api.github.com/repos/pandas-dev/pandas/pulls/42227 | 2021-06-25T16:29:36Z | 2021-07-01T23:12:44Z | 2021-07-01T23:12:44Z | 2021-08-24T13:56:00Z |
REF: de-duplicate MultiIndex.reindex | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 6219aa07478d7..9bd2051a9a07f 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3762,14 +3762,25 @@ def reindex(
target = ensure_has_len(target) # target may be an iterator
if not isinstance(tar... | - [ ] 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/42226 | 2021-06-25T16:17:50Z | 2021-06-25T22:12:09Z | 2021-06-25T22:12:09Z | 2021-06-25T22:12:58Z |
REF: _validate_partial_date_slice -> _can_partial_date_slice | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 7afcb4f5b6978..b953bbba8f78c 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -282,7 +282,7 @@ def _summary(self, name=None) -> str:
# ------------------------------------------... | Moving incrementally towards sharing more of get_loc between DTI/PI | https://api.github.com/repos/pandas-dev/pandas/pulls/42225 | 2021-06-25T16:15:04Z | 2021-06-25T17:32:47Z | 2021-06-25T17:32:47Z | 2021-06-25T17:33:49Z |
Backport PR #42197 on branch 1.3.x (PERF: IntervalArray.unique, IntervalIndex.intersection) | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index f4a6b0b1c1694..a9ca39b89360c 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -11,11 +11,7 @@
Union,
cast,
)
-from warnings import (
- catch_warnings,
- simplefilter,
- warn,
-)
+from warnings import wa... | Backport PR #42197: PERF: IntervalArray.unique, IntervalIndex.intersection | https://api.github.com/repos/pandas-dev/pandas/pulls/42224 | 2021-06-25T14:32:25Z | 2021-06-25T15:42:27Z | 2021-06-25T15:42:27Z | 2021-06-25T15:42:27Z |
Backport PR #42220 on branch 1.3.x (DOC: 1.3 release notes misc) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index cb8df16d6c0fb..ddcce820f5a19 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1,7 +1,7 @@
.. _whatsnew_130:
-What's new in 1.3.0 (??)
-------------------------
+What's new in 1.3.0 (June ??)
+------... | Backport PR #42220: DOC: 1.3 release notes misc | https://api.github.com/repos/pandas-dev/pandas/pulls/42223 | 2021-06-25T14:25:36Z | 2021-06-25T15:42:08Z | 2021-06-25T15:42:08Z | 2021-06-25T15:42:08Z |
ENH: add if_sheet_exists='overlay' to ExcelWriter | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 7828c479e800f..5791f3859745e 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -207,12 +207,14 @@ Other enhancements
- Added :meth:`.ExponentialMovingWindow.sum` (:issue:`13297`)
- :meth:`Series.str.sp... | - [x] closes #42221, related to #40231
- [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 - not applicable
I mainly wanted this functionality myself, and am very... | https://api.github.com/repos/pandas-dev/pandas/pulls/42222 | 2021-06-25T14:00:08Z | 2021-11-17T02:02:18Z | 2021-11-17T02:02:17Z | 2021-11-17T02:02:23Z |
TST: #15752 Add test_drop_duplicates for Categorical dtypes | diff --git a/pandas/tests/test_categorical.py b/pandas/tests/test_categorical.py
index 6366aae8ccdf6..b77e2d1dcda8a 100644
--- a/pandas/tests/test_categorical.py
+++ b/pandas/tests/test_categorical.py
@@ -797,6 +797,97 @@ def test_set_categories_inplace(self):
cat.set_categories(['a', 'b', 'c', 'd'], inplace=T... | - [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/18072 | 2017-11-02T03:54:27Z | 2017-11-06T13:35:21Z | 2017-11-06T13:35:21Z | 2017-11-07T04:01:03Z |
ENH: improve output for testing.assert_*_equal with Categoricals | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 25a891eab0e86..4adafe7c06450 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -117,7 +117,8 @@ Categorical
^^^^^^^^^^^
- Bug in :meth:`DataFrame.astype` where casting to 'category' on an empty `... | - [x ] closes #18056
- [ ] tests added / passed
- [ x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x ] whatsnew entry
The new CategoricalDtype made the output from failing tests uninformative, see #18056.
The error message is now:
```python
>>> c1 = pd.CategoricalIndex(['a', 'b'])
>... | https://api.github.com/repos/pandas-dev/pandas/pulls/18069 | 2017-11-01T22:27:48Z | 2017-11-02T11:26:51Z | 2017-11-02T11:26:50Z | 2017-12-11T20:24:46Z |
BUG:fix rolling skew kurt floating issue | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 088168fd8a008..84b6a1885178a 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -59,6 +59,7 @@ Bug Fixes
- Bug in ``DataFrame.resample(...).apply(...)`` when there is a callable that returns differen... | - [x] closes #18044
- [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/18065 | 2017-11-01T16:08:43Z | 2017-11-08T03:00:34Z | 2017-11-08T03:00:34Z | 2017-11-08T03:00:42Z |
Separate _TSObject into conversion | diff --git a/pandas/_libs/tslib.pxd b/pandas/_libs/tslib.pxd
index 5ceff32cfbac7..443b3867eb2b5 100644
--- a/pandas/_libs/tslib.pxd
+++ b/pandas/_libs/tslib.pxd
@@ -1,6 +1,7 @@
from numpy cimport ndarray, int64_t
-cdef convert_to_tsobject(object, object, object, bint, bint)
+from tslibs.conversion cimport convert_to... | This is what we've been building towards folks. `convert_to_tsobject`, `convert_str_to_tsobject`, and `convert_datetime_to_tsobject` are moved to `tslibs.conversion`. Concerns regarding `_TSObjects`s can be considered separated.
This isn't quite cut/paste:
- `convert_to_tsobject` calls `is_timestamp` which is not... | https://api.github.com/repos/pandas-dev/pandas/pulls/18060 | 2017-11-01T03:46:38Z | 2017-11-02T23:54:45Z | 2017-11-02T23:54:45Z | 2017-12-08T19:38:59Z |
Implement numpy_helper functions directly in cython | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index f882c3d7a7621..d012e169d1e45 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -48,9 +48,8 @@ from cpython.datetime cimport (PyDateTime_Check, PyDate_Check,
PyTime_Check, PyDelta_Check,
... | cleanup unused bits of src/datetime.pxd
TL;DR this PR implements `get_datetime64_value`, `get_timedelta64_value`, and `get_datetime64_unit` directly in cython instead of getting them via C. There is no performance penalty. Weaning off of the src directory will make the build less of a hassle.
AFAICT the main re... | https://api.github.com/repos/pandas-dev/pandas/pulls/18059 | 2017-11-01T02:50:37Z | 2017-11-06T13:45:56Z | 2017-11-06T13:45:56Z | 2017-12-08T19:40:57Z |
TST: separate out grouping-type tests | diff --git a/pandas/tests/groupby/test_functional.py b/pandas/tests/groupby/test_functional.py
new file mode 100644
index 0000000000000..bc13d51c4f4f6
--- /dev/null
+++ b/pandas/tests/groupby/test_functional.py
@@ -0,0 +1,371 @@
+# -*- coding: utf-8 -*-
+
+""" test function application """
+
+import pytest
+
+from stri... | https://api.github.com/repos/pandas-dev/pandas/pulls/18057 | 2017-11-01T00:06:00Z | 2017-11-01T10:33:06Z | 2017-11-01T10:33:06Z | 2017-11-01T10:34:02Z | |
Update Contributing Environment section | diff --git a/ci/environment-dev.yaml b/ci/environment-dev.yaml
new file mode 100644
index 0000000000000..c3d3d59f895c6
--- /dev/null
+++ b/ci/environment-dev.yaml
@@ -0,0 +1,14 @@
+name: pandas-dev
+channels:
+ - defaults
+ - conda-forge
+dependencies:
+ - Cython
+ - NumPy
+ - moto
+ - pytest
+ - python-dateutil... | Closes https://github.com/pandas-dev/pandas/issues/18041
Closes https://github.com/pandas-dev/pandas/issues/17544
Closes https://github.com/pandas-dev/pandas/issues/17747
Still need to
1. Maybe add a section on getting compilers
2. Update the windows environment section
3. More rewording on the docs
But I ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18052 | 2017-10-31T13:38:19Z | 2017-11-02T11:58:53Z | 2017-11-02T11:58:52Z | 2017-12-11T20:20:31Z |
Separate out arithmetic tests for datetimelike indexes | diff --git a/pandas/tests/indexes/datetimes/test_arithmetic.py b/pandas/tests/indexes/datetimes/test_arithmetic.py
new file mode 100644
index 0000000000000..2f3d567599fa6
--- /dev/null
+++ b/pandas/tests/indexes/datetimes/test_arithmetic.py
@@ -0,0 +1,335 @@
+# -*- coding: utf-8 -*-
+import warnings
+from datetime impo... | As discussed... somewhere. I'll find the reference tomorrow.
This is about as close as I could get to pure cut/paste. There are a few notes to sprinkle in about things to clean up in a follow-up.
In a couple places this wraps some string literals to make folding easier. | https://api.github.com/repos/pandas-dev/pandas/pulls/18049 | 2017-10-31T06:43:54Z | 2017-11-01T01:19:39Z | 2017-11-01T01:19:39Z | 2017-11-02T14:55:00Z |
MAINT: Remove np.array_equal calls in tests | diff --git a/pandas/tests/dtypes/test_cast.py b/pandas/tests/dtypes/test_cast.py
index d9fb458c83529..82a35fa711e8c 100644
--- a/pandas/tests/dtypes/test_cast.py
+++ b/pandas/tests/dtypes/test_cast.py
@@ -38,17 +38,17 @@ def test_downcast_conv(self):
arr = np.array([8.5, 8.6, 8.7, 8.8, 8.9999999999995])
... | Preferable to use `tm.assert_numpy_array_equal` instead. | https://api.github.com/repos/pandas-dev/pandas/pulls/18047 | 2017-10-31T04:47:18Z | 2017-11-02T11:28:10Z | 2017-11-02T11:28:10Z | 2017-11-03T05:36:28Z |
a zillion flakes | diff --git a/ci/lint.sh b/ci/lint.sh
index 22f8628f59dcd..43d6ea0c118b0 100755
--- a/ci/lint.sh
+++ b/ci/lint.sh
@@ -24,7 +24,7 @@ if [ "$LINT" ]; then
echo "Linting setup.py DONE"
echo "Linting *.pyx"
- flake8 pandas --filename=*.pyx --select=E501,E302,E203,E111,E114,E221,E303,E128,E231,E126
+ flake8... | ugh. No doubt I missed a bunch...
There are a handful of things, especially in parsers.pyx where "comments" look like commented-out code that should be either deleted or otherwise handled. I'm declaring that [SEP](http://hitchhikers.wikia.com/wiki/Somebody_Else%27s_Problem_field). | https://api.github.com/repos/pandas-dev/pandas/pulls/18046 | 2017-10-31T04:37:08Z | 2017-11-01T10:28:18Z | 2017-11-01T10:28:18Z | 2017-12-08T19:39:01Z |
move src/datetime.pxd funcs to np_datetime and fix misleading names | diff --git a/pandas/_libs/src/datetime.pxd b/pandas/_libs/src/datetime.pxd
index 0c023ed00b2eb..3c542a9d6410c 100644
--- a/pandas/_libs/src/datetime.pxd
+++ b/pandas/_libs/src/datetime.pxd
@@ -136,28 +136,6 @@ cdef inline int _cstring_to_dts(char *val, int length,
return result
-cdef inline int64_t _pydatetime... | The name `_pydatetime_to_dts` is misleading, since `dts` is the variable names used for `pandas_datetimestruct` objects, while the func actually returns an int64. This renames it to `_pydatetime_to_dt64`.
The analogous function for `datetime.date` has the non-misleading name `_date_to_datetime64`. For consistency ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18045 | 2017-10-31T02:39:22Z | 2017-10-31T19:33:34Z | 2017-10-31T19:33:34Z | 2017-10-31T19:57:22Z |
Follow-Up To #17875 | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index e7e92b7ae987a..b4687df8785dd 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -43,17 +43,16 @@ cimport cpython
isnan = np.isnan
cdef double NaN = <double> np.NaN
cdef double nan = NaN
-cdef double NAN = nan
+from cpython.datetime cimport... | flake8 cleanup
use abbreviated dtstruct conversion functions
import from the cython versions of the stdlib instead of from src/datetime.pxd where possible. | https://api.github.com/repos/pandas-dev/pandas/pulls/18043 | 2017-10-31T01:47:36Z | 2017-10-31T10:41:12Z | 2017-10-31T10:41:12Z | 2017-12-08T19:39:05Z |
DOC: header='infer' is not working when there is no header, closes #17473 | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 5390fc3399e23..2aeafd99f6e72 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -103,15 +103,20 @@ Column and Index Locations and Names
++++++++++++++++++++++++++++++++++++
header : int or list of ints, default ``'infer'``
- Row number(s) to use as th... | - [X] closes #17483
| https://api.github.com/repos/pandas-dev/pandas/pulls/18042 | 2017-10-31T01:09:00Z | 2017-11-30T14:26:22Z | 2017-11-30T14:26:22Z | 2017-12-11T20:21:18Z |
Separate tests specific to tslibs modules | diff --git a/pandas/tests/indexes/datetimes/test_ops.py b/pandas/tests/indexes/datetimes/test_ops.py
index 424ef7fc3caf7..b65d467dbd4b8 100644
--- a/pandas/tests/indexes/datetimes/test_ops.py
+++ b/pandas/tests/indexes/datetimes/test_ops.py
@@ -3,7 +3,7 @@
import dateutil
import warnings
import numpy as np
-from dat... | Going through the tests in tests/scalars, tests/indexes/datetimes, tests/indexes/timedeltas, tests/indexes/period, there is a lot of duplication and a lot of thematically inappropriate placement. This is a natural result of tests being added over the years.
One result of this, though, is that its easy to miss certa... | https://api.github.com/repos/pandas-dev/pandas/pulls/18036 | 2017-10-30T16:20:50Z | 2017-10-31T01:06:33Z | 2017-10-31T01:06:33Z | 2017-12-08T19:39:06Z |
Tslibs resolution | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index dd5b849b42a08..708f6c29c8dd1 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -45,6 +45,7 @@ Other API Changes
- :class:`Timestamp` will no longer silently ignore unused or invalid ``tz`` or ``tzin... | One more step towards getting `tseries.frequencies` into cython (and getting rid of non-cython dependencies of tslib/period). Also moves towards de-coupling period from tslib.
- [ ] 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/18034 | 2017-10-30T15:45:27Z | 2017-11-13T13:05:07Z | 2017-11-13T13:05:07Z | 2017-11-20T03:14:58Z |
follow-up to #17943, closes #5168 | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 87ac2c9a18347..5ccbc48316b4f 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -42,9 +42,9 @@ Other API Changes
- ``NaT`` division with :class:`datetime.timedelta` will now return ``NaN`` instead ... | - [x] closes #5168
- [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/18033 | 2017-10-30T15:37:02Z | 2017-10-31T00:32:07Z | 2017-10-31T00:32:07Z | 2017-12-08T19:39:03Z |
BLD: strict alias warning in float hashtable | diff --git a/pandas/_libs/src/klib/khash_python.h b/pandas/_libs/src/klib/khash_python.h
index a375a73b04c9e..dd75ae5ec7e28 100644
--- a/pandas/_libs/src/klib/khash_python.h
+++ b/pandas/_libs/src/klib/khash_python.h
@@ -1,3 +1,4 @@
+#include <string.h>
#include <Python.h>
#include "khash.h"
@@ -14,7 +15,9 @@
// h... | xref #17936 | https://api.github.com/repos/pandas-dev/pandas/pulls/18025 | 2017-10-29T23:40:39Z | 2017-10-31T00:18:05Z | 2017-10-31T00:18:05Z | 2017-10-31T00:18:11Z |
Follow-up to #17805 | diff --git a/pandas/_libs/period.pyx b/pandas/_libs/period.pyx
index cf6ef91d3e608..76664e276c634 100644
--- a/pandas/_libs/period.pyx
+++ b/pandas/_libs/period.pyx
@@ -17,12 +17,9 @@ from pandas.compat import PY2
cimport cython
-from datetime cimport (
- is_leapyear,
- pandas_datetimestruct,
- pandas_dat... | This replaces uses of pandas_datetime_to_datetimestruct and pandas_datetimestruct_to_datetime with dt64_to_dtstruct and dtstruct_to_dt64 respectively, but leaves some un-replaced to avoid creating conflicts with other open PRs.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u... | https://api.github.com/repos/pandas-dev/pandas/pulls/18023 | 2017-10-29T22:04:34Z | 2017-10-29T23:43:29Z | 2017-10-29T23:43:29Z | 2017-10-30T16:25:40Z |
Remove old warnings (plus some useless code) | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 51cce713ff930..8f25a5ec5f20a 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -60,7 +60,7 @@ Deprecations
Removal of prior version deprecations/changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | - [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This removes some warnings which @jreback [suggested](https://github.com/pandas-dev/pandas/pull/17934#discussion_r146225334) to split from #17934 , plus some other useless, probably obsolete, lines of code. | https://api.github.com/repos/pandas-dev/pandas/pulls/18022 | 2017-10-29T21:44:41Z | 2017-11-12T15:22:34Z | 2017-11-12T15:22:34Z | 2017-11-12T16:02:35Z |
Masking and overflow checks for datetimeindex and timedeltaindex ops | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index e19f09b195ce0..69379ac2fc58c 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -57,6 +57,8 @@ Documentation Changes
Bug Fixes
~~~~~~~~~
- Bug in ``DataFrame.resample(...).apply(...)`` when there i... | There are a bunch of new tests (not obvious what the appropriate place is for a WIP test matrix like this, pls advise). The ones that will fail under master are `test_timedeltaindex_add_timestamp_nat_masking` and `test_datetimeindex_sub_timestamp_overflow`
Start filling out a test matrix of arithmetic ops.
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/18020 | 2017-10-29T17:30:14Z | 2017-11-04T21:47:03Z | 2017-11-04T21:47:03Z | 2017-12-12T02:38:30Z |
read_html(): rewinding [wip] | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index cbd094ec4ef49..1a08d48f3948b 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -103,7 +103,7 @@ Indexing
I/O
^^^
--
+- :func:`read_html` now rewinds seekable IO objects after parse failure, befor... | - [x] closes #17975
- [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/18017 | 2017-10-28T22:44:49Z | 2017-11-01T12:11:50Z | 2017-11-01T12:11:50Z | 2017-11-01T12:11:54Z |
Implement BaseOffset in tslibs.offsets | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 884160216591b..87be9fa910101 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -4,7 +4,9 @@
cimport cython
import time
-from cpython.datetime cimport time as dt_time
+from cpython.datetime cimpor... | This moves a handful of methods of `DateOffset` up into `tslibs.offsets.BaseOffset`. The focus for now is on arithmetic methods that do not get overridden by subclasses. These use the `self.__class__(..., **self.kwds)` pattern that we eventually need to get rid of. Isolating this pattern before suggesting alternativ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18016 | 2017-10-28T22:08:15Z | 2017-11-08T02:59:27Z | 2017-11-08T02:59:26Z | 2017-12-08T19:41:18Z |
ERR: Fix segfault with .astype('category') on empty DataFrame | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 64b662c38d39e..03a8e83a713f0 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -113,7 +113,7 @@ Numeric
Categorical
^^^^^^^^^^^
--
+- Bug in :meth:`DataFrame.astype` where casting to 'category' o... | - [X] closes #18004
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Credit to @cgohlke for determining the fix. | https://api.github.com/repos/pandas-dev/pandas/pulls/18015 | 2017-10-28T19:21:17Z | 2017-10-29T00:12:09Z | 2017-10-29T00:12:09Z | 2017-10-29T16:45:33Z |
Move NaT to self-contained module | diff --git a/pandas/_libs/period.pyx b/pandas/_libs/period.pyx
index 76664e276c634..4b8c86ae9d4b2 100644
--- a/pandas/_libs/period.pyx
+++ b/pandas/_libs/period.pyx
@@ -30,10 +30,11 @@ from pandas._libs import tslib
from pandas._libs.tslib import Timestamp, iNaT, NaT
from tslibs.timezones cimport (
is_utc, is_tz... | This completes the messing-with-NaT sequence of PRs.
Highlights:
- Removes duplicate definitions of `_nat_strings` across a couple of modules.
- `tslibs.nattype` relies on `util` but is otherwise free of pandas dependencies.
- `lib` currently depends on `tslib`; this is a big step towards changing this (note that... | https://api.github.com/repos/pandas-dev/pandas/pulls/18014 | 2017-10-28T18:25:09Z | 2017-11-01T00:09:28Z | 2017-11-01T00:09:28Z | 2017-11-01T03:10:34Z |
Fix df.to_csv() for string arrays when encoded in utf-8 | diff --git a/pandas/tests/io/formats/test_to_csv.py b/pandas/tests/io/formats/test_to_csv.py
index b82d9895ddcf5..e12a7196dce6b 100644
--- a/pandas/tests/io/formats/test_to_csv.py
+++ b/pandas/tests/io/formats/test_to_csv.py
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-
-from pandas import DataFrame
import numpy as np
i... | So it looks like `df.to_csv()` is now working correctly for string arrays when using the `ascii` encoding but it is still broken when using `utf-8`.
| https://api.github.com/repos/pandas-dev/pandas/pulls/18013 | 2017-10-28T18:06:33Z | 2017-11-07T18:09:49Z | 2017-11-07T18:09:49Z | 2017-11-07T18:11:09Z |
TST: clean warnings | diff --git a/Makefile b/Makefile
index 194a8861715b7..c79175cd3c401 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,9 @@ clean_pyc:
build: clean_pyc
python setup.py build_ext --inplace
+lint-diff:
+ git diff master --name-only -- "*.py" | grep "pandas" | xargs flake8
+
develop: build
-python setup.py develop
... | https://api.github.com/repos/pandas-dev/pandas/pulls/18012 | 2017-10-28T15:19:48Z | 2017-10-28T17:37:59Z | 2017-10-28T17:37:59Z | 2017-10-28T17:39:20Z | |
CLN: replace %s syntax /w .format in plotting, stats, tseries | diff --git a/pandas/_version.py b/pandas/_version.py
index 4695b512feff5..0fdb0efde1f05 100644
--- a/pandas/_version.py
+++ b/pandas/_version.py
@@ -75,7 +75,7 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False):
if e.errno == errno.ENOENT:
continue
... | Progress towards #16130
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/18010 | 2017-10-28T09:18:01Z | 2017-11-10T20:06:25Z | 2017-11-10T20:06:25Z | 2017-11-10T22:41:16Z |
BUG: Fix memory access violations in is_lexsorted | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index d159761c3f5e6..a44a7288bda45 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -87,7 +87,7 @@ class NegInfinity(object):
@cython.boundscheck(False)
def is_lexsorted(list list_of_arrays):
cdef:
- int i
+ Py_ssize_t ... | Fixes the following segfault during tests:
```
running: pytest --skip-slow --skip-network X:\Python36\lib\site-packages\pandas
============================= test session starts =============================
platform win32 -- Python 3.6.3, pytest-3.2.3, py-1.4.34, pluggy-0.4.0
rootdir: ., inifile:
plugins: pep8-1.... | https://api.github.com/repos/pandas-dev/pandas/pulls/18005 | 2017-10-27T19:35:43Z | 2017-10-28T18:49:36Z | 2017-10-28T18:49:36Z | 2017-10-28T18:49:39Z |
DOC: clean-up 0.21.0 whatsnew file | diff --git a/doc/source/release.rst b/doc/source/release.rst
index c330d08600928..6c3e7f847b485 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -49,11 +49,14 @@ version.
Highlights include:
-- Integration with `Apache Parquet <https://parquet.apache.org/>`__, including a new top-level :func:`re... | https://api.github.com/repos/pandas-dev/pandas/pulls/18001 | 2017-10-27T12:51:22Z | 2017-10-27T15:21:19Z | 2017-10-27T15:21:19Z | 2017-10-27T15:21:19Z | |
DOC: clean old whatsnew files for 0.21.0 | diff --git a/doc/source/whatsnew/v0.12.0.txt b/doc/source/whatsnew/v0.12.0.txt
index c4188898bdf71..27aa47a6bb097 100644
--- a/doc/source/whatsnew/v0.12.0.txt
+++ b/doc/source/whatsnew/v0.12.0.txt
@@ -236,10 +236,10 @@ I/O Enhancements
.. ipython:: python
from pandas.util.testing import makeCustomDat... | https://api.github.com/repos/pandas-dev/pandas/pulls/17999 | 2017-10-27T12:14:47Z | 2017-10-27T12:29:51Z | 2017-10-27T12:29:51Z | 2017-10-27T12:57:31Z | |
DOC: Some changes | diff --git a/doc/source/release.rst b/doc/source/release.rst
index eff3eea63e9f8..c330d08600928 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -37,10 +37,10 @@ analysis / manipulation tool available in any language.
* Binary installers on PyPI: http://pypi.python.org/pypi/pandas
* Documentation: ... | 1. Added whatsnew templates for 0.21.1 and 0.22.0
2. Update release.rst and whatsnew/v0.21.0.txt for the release tomorrow
3. Fixed some broken references in the 0.21.0 whatsnew | https://api.github.com/repos/pandas-dev/pandas/pulls/17992 | 2017-10-26T17:45:10Z | 2017-10-27T09:45:16Z | 2017-10-27T09:45:16Z | 2017-10-27T12:04:19Z |
BUG: Fix parsing of stata dates (#17797) | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 422a239e86ece..dad212c9cb7a4 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -74,6 +74,9 @@ Indexing
I/O
^^^
+- Bug in class:`~pandas.io.stata.StataReader` not converting date/time columns with... | - [x] closes #17797
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] Test and expand parsing of STATA date/time objects.
Expands behavior provided by the following to include most STATA format codes.
```python
# remove format details from %td
... | https://api.github.com/repos/pandas-dev/pandas/pulls/17990 | 2017-10-26T16:20:46Z | 2017-10-31T00:24:53Z | 2017-10-31T00:24:53Z | 2017-12-11T20:25:14Z |
COMPAT: Update for NumPy dev | diff --git a/pandas/io/packers.py b/pandas/io/packers.py
index 92270b39f56ef..abd258034af99 100644
--- a/pandas/io/packers.py
+++ b/pandas/io/packers.py
@@ -350,8 +350,11 @@ def unconvert(values, dtype, compress=None):
)
# fall through to copying `np.fromstring`
- # Copy the strin... | Closes https://github.com/pandas-dev/pandas/issues/17986
xref https://github.com/numpy/numpy/pull/9487
Do we want this for 0.21? | https://api.github.com/repos/pandas-dev/pandas/pulls/17987 | 2017-10-25T21:35:12Z | 2017-10-27T20:41:32Z | 2017-10-27T20:41:31Z | 2017-12-11T20:20:38Z |
ERR: Improve error message on non-sorted input with .truncate | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 8afdd1b2e22b3..44d8844795d3c 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -46,6 +46,8 @@ Other API Changes
- :class:`Timestamp` will no longer silently ignore invalid ``freq`` arguments (:issue... | - [ ] closes #17935
- [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/17984 | 2017-10-25T20:13:32Z | 2017-11-17T00:30:57Z | 2017-11-17T00:30:57Z | 2017-11-27T14:49:13Z |
Rename categories with Series | diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt
index 18f8858748df5..11106554483e0 100644
--- a/doc/source/whatsnew/v0.21.0.txt
+++ b/doc/source/whatsnew/v0.21.0.txt
@@ -239,6 +239,36 @@ Now, to find prices per store/product, we can simply do:
.pipe(lambda grp: grp.Revenue.sum()/gr... | Closes #17981
head:
```
[ 50.00%] ··· Running categoricals.Categoricals3.time_rank_string_cat 6.39ms
[100.00%] ··· Running categoricals.Categoricals3.time_rank_string_cat_ordered 4.81ms
```
master:
```
[ 50.00%] ··· Running categoricals.Categoricals3.time_rank_string_cat 137ms
[100.00%... | https://api.github.com/repos/pandas-dev/pandas/pulls/17982 | 2017-10-25T16:49:26Z | 2017-10-26T23:54:23Z | 2017-10-26T23:54:23Z | 2017-10-27T11:43:16Z |
PERF: Fix regression in datetime ops | diff --git a/pandas/core/ops.py b/pandas/core/ops.py
index b6fc47c04f174..fa50036b6eb95 100644
--- a/pandas/core/ops.py
+++ b/pandas/core/ops.py
@@ -622,7 +622,8 @@ def _is_offset(self, arr_or_obj):
""" check if obj or all elements of list-like is DateOffset """
if isinstance(arr_or_obj, ABCDateOffset... | HEAD:
```
In [1]: import pandas as pd; import numpy as np
In [2]: s = pd.Series(pd.to_datetime(np.arange(100000), unit='ms'))
In [3]: %timeit s - s.shift()
2.73 ms ± 30.1 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
```
0.21.0rc1:
```
527 ms ± 11.6 ms per loop (mean ± std. dev. of 7 runs, 1 l... | https://api.github.com/repos/pandas-dev/pandas/pulls/17980 | 2017-10-25T15:57:33Z | 2017-10-26T13:57:38Z | 2017-10-26T13:57:38Z | 2017-10-26T13:58:23Z |
TST: #15752 Add drop_duplicates tests for uint, float and bool for Series | diff --git a/pandas/tests/series/test_analytics.py b/pandas/tests/series/test_analytics.py
index 8cc40bb5146c5..2625f4be840c4 100644
--- a/pandas/tests/series/test_analytics.py
+++ b/pandas/tests/series/test_analytics.py
@@ -873,52 +873,95 @@ def test_unique(self):
expected = np.array([1, 2, 3, None], dtype=ob... | - [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/17974 | 2017-10-25T02:42:37Z | 2017-10-31T12:07:55Z | 2017-10-31T12:07:55Z | 2017-11-01T01:31:59Z |
BUG: GH17464 MultiIndex now raises an error when levels aren't unique, tests changed | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index d43d5bec7175f..150e86f564ad0 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -81,6 +81,7 @@ Other API Changes
- Inserting missing values into indexes will work for all types of indexes and automat... | - [x] closes #17464
- [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/17971 | 2017-10-25T02:25:18Z | 2017-12-03T16:36:32Z | 2017-12-03T16:36:31Z | 2017-12-04T03:27:38Z |
DOC:Cleaned up docstrings in sql.py | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index ef047a7a61e42..c42c19e1357bc 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -89,7 +89,7 @@ def compile_big_int_sqlite(type_, compiler, **kw):
def _convert_params(sql, params):
- """convert sql and params args to DBAPI2.0 compliant format"""
+ ""... | Tidied up docstrings in pandas/io/sql.py. | https://api.github.com/repos/pandas-dev/pandas/pulls/17967 | 2017-10-24T20:34:51Z | 2017-10-25T11:49:06Z | 2017-10-25T11:49:06Z | 2017-10-25T11:49:26Z |
Rename signature fix | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 5ad82d0da95fa..a1af806e5cb9e 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -82,8 +82,10 @@
from pandas import compat
from pandas.compat import PY36
from pandas.compat.numpy import function as nv
-from pandas.util._decorators import Appe... | - [ ] closes #17963
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Sample usage:
```
In [3]: df = pd.DataFrame(index=['a', 'b'], columns=['A', 'B'])
In [4]: df.reindex(['a'], ['A'])
/Users/taugspurger/.virtualenvs/pandas-dev/bin/ipython... | https://api.github.com/repos/pandas-dev/pandas/pulls/17966 | 2017-10-24T18:58:09Z | 2017-10-27T09:43:54Z | 2017-10-27T09:43:54Z | 2017-10-27T12:04:18Z |
flake8 cleanup | diff --git a/ci/lint.sh b/ci/lint.sh
index ed3af2568811c..22f8628f59dcd 100755
--- a/ci/lint.sh
+++ b/ci/lint.sh
@@ -16,6 +16,13 @@ if [ "$LINT" ]; then
fi
echo "Linting *.py DONE"
+ echo "Linting setup.py"
+ flake8 setup.py
+ if [ $? -ne "0" ]; then
+ RET=1
+ fi
+ echo "Linting setup.... | Entirely aesthetic.
- [ ] 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/17964 | 2017-10-24T16:25:47Z | 2017-10-28T00:38:45Z | 2017-10-28T00:38:45Z | 2017-10-30T16:23:00Z |
BUG: Fix to_latex with longtable (#17959) | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index fbfbb403b2a17..ffeff4b59134c 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -127,6 +127,7 @@ I/O
- Bug in :func:`pandas.io.json.json_normalize` to avoid modification of ``meta`` (:issue:`18610`)
... | - [x] closes #17959
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
pandas.DataFrame.to_latex(longtable=True) always contained `\multicolumn{3}{r}{{Continued on next page}}` regardless of the number of columns in the output. This is now changed ... | https://api.github.com/repos/pandas-dev/pandas/pulls/17960 | 2017-10-23T20:43:52Z | 2017-12-11T11:08:39Z | 2017-12-11T11:08:39Z | 2017-12-12T02:38:30Z |
isolate scalar Timestamp tests from date_range tests | diff --git a/pandas/tests/scalar/test_timestamp.py b/pandas/tests/scalar/test_timestamp.py
index c1b9f858a08de..8f5c5206de41c 100644
--- a/pandas/tests/scalar/test_timestamp.py
+++ b/pandas/tests/scalar/test_timestamp.py
@@ -582,7 +582,7 @@ def test_pprint(self):
'foo': 1}"""
assert result == expected
- ... | Discussed in #17697
- [ ] closes #xxxx
- [x] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/17957 | 2017-10-23T16:17:54Z | 2017-10-27T23:41:23Z | 2017-10-27T23:41:23Z | 2017-10-30T16:25:19Z |
ENH: avoid creating reference cycle on indexing (#15746) | diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index d941ef20dc7ac..f3e7ebbbd33e8 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -287,3 +287,19 @@ def setup(self):
def time_subset(self):
self.p.ix[(self.inds, self.inds, self.inds... | - [x] closes #15746
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/17956 | 2017-10-23T15:49:15Z | 2017-10-27T20:33:42Z | 2017-10-27T20:33:42Z | 2017-10-27T20:34:28Z |
nat division by timedelta | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 3d8e592c49221..e85ba505887b4 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -40,6 +40,7 @@ Backwards incompatible API changes
Other API Changes
^^^^^^^^^^^^^^^^^
+- ``NaT`` division with :clas... | xref #17876
Does the whatsnew note still go in 0.20.0.txt?
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/17955 | 2017-10-23T15:13:21Z | 2017-10-28T02:30:45Z | 2017-10-28T02:30:45Z | 2017-10-28T04:50:44Z |
REF/INT: preserve block type in joining when only having a single block | diff --git a/pandas/core/internals.py b/pandas/core/internals.py
index f6c5ecbca81ef..045580d393b26 100644
--- a/pandas/core/internals.py
+++ b/pandas/core/internals.py
@@ -5182,7 +5182,15 @@ def concatenate_block_managers(mgrs_indexers, axes, concat_axis, copy):
for placement, join_units in concat_plan:
- ... | xref https://github.com/pandas-dev/pandas/issues/17283 | https://api.github.com/repos/pandas-dev/pandas/pulls/17954 | 2017-10-23T13:48:26Z | 2017-10-27T11:49:13Z | 2017-10-27T11:49:13Z | 2017-10-27T12:08:00Z |
DOC: Document return type from concat | diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py
index c54763f8ebde1..1822449263cac 100644
--- a/pandas/core/reshape/concat.py
+++ b/pandas/core/reshape/concat.py
@@ -66,6 +66,10 @@ def concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False,
Returns
-------
concat... | For a single Series with axis=1.
Closes https://github.com/pandas-dev/pandas/issues/17952 | https://api.github.com/repos/pandas-dev/pandas/pulls/17953 | 2017-10-23T13:17:41Z | 2017-10-26T17:50:55Z | 2017-10-26T17:50:55Z | 2017-10-26T17:50:57Z |
resample().apply not returning multiple columns like groupby(pd.Timegrouper()).apply | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 422a239e86ece..868d1e74a091d 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -56,6 +56,7 @@ Documentation Changes
Bug Fixes
~~~~~~~~~
+- Bug in ``DataFrame.resample(...).apply(...)`` when there... | - [x] closes #15169
- [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/17950 | 2017-10-23T09:36:08Z | 2017-10-27T20:32:20Z | 2017-10-27T20:32:20Z | 2017-12-11T20:25:24Z |
fix "Modern Pandas" url | diff --git a/doc/source/tutorials.rst b/doc/source/tutorials.rst
index 9a97294d4e6d6..1c34c16ea965a 100644
--- a/doc/source/tutorials.rst
+++ b/doc/source/tutorials.rst
@@ -155,7 +155,7 @@ For more resources, please visit the main `repository <https://github.com/guipsa
Modern Pandas
-------------
-- `Modern Pandas ... | - [ ] 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/17948 | 2017-10-23T09:24:43Z | 2017-10-23T10:20:58Z | 2017-10-23T10:20:58Z | 2017-10-23T10:29:47Z |
DOC:Cleaned up the read_sql_table docstring | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index 9c6d01d236c57..ef047a7a61e42 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -206,28 +206,28 @@ def read_sql_table(table_name, con, schema=None, index_col=None,
Parameters
----------
table_name : string
- Name of SQL table in database
... | Tidied the docstring for the read_sql_table function. | https://api.github.com/repos/pandas-dev/pandas/pulls/17946 | 2017-10-23T00:42:55Z | 2017-10-23T08:53:13Z | 2017-10-23T08:53:13Z | 2017-10-23T08:53:39Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.