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
Backport PR #27932 on branch 0.25.x (BUG: Ensure that fill_na in Categorical only replaces null values)
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 102ecb9cb0f4e..245aa42b0de14 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -25,7 +25,7 @@ Bug fixes Categorical ^^^^^^^^^^^ -- +- Bug in :meth:`Categorical.fillna` would replace all values, n...
Backport PR #27932: BUG: Ensure that fill_na in Categorical only replaces null values
https://api.github.com/repos/pandas-dev/pandas/pulls/27947
2019-08-16T11:22:41Z
2019-08-16T12:07:42Z
2019-08-16T12:07:42Z
2019-08-16T12:07:42Z
BUG: Merge with readonly arrays
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index f4308684e286a..ee250d62b7a74 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -127,9 +127,9 @@ Reshaping ^^^^^^^^^ - A ``KeyError`` is now raised if ``.unstack()`` is called on a :class:`Series`...
Closes #27943
https://api.github.com/repos/pandas-dev/pandas/pulls/27946
2019-08-16T11:17:20Z
2019-08-16T12:08:17Z
2019-08-16T12:08:16Z
2019-08-16T13:24:02Z
ENH:Return new Series when missing data in group keys is
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index f4308684e286a..cd0a4d0c4c3c7 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -85,7 +85,7 @@ Indexing - Bug in partial-string indexing returning a NumPy array rather than a ``Series`` when indexing...
ENH: missing data in index would not raise exception - [x] closes #20519 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27945
2019-08-16T07:00:32Z
2019-08-22T14:19:18Z
null
2019-08-22T14:19:19Z
Upgrade groupby feature
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 21f1fa7ddec1f..24cc7121e7edc 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -85,7 +85,7 @@ Indexing - Bug in partial-string indexing returning a NumPy array rather than a ``Series`` when indexing...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27944
2019-08-16T05:06:32Z
2019-08-16T06:23:40Z
null
2019-08-16T06:42:26Z
CLN: docstring cleanups
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 20398069847b1..603a615c1f8cb 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1190,7 +1190,7 @@ def to_numpy(self, dtype=None, copy=False): Parameters ---------- dtype : str or numpy.dtype, optional - Th...
cc @datapythonista
https://api.github.com/repos/pandas-dev/pandas/pulls/27942
2019-08-15T23:13:17Z
2019-08-16T19:18:53Z
2019-08-16T19:18:53Z
2019-08-16T20:32:18Z
CLN: internals.blocks cleanup, typing
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index e24e6e088b92a..ea895db226ba0 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -7,7 +7,7 @@ import numpy as np -from pandas._libs import NaT, Timestamp, lib, tslib, tslibs +from pandas._libs imp...
https://api.github.com/repos/pandas-dev/pandas/pulls/27941
2019-08-15T22:55:38Z
2019-08-26T23:52:45Z
2019-08-26T23:52:45Z
2019-08-27T20:48:21Z
Fix typos in HDFStore docs
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 947bf15a49c7a..5d7a268631778 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3572,7 +3572,7 @@ Closing a Store and using a context manager: Read/write API '''''''''''''' -``HDFStore`` supports an top-leve...
https://api.github.com/repos/pandas-dev/pandas/pulls/27940
2019-08-15T21:28:26Z
2019-08-16T11:32:32Z
2019-08-16T11:32:32Z
2019-08-16T15:39:10Z
CLN: docstrings, circularity in core.computation
diff --git a/pandas/compat/chainmap.py b/pandas/compat/chainmap.py index 83f1da597d6a6..84824207de2a9 100644 --- a/pandas/compat/chainmap.py +++ b/pandas/compat/chainmap.py @@ -15,9 +15,3 @@ def __delitem__(self, key): del mapping[key] return raise KeyError(key) - - # overr...
Things noticed while looking through this directory: - computation.pytables is only used io.pytables, might not belong in core.computation - UndefinedVariableError looks like it was defined as part of a `# python 3 compat kludge`, might no longer be necessary
https://api.github.com/repos/pandas-dev/pandas/pulls/27939
2019-08-15T21:08:43Z
2019-08-16T12:11:11Z
2019-08-16T12:11:11Z
2019-08-16T13:56:17Z
Backport PR #27878 on branch 0.25.x (TST: Raise ValueError and suggestion to use header=None if header=-1 is pa…)
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index b53b53c654ce3..102ecb9cb0f4e 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -105,7 +105,7 @@ I/O ^^^ - Avoid calling ``S3File.s3`` when reading parquet, as this was removed in s3fs version 0.3...
Backport PR #27878: TST: Raise ValueError and suggestion to use header=None if header=-1 is pa…
https://api.github.com/repos/pandas-dev/pandas/pulls/27938
2019-08-15T20:27:58Z
2019-08-16T01:27:55Z
2019-08-16T01:27:55Z
2019-08-16T01:27:55Z
REF: implement array_ops
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 1aad130d9a3f5..093334a815938 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -195,11 +195,11 @@ def wrapper(self, other): return invalid_comparison(self, other, op) ...
This begins the process of separating the (ndarray|EA)-specific parts of Series ops out from the Series ops themselves. Eventually these will a) become the op implementations for PandasArray, and b) be used block-wise instead of column-wise for DataFrame ops.
https://api.github.com/repos/pandas-dev/pandas/pulls/27936
2019-08-15T15:44:38Z
2019-08-16T12:12:28Z
2019-08-16T12:12:28Z
2019-08-16T13:56:59Z
BUG: set_precision format fixed (#13257)
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 7692651db840e..8fe3320b29000 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -354,6 +354,7 @@ I/O - Bug in :func:`read_hdf` closing stores that it didn't open when Exceptions are raised (:issue:`28699...
- [x] closes #13257 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I've tried to fix the set_precision format, does that fix it? ### INPUT -> df.style.set_precision(2) | A | B | | --- | --- | | 1 | 2.0090 | ...
https://api.github.com/repos/pandas-dev/pandas/pulls/27934
2019-08-15T14:32:22Z
2019-10-22T01:53:38Z
2019-10-22T01:53:38Z
2019-12-26T14:51:04Z
TST: Asserts all types are caterogical in function fillna with correct error message
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 21f1fa7ddec1f..751829f11570f 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -25,7 +25,6 @@ Bug fixes Categorical ^^^^^^^^^^^ -- - - diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source...
- [x] closes #13628 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27933
2019-08-15T14:12:40Z
2019-08-16T12:14:43Z
2019-08-16T12:14:43Z
2019-10-29T12:12:31Z
BUG: Ensure that fill_na in Categorical only replaces null values
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 21f1fa7ddec1f..647bc750907ce 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -25,7 +25,7 @@ Bug fixes Categorical ^^^^^^^^^^^ -- +- Bug in :meth:`Categorical.fillna` would replace all values, n...
- [x] closes #26215 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27932
2019-08-15T13:27:46Z
2019-08-16T11:22:20Z
2019-08-16T11:22:19Z
2019-08-22T08:38:45Z
API/DEPR: Change default skipna behaviour + deprecate numeric_only in Categorical.min and max
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 3f8d9d3916797..ee5098749105f 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -260,6 +260,26 @@ The following methods now also correctly output values for unobserved categories df.groupby(["cat_1", ...
- closes #25303 and follow up https://github.com/pandas-dev/pandas/pull/27801#discussion_r313075771 - 1 test added - passes `black pandas` - passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27929
2019-08-15T10:33:36Z
2019-12-02T10:37:12Z
2019-12-02T10:37:12Z
2023-12-11T23:49:50Z
Assignment of column via .loc for numpy non-ns datetimes
diff --git a/doc/source/whatsnew/v0.25.2.rst b/doc/source/whatsnew/v0.25.2.rst index 69f324211e5b2..de411ef63680a 100644 --- a/doc/source/whatsnew/v0.25.2.rst +++ b/doc/source/whatsnew/v0.25.2.rst @@ -52,7 +52,6 @@ Indexing - - - -- Missing ^^^^^^^ diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsne...
- [x] closes #27395 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27928
2019-08-15T07:16:16Z
2019-09-13T13:19:38Z
2019-09-13T13:19:38Z
2019-09-13T13:19:42Z
Fix regression in .ix fallback with IntervalIndex
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index dfa216b1db56e..1cc0da8fcc7b3 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -85,6 +85,7 @@ Indexing - Bug in partial-string indexing returning a NumPy array rather than a ``Series`` when indexing...
closes #27865 cc @jbrockmendel this is another one from limiting the catched exceptions in https://github.com/pandas-dev/pandas/pull/27223/files#diff-7489e290a23303c4db4f803011ecaf8eR121. But also this time it's again rather a bug in the code that raises this error. For some reason, `DataFrame._get_value` for a D...
https://api.github.com/repos/pandas-dev/pandas/pulls/27926
2019-08-15T06:54:38Z
2019-08-19T19:26:21Z
2019-08-19T19:26:21Z
2019-08-20T06:47:37Z
BUG: Help python csv engine read binary buffers
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 0be4ebc627b30..3ce558ca336c3 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -158,7 +158,7 @@ MultiIndex I/O ^^^ -- +- :meth:`read_csv` now accepts binary mode file buffers when using the Python cs...
The file buffer given to read_csv could have been opened in binary mode, but the python csv reader errors on binary buffers. - [x] closes #23779 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27925
2019-08-15T04:15:34Z
2019-08-19T16:23:41Z
2019-08-19T16:23:41Z
2019-08-19T16:23:41Z
CLN: simplify comparison method, docstring cleanups
diff --git a/pandas/core/computation/common.py b/pandas/core/computation/common.py index b8e212fd2a32e..2a4277e4e0a20 100644 --- a/pandas/core/computation/common.py +++ b/pandas/core/computation/common.py @@ -2,7 +2,7 @@ import numpy as np -import pandas as pd +from pandas._config import get_option # A token va...
https://api.github.com/repos/pandas-dev/pandas/pulls/27923
2019-08-15T02:41:41Z
2019-08-15T12:44:11Z
2019-08-15T12:44:11Z
2019-08-15T14:20:33Z
CLN: Remove incorrect check, comment, rename
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index 0de28f0a4a8b3..7e03b9544ee72 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -730,9 +730,12 @@ def wrapper(self, other, axis=None): ) result = self._constructor(res_values, index=self.i...
cc @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/27922
2019-08-14T21:47:59Z
2019-08-20T06:35:43Z
2019-08-20T06:35:43Z
2019-08-20T14:01:01Z
BUG: Lambda function returns KeyError in DataFrameGroupBy.agg
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 2bfc09e52c68b..a436dcbf60ac4 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -177,6 +177,7 @@ Groupby/resample/rolling - - - Bug in :meth:`DataFrame.groupby` not offering selection by column name wh...
- [x] closes #27519 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27921
2019-08-14T21:16:03Z
2019-08-30T14:47:18Z
2019-08-30T14:47:17Z
2019-08-30T14:47:18Z
Updated table with read_fwf()
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 947bf15a49c7a..ad250dedb7771 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -28,6 +28,7 @@ The pandas I/O API is a set of top level ``reader`` functions accessed like :delim: ; text;`CSV <https://...
- [X] closes #27884 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry @TomAugspurger Can you merge?
https://api.github.com/repos/pandas-dev/pandas/pulls/27920
2019-08-14T21:15:33Z
2019-08-19T11:43:35Z
2019-08-19T11:43:34Z
2019-08-19T12:04:35Z
DOC: Fix section reference placement in whatsnew
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index b35f230100f8d..aeed3668fe774 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -21,27 +21,27 @@ including other versions of pandas. Enhancements ~~~~~~~~~~~~ -.. _whatsnew_1000.enhancements.other: - ...
A few of the section references are misaligned with the tick marks. Moved the misaligned references as appropriate.
https://api.github.com/repos/pandas-dev/pandas/pulls/27919
2019-08-14T20:41:21Z
2019-08-14T22:50:45Z
2019-08-14T22:50:45Z
2019-08-14T22:50:52Z
Backport PR #27840 on branch 0.25.x (PERF: Break reference cycle for all Index types)
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index a81fc19221ef7..b53b53c654ce3 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -83,7 +83,7 @@ Indexing ^^^^^^^^ - Bug in partial-string indexing returning a NumPy array rather than a ``Series`` w...
Backport PR #27840: PERF: Break reference cycle for all Index types
https://api.github.com/repos/pandas-dev/pandas/pulls/27918
2019-08-14T20:11:45Z
2019-08-14T21:56:07Z
2019-08-14T21:56:07Z
2019-08-14T21:56:07Z
Backport PR #27907 on branch 0.25.x (Revert 37 pins)
diff --git a/ci/deps/azure-37-locale.yaml b/ci/deps/azure-37-locale.yaml index 6844e929eae78..05adbf0c924dc 100644 --- a/ci/deps/azure-37-locale.yaml +++ b/ci/deps/azure-37-locale.yaml @@ -17,7 +17,7 @@ dependencies: - openpyxl - pytables - python-dateutil - - python=3.7.3 + - python=3.7.* - pytz - s3f...
Backport PR #27907: Revert 37 pins
https://api.github.com/repos/pandas-dev/pandas/pulls/27917
2019-08-14T19:34:39Z
2019-08-14T21:55:43Z
2019-08-14T21:55:43Z
2019-08-14T21:55:44Z
BUG: fix to_timestamp out_of_bounds
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 21f1fa7ddec1f..a6e85803244de 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -32,7 +32,7 @@ Categorical Datetimelike ^^^^^^^^^^^^ - Bug in :func:`to_datetime` where passing a timezone-naive :cla...
- [x] closes #19643 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27916
2019-08-14T15:28:09Z
2019-08-20T07:00:45Z
2019-08-20T07:00:45Z
2019-08-20T13:54:28Z
STYLE: run pre-commit filters on the repo
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 32ffb3330564c..5cc22c638c9b1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,17 +1,21 @@ repos: - - repo: https://github.com/python/black - rev: stable - hooks: - - id: black - language_versio...
I noticed that `pre-commit` is used and ran `pre-commit run --all-files` which results in massive diffs, mostly because of `isort`. I have added the correct `noqa` and `isort:skip` flags to the lines which needed it to function correctly with the current `.pre-commit-config.yaml`, such that the imports are correctly...
https://api.github.com/repos/pandas-dev/pandas/pulls/27915
2019-08-14T09:40:45Z
2019-08-30T17:05:32Z
2019-08-30T17:05:32Z
2019-08-30T17:05:45Z
REF: use should_extension_dispatch for comparison method
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index dbcf09a401f27..0de28f0a4a8b3 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -17,9 +17,7 @@ from pandas.core.dtypes.common import ( ensure_object, is_bool_dtype, - is_categorical_dtype, is_datet...
This sits on top of #27815
https://api.github.com/repos/pandas-dev/pandas/pulls/27912
2019-08-14T00:50:52Z
2019-08-19T21:48:39Z
2019-08-19T21:48:38Z
2019-08-19T21:57:36Z
CLN: missing boilerplate in Sparse op
diff --git a/pandas/core/arrays/sparse.py b/pandas/core/arrays/sparse.py index 2234167fe0193..201174b6b1995 100644 --- a/pandas/core/arrays/sparse.py +++ b/pandas/core/arrays/sparse.py @@ -39,6 +39,7 @@ ) from pandas.core.dtypes.dtypes import register_extension_dtype from pandas.core.dtypes.generic import ( + ABC...
After this I think we'll be ready for #23853
https://api.github.com/repos/pandas-dev/pandas/pulls/27910
2019-08-13T23:33:04Z
2019-08-19T16:45:42Z
2019-08-19T16:45:42Z
2019-08-19T18:07:22Z
CLN: Catch more specific exceptions in groupby
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 7424c4ddc3d92..979dad6db0838 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -1,4 +1,5 @@ from datetime import datetime, timedelta, date +import warnings import cython diff --git a/pandas/_libs/index_class_helper.pxi.in b/panda...
Working hypothesis is that this will help turn up the problem underlying #27902. Regardless catching more specific exceptions is worthwhile.
https://api.github.com/repos/pandas-dev/pandas/pulls/27909
2019-08-13T21:39:09Z
2019-09-03T11:39:20Z
2019-09-03T11:39:20Z
2019-09-03T14:20:56Z
CLN: remove never-True checks in algorithms.py
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 21d12d02c9008..c0ed198e200f1 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -28,13 +28,11 @@ is_complex_dtype, is_datetime64_any_dtype, is_datetime64_ns_dtype, - is_datetime64tz_dtype, is_datetimel...
https://api.github.com/repos/pandas-dev/pandas/pulls/27908
2019-08-13T21:30:25Z
2019-08-14T20:21:30Z
2019-08-14T20:21:30Z
2019-08-14T21:35:58Z
Revert 37 pins
diff --git a/ci/deps/azure-37-locale.yaml b/ci/deps/azure-37-locale.yaml index 437fbc24b9411..26dcd213bbfa0 100644 --- a/ci/deps/azure-37-locale.yaml +++ b/ci/deps/azure-37-locale.yaml @@ -17,7 +17,7 @@ dependencies: - openpyxl - pytables - python-dateutil - - python=3.7.3 + - python=3.7.* - pytz - s3f...
~second commit is temporary.~ Closes #27907 cc @jjhelmus
https://api.github.com/repos/pandas-dev/pandas/pulls/27907
2019-08-13T21:23:55Z
2019-08-14T19:34:11Z
2019-08-14T19:34:10Z
2019-08-14T19:46:11Z
CI: Skip flaky test that fails Azure to make pipeline succeed
diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py index 756de3edd33dd..37ace3faf0e30 100644 --- a/pandas/tests/groupby/test_categorical.py +++ b/pandas/tests/groupby/test_categorical.py @@ -4,6 +4,8 @@ import numpy as np import pytest +from pandas.compat import PY37 + ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27906
2019-08-13T21:04:05Z
2019-08-14T13:29:56Z
null
2019-08-14T13:29:56Z
EHN: Add encoding_errors option in pandas.DataFrame.to_csv (#27750)
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 338c890ce317c..0e500db6fec63 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -1710,6 +1710,8 @@ function takes a number of arguments. Only the first is required. appropriate (default None) * ``chunksize``:...
- [x] closes #27750 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27899
2019-08-13T11:39:49Z
2019-09-10T21:05:20Z
null
2019-09-10T21:05:20Z
CLN: remove _maybe_update_attributes
diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index 6899e47045c1c..3609c68a26c0f 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -776,12 +776,14 @@ def __rdivmod__(self, other): res2 = other - res1 * self return res1, res2 - ...
It is only non-trivial for DTI and TDI, and only actually needed in `__array_wrap__`. It is cleaner to implement the relevant patch in `DatetimeIndexOpsMixin.__array_wrap__` and avoid the need for maybe_update_attributes altogether.
https://api.github.com/repos/pandas-dev/pandas/pulls/27896
2019-08-13T03:37:31Z
2019-08-15T12:42:38Z
2019-08-15T12:42:38Z
2019-10-19T12:11:51Z
Infer names in MultiIndex.from_product
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 71374a3bff692..8efcde7954338 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -28,7 +28,7 @@ Enhancements Other enhancements ^^^^^^^^^^^^^^^^^^ -- +- :meth:`MultiIndex.from_product` infers level nam...
- [x] closes #27292 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27895
2019-08-13T03:00:46Z
2019-09-12T16:00:06Z
null
2019-09-12T16:00:17Z
DOC: clarify see also for DataFrame.iterrows()
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 02241eeaae7b2..e3edab117668f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -845,8 +845,8 @@ def iterrows(self): See Also -------- - itertuples : Iterate over DataFrame rows as namedtuples of the values. - ...
- [x] closes #27862 - [ ] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/27893
2019-08-13T02:57:17Z
2019-08-13T07:57:20Z
2019-08-13T07:57:20Z
2019-08-13T07:57:21Z
CLN: remove unnecessary validate_for_numeric_unary
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 7272d4e2752be..a2e0582da6ee3 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5341,16 +5341,6 @@ def _maybe_update_attributes(self, attrs): """ return attrs - def _validate_for_numeric_unary...
https://api.github.com/repos/pandas-dev/pandas/pulls/27891
2019-08-13T02:01:04Z
2019-08-14T20:39:53Z
2019-08-14T20:39:53Z
2019-08-14T21:33:55Z
BUG: fix Sparse reduction
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index b97f45efbeae9..dfa216b1db56e 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -133,7 +133,7 @@ Reshaping Sparse ^^^^^^ - +- Bug in reductions for :class:`Series` with Sparse dtypes (:issue:`2708...
- [x] closes #27080 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27890
2019-08-13T01:52:58Z
2019-08-13T16:15:37Z
2019-08-13T16:15:36Z
2019-08-13T16:23:38Z
CLN: remove unnecessary dtype checks
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 13058882084ff..a0fa1b5ff6d92 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1,3 +1,4 @@ +import operator from shutil import get_terminal_size import textwrap from typing import Type, U...
these aren't accomplishing anything and are very non-performant. Also, remove an unnecessary values_from_object call and use operator.foo instead of `"__foo__"` in categorical ops.
https://api.github.com/repos/pandas-dev/pandas/pulls/27889
2019-08-13T01:20:48Z
2019-08-13T12:22:41Z
2019-08-13T12:22:41Z
2019-08-13T13:50:42Z
DOC: Updated Series.items 'See also' section for clarity
diff --git a/pandas/core/series.py b/pandas/core/series.py index 4e64a25e430eb..c891298d6e499 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1681,7 +1681,8 @@ def items(self): See Also -------- - DataFrame.items : Equivalent to Series.items for DataFrame. + DataFram...
I changed the See also to: DataFrame.items : Iterate over (column name, Series) pairs. DataFrame.iterrows : Iterate over DataFrame rows as (index, Series) pairs. No assertions about the equivalence of DataFrame.items and Series.items closes #27859
https://api.github.com/repos/pandas-dev/pandas/pulls/27888
2019-08-13T01:14:57Z
2019-08-13T07:50:40Z
2019-08-13T07:50:40Z
2019-08-13T07:50:48Z
Backport PR #27855 on branch 0.25.x (BUG: add back check for MultiIndex case and take_split_path)
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 637ac5c9c8bd1..9a435e1d18640 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -84,7 +84,7 @@ Indexing - Bug in partial-string indexing returning a NumPy array rather than a ``Series`` when indexi...
Backport PR #27855: BUG: add back check for MultiIndex case and take_split_path
https://api.github.com/repos/pandas-dev/pandas/pulls/27887
2019-08-13T01:04:32Z
2019-08-13T08:40:19Z
2019-08-13T08:40:19Z
2019-08-13T08:40:19Z
CLN: remove unnecessary validate_for_numeric_binop
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 598c4dca9ce88..164cc6cda00a9 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1,4 +1,4 @@ -from datetime import datetime, timedelta +from datetime import datetime import operator from textwrap import dedent fro...
Lots of Index ops cleanup, breaking it up into small pieces.
https://api.github.com/repos/pandas-dev/pandas/pulls/27886
2019-08-12T23:13:41Z
2019-08-13T12:21:42Z
2019-08-13T12:21:41Z
2019-08-13T13:56:57Z
CLN: Index.__new__
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 02241eeaae7b2..d2a6d718a6543 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3447,15 +3447,14 @@ def _get_info_slice(obj, indexer): if not is_list_like(exclude): exclude = (exclude,) if exclude is not None else () - ...
underlying goal is to share code between Index.__new__ and pd.array Unrelated cleanup in DataFrame.select_dtypes because I found it cumbersome.
https://api.github.com/repos/pandas-dev/pandas/pulls/27883
2019-08-12T21:16:22Z
2019-08-13T12:20:40Z
2019-08-13T12:20:40Z
2019-08-13T13:51:13Z
BUG: lzma is a required part of python, make it optional
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 7c2e488b98509..b8475b41a4950 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -103,7 +103,6 @@ MultiIndex I/O ^^^ - - Avoid calling ``S3File.s3`` when reading parquet, as this was removed in s3...
Importing `lzma` when Python has been compiled without its support (usually due to a lack of `xz` in the system) will raise a warning. Substituted `import lzma` for helper function. - [x] closes #27575 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | fla...
https://api.github.com/repos/pandas-dev/pandas/pulls/27882
2019-08-12T21:01:21Z
2019-08-19T13:06:15Z
2019-08-19T13:06:14Z
2021-09-08T17:02:03Z
CLN: use invalid_comparison for incorrect case in Index comparison
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 598c4dca9ce88..0c8169b4818a0 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -112,17 +112,11 @@ def cmp_method(self, other): with np.errstate(all="ignore"): result = op(self.values, n...
Only one test reaches this point, and we aren't currently checking for the output, just that a warning is emitted. This fixes the currently-incorrect output and updates the test to check for it.
https://api.github.com/repos/pandas-dev/pandas/pulls/27879
2019-08-12T20:07:29Z
2019-08-13T12:18:36Z
2019-08-13T12:18:36Z
2019-08-13T13:55:52Z
TST: Raise ValueError and suggestion to use header=None if header=-1 is pa…
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index dfa216b1db56e..823064949859f 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -105,7 +105,7 @@ I/O ^^^ - Avoid calling ``S3File.s3`` when reading parquet, as this was removed in s3fs version 0.3...
…ssed - [x] closes #27779 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27878
2019-08-12T20:05:22Z
2019-08-15T20:27:18Z
2019-08-15T20:27:18Z
2019-08-15T21:14:43Z
Backport PR #27777 on branch 0.25.x (Avoid calling S3File.s3)
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 637ac5c9c8bd1..01141122dde0a 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -104,7 +104,7 @@ MultiIndex I/O ^^^ -- +- Avoid calling ``S3File.s3`` when reading parquet, as this was removed in s...
Backport PR #27777: Avoid calling S3File.s3
https://api.github.com/repos/pandas-dev/pandas/pulls/27877
2019-08-12T19:11:06Z
2019-08-13T07:54:42Z
2019-08-13T07:54:42Z
2019-08-13T07:54:42Z
DOC:Use of "Yields" for documentation of DataFrame.iteritems()
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 02241eeaae7b2..aa59dc5de6896 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -775,7 +775,8 @@ def style(self): Iterates over the DataFrame columns, returning a tuple with the column name and the content as a Series. - ...
changed `Returns` to `Yields` closes #27860
https://api.github.com/repos/pandas-dev/pandas/pulls/27876
2019-08-12T18:52:46Z
2019-08-14T18:54:49Z
2019-08-14T18:54:49Z
2019-08-15T02:06:23Z
DOC: clarify see also for DataFrame.iterrows()
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 02241eeaae7b2..e3edab117668f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -845,8 +845,8 @@ def iterrows(self): See Also -------- - itertuples : Iterate over DataFrame rows as namedtuples of the values. - ...
changed ` .x()` to `Dataframe.x()` in See Also for DataFrame.iterrows.
https://api.github.com/repos/pandas-dev/pandas/pulls/27875
2019-08-12T18:46:56Z
2019-08-13T08:00:15Z
null
2019-08-13T08:15:27Z
COMPAT: unique() should preserve the dtype of the input
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 53041441ba040..4816e6a519884 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -151,6 +151,7 @@ Other API changes - :meth:`pandas.api.types.infer_dtype` will now return "integer-na" for integer and ``...
The behavior of `pd.unique()` is surprising, because -- unlike `np.unique()` -- the result does not have the same `dtype` as the input: ```python In [1]: pd.Series([1,2,3], dtype=np.uint8).unique() Out[1]: array([1, 2, 3], dtype=uint64) ``` This PR just casts the output array to match the input dtype. Superce...
https://api.github.com/repos/pandas-dev/pandas/pulls/27874
2019-08-12T18:38:24Z
2019-10-07T01:08:25Z
2019-10-07T01:08:25Z
2019-10-07T01:08:28Z
requested edit to comparison method
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index a56521b9c9fec..c243b28aedd3c 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -835,13 +835,12 @@ def wrapper(self, other, axis=None): elif isinstance(other, ABCSeries) and not self._indexed_same(other): ...
cc @jorisvandenbossche discussed in #27803
https://api.github.com/repos/pandas-dev/pandas/pulls/27873
2019-08-12T17:20:51Z
2019-08-13T12:17:38Z
2019-08-13T12:17:37Z
2019-08-14T20:09:42Z
Backport PR #27868 on branch 0.25.x (CI: Pin Python to 3.7.3)
diff --git a/ci/deps/azure-37-locale.yaml b/ci/deps/azure-37-locale.yaml index 05adbf0c924dc..6844e929eae78 100644 --- a/ci/deps/azure-37-locale.yaml +++ b/ci/deps/azure-37-locale.yaml @@ -17,7 +17,7 @@ dependencies: - openpyxl - pytables - python-dateutil - - python=3.7.* + - python=3.7.3 - pytz - s3f...
Backport PR #27868: CI: Pin Python to 3.7.3
https://api.github.com/repos/pandas-dev/pandas/pulls/27872
2019-08-12T16:38:19Z
2019-08-12T19:10:35Z
2019-08-12T19:10:35Z
2019-08-12T19:10:35Z
DOC:Standardize use of "Iterate" and "Iterator"
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 02241eeaae7b2..9752af6eb352f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -770,7 +770,7 @@ def style(self): _shared_docs[ "items" ] = r""" - Iterator over (column name, Series) pairs. + Iterate over (colum...
changed `Iterator over` --> `Iterate over` closes #27861
https://api.github.com/repos/pandas-dev/pandas/pulls/27871
2019-08-12T16:20:20Z
2019-08-13T11:57:29Z
2019-08-13T11:57:29Z
2019-08-13T11:57:31Z
DOC: Clarify that unique() promotes dtype to 64-bit
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 21d12d02c9008..5cc3afbae92d3 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -320,6 +320,7 @@ def unique(values): of appearance. This does NOT sort. Significantly faster than numpy.unique. Includes NA values. ...
I found this behavior surprising: ```python In [1]: pd.Series([1,2,3], dtype=np.uint8).unique() Out[1]: array([1, 2, 3], dtype=uint64) ``` ... because I did not expect a different dtype in the result. This PR adds a sentence to the docs to clarify this. - [x] passes `black pandas` - [x] passes `git diff ups...
https://api.github.com/repos/pandas-dev/pandas/pulls/27869
2019-08-12T15:39:59Z
2019-08-15T13:42:18Z
null
2019-10-07T00:15:11Z
CI: Pin Python to 3.7.3
diff --git a/ci/deps/azure-37-locale.yaml b/ci/deps/azure-37-locale.yaml index 26dcd213bbfa0..437fbc24b9411 100644 --- a/ci/deps/azure-37-locale.yaml +++ b/ci/deps/azure-37-locale.yaml @@ -17,7 +17,7 @@ dependencies: - openpyxl - pytables - python-dateutil - - python=3.7.* + - python=3.7.3 - pytz - s3f...
https://api.github.com/repos/pandas-dev/pandas/pulls/27868
2019-08-12T13:56:29Z
2019-08-12T16:37:50Z
2019-08-12T16:37:50Z
2019-08-21T14:40:00Z
Added missing space to error description
diff --git a/pandas/io/feather_format.py b/pandas/io/feather_format.py index 6fe22f14c2c5b..25a6db675265d 100644 --- a/pandas/io/feather_format.py +++ b/pandas/io/feather_format.py @@ -39,7 +39,7 @@ def to_feather(df, path): if not isinstance(df.index, Int64Index): raise ValueError( "feather ...
https://api.github.com/repos/pandas-dev/pandas/pulls/27866
2019-08-12T12:28:32Z
2019-08-13T01:08:38Z
2019-08-13T01:08:38Z
2019-08-13T01:08:46Z
BUG: DataFrameGroupBy.transform and ngroup do not work with cumcount
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 34b149a6b8261..6bf9a3b705527 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -120,7 +120,6 @@ Groupby/resample/rolling - Bug in :meth:`pandas.core.groupby.DataFrameGroupBy.transform` where applyin...
- [ ] closes #27472 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27858
2019-08-11T15:01:39Z
2019-10-29T00:04:49Z
null
2019-10-29T00:04:49Z
BUG: add back check for MultiIndex case and take_split_path
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 7c2e488b98509..b97f45efbeae9 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -84,7 +84,7 @@ Indexing - Bug in partial-string indexing returning a NumPy array rather than a ``Series`` when indexi...
Closes #27841
https://api.github.com/repos/pandas-dev/pandas/pulls/27855
2019-08-10T19:42:15Z
2019-08-13T01:04:21Z
2019-08-13T01:04:21Z
2019-08-14T07:08:40Z
DOC:add append example in to_excel documentation
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 5a1b2a5dcd20b..71d5068e2e0fc 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2179,6 +2179,12 @@ def _repr_data_resource_(self): ... df1.to_excel(writer, sheet_name='Sheet_name_1') ... df2.to_excel(writer, sheet_nam...
closes #27051
https://api.github.com/repos/pandas-dev/pandas/pulls/27852
2019-08-10T05:13:15Z
2019-08-13T09:41:59Z
2019-08-13T09:41:59Z
2019-08-13T11:36:30Z
DOC: Add CoC to the README
diff --git a/README.md b/README.md index aeeea1464e1fd..3cde98d3145f2 100644 --- a/README.md +++ b/README.md @@ -233,3 +233,5 @@ You can also triage issues which may include reproducing bug reports, or asking Or maybe through using pandas you have an idea of your own or are looking for something in the documentation a...
@datapythonista : Add CoC to README file
https://api.github.com/repos/pandas-dev/pandas/pulls/27851
2019-08-10T04:43:03Z
2019-08-13T14:12:45Z
2019-08-13T14:12:45Z
2019-08-13T14:12:48Z
CLN: op-->opname in Categorical _cat_compare_op
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 9862b4b530424..13058882084ff 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -77,7 +77,7 @@ ) -def _cat_compare_op(op): +def _cat_compare_op(opname): def f(self, other): ...
In general we use `op` to refer to operator.foo, and `opname` to refer to the string, which is what is passed in this case.
https://api.github.com/repos/pandas-dev/pandas/pulls/27849
2019-08-10T01:13:28Z
2019-08-12T18:53:36Z
2019-08-12T18:53:36Z
2019-08-12T19:04:48Z
TST: parametrize arithmetic tests
diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py index 1fb93a182ba0b..5931cd93cc8c5 100644 --- a/pandas/tests/arithmetic/test_datetime64.py +++ b/pandas/tests/arithmetic/test_datetime64.py @@ -30,6 +30,54 @@ import pandas.util.testing as tm +def assert_invalid_co...
https://api.github.com/repos/pandas-dev/pandas/pulls/27847
2019-08-09T21:19:09Z
2019-08-15T12:39:57Z
2019-08-15T12:39:57Z
2019-08-15T14:20:52Z
BUG: boxplot does not work when data has datetime column
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 974d14a4b424c..b35f230100f8d 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -165,6 +165,7 @@ Plotting - Bug in :meth:`Series.plot` not able to plot boolean values (:issue:`23719`) - +- Bug in :met...
- [ ] closes #22799 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27846
2019-08-09T19:19:08Z
2019-08-13T12:44:11Z
2019-08-13T12:44:10Z
2019-08-13T12:44:11Z
CI: pytest, xdist versions
diff --git a/ci/deps/azure-37-locale.yaml b/ci/deps/azure-37-locale.yaml index 05adbf0c924dc..26dcd213bbfa0 100644 --- a/ci/deps/azure-37-locale.yaml +++ b/ci/deps/azure-37-locale.yaml @@ -26,8 +26,8 @@ dependencies: - xlsxwriter - xlwt # universal - - pytest>=4.0.2 - - pytest-xdist + - pytest>=5.0.1 + - p...
https://api.github.com/repos/pandas-dev/pandas/pulls/27845
2019-08-09T18:57:36Z
2019-08-12T02:29:48Z
2019-08-12T02:29:48Z
2019-08-21T21:09:15Z
DOC: GroupBy.head()/tail() documentation
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index c5e81e21e9fd5..d1da298412751 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -2326,8 +2326,9 @@ def head(self, n=5): """ Return first n rows of each group. - Essentially equi...
- [x] closes #6721 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Update DOC to make it consistent with actual behavior
https://api.github.com/repos/pandas-dev/pandas/pulls/27844
2019-08-09T18:57:21Z
2019-08-23T08:06:04Z
2019-08-23T08:06:04Z
2019-08-23T08:06:04Z
PERF: Break reference cycle for all Index types
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index dfa216b1db56e..21f1fa7ddec1f 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -83,7 +83,7 @@ Indexing ^^^^^^^^ - Bug in partial-string indexing returning a NumPy array rather than a ``Series`` w...
- [x] xref #27585 & #27607 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Generalizes the test in #27607 to be used for all index types. This finds ref cycle issues for ``PeriodIndex`` and ``CategoricalIndex`` which...
https://api.github.com/repos/pandas-dev/pandas/pulls/27840
2019-08-09T10:11:28Z
2019-08-14T20:11:35Z
2019-08-14T20:11:35Z
2019-08-14T21:52:31Z
Parametrize JSON tests
diff --git a/pandas/tests/io/json/conftest.py b/pandas/tests/io/json/conftest.py new file mode 100644 index 0000000000000..4e848cd48b42d --- /dev/null +++ b/pandas/tests/io/json/conftest.py @@ -0,0 +1,9 @@ +import pytest + + +@pytest.fixture(params=["split", "records", "index", "columns", "values"]) +def orient(request...
lot more to be done here but split these up as some of the large functions are difficult to highlight failures while working on extension module. Improved coverage and identified some inconsistencies in process (marked with TODOs) which can be tackled as follow ups
https://api.github.com/repos/pandas-dev/pandas/pulls/27838
2019-08-09T08:56:09Z
2019-09-17T21:49:45Z
2019-09-17T21:49:45Z
2020-01-16T00:33:52Z
Backport PR #27818 on branch 0.25.x (COMPAT: restore shape for 'invalid' Index with nd array)
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index f1d3f152e503d..d48a003d56e4f 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -111,7 +111,7 @@ Plotting ^^^^^^^^ - Added a pandas_plotting_backends entrypoint group for registering plot backends...
Backport PR #27818: COMPAT: restore shape for 'invalid' Index with nd array
https://api.github.com/repos/pandas-dev/pandas/pulls/27836
2019-08-09T07:37:36Z
2019-08-09T08:20:19Z
2019-08-09T08:20:19Z
2019-08-09T08:20:19Z
DOC: Add examples to Series.str.slice() with negative arguments GH27802
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index 169a3a24c254d..8901da19082c2 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -1454,6 +1454,36 @@ def str_slice(arr, start=None, stop=None, step=None): 2 caeen dtype: object + Negative values can be used for any of t...
- [x] closes #27802 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [N/A] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27834
2019-08-09T04:29:56Z
2019-08-09T17:07:40Z
null
2019-08-09T17:07:40Z
Update sample() documentation
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c38489c7b85ef..5a1b2a5dcd20b 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4786,7 +4786,7 @@ def sample( frac : float, optional Fraction of axis items to return. Cannot be used with `n`. replace : bo...
Clarify the definition of replace parameter - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27833
2019-08-09T04:13:16Z
2019-08-09T12:33:49Z
2019-08-09T12:33:49Z
2019-08-09T13:16:22Z
Add example for Series.str.slice()
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index 169a3a24c254d..25350119f9df5 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -1442,6 +1442,12 @@ def str_slice(arr, start=None, stop=None, step=None): 2 hameleon dtype: object + >>> s.str.slice(start=-1) + 0 ...
Add example to show that negative values for start are allowed for Series.str.slice(). - [ X] closes #27802 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27832
2019-08-09T03:26:12Z
2019-08-09T12:55:23Z
2019-08-09T12:55:23Z
2019-08-09T13:16:10Z
CLN: match standardized dispatch logic in IntegerArray
diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py index 1f14bd169a228..069d661e6af34 100644 --- a/pandas/core/arrays/integer.py +++ b/pandas/core/arrays/integer.py @@ -21,7 +21,7 @@ is_scalar, ) from pandas.core.dtypes.dtypes import register_extension_dtype -from pandas.core.dtypes.gener...
Actual logic changes: - return NotImplemented when operating with DataFrame (instead of raising NotImplementError) - raise ValueError when operating with mismatched-length listlike Everything else is just rearranging to use patterns that are more standard around the codebase, leading up to #23853
https://api.github.com/repos/pandas-dev/pandas/pulls/27830
2019-08-08T21:47:05Z
2019-08-13T12:13:17Z
2019-08-13T12:13:16Z
2019-08-13T13:59:35Z
Backport PR #27607 on branch 0.25.x (BUG: break reference cycle in Index._engine)
diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py index 6541ddcb0397d..49834ae94cc38 100644 --- a/asv_bench/benchmarks/index_object.py +++ b/asv_bench/benchmarks/index_object.py @@ -1,3 +1,4 @@ +import gc import numpy as np import pandas.util.testing as tm from pandas import ( ...
Backport PR #27607: BUG: break reference cycle in Index._engine
https://api.github.com/repos/pandas-dev/pandas/pulls/27828
2019-08-08T20:43:36Z
2019-08-09T20:24:13Z
2019-08-09T20:24:13Z
2019-08-09T20:24:18Z
BUG: Fixed groupby quantile for listlike q
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 94770a7aae676..4d385ef0ec166 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -117,6 +117,7 @@ Plotting Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ +- Fixed regression in :meth:`pands.core...
Closes #27526 Just a WIP right now. This is under tested for - [ ] `groupby(sort=False)` - [ ] non-sorted `q` - [ ] `groupby(multiple levels)`
https://api.github.com/repos/pandas-dev/pandas/pulls/27827
2019-08-08T20:36:24Z
2019-08-22T11:28:37Z
2019-08-22T11:28:37Z
2019-08-22T11:28:40Z
BUG: Fix groupby quantile segfault
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 637ac5c9c8bd1..7b39810a2cf49 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -120,7 +120,7 @@ Groupby/resample/rolling - Bug in :meth:`pandas.core.groupby.DataFrameGroupBy.transform` where apply...
Validate that q is between 0 and 1. Closes #27470
https://api.github.com/repos/pandas-dev/pandas/pulls/27826
2019-08-08T19:49:31Z
2019-08-12T17:56:47Z
2019-08-12T17:56:47Z
2019-10-31T01:19:37Z
Add tidelift sponsor to FUNDING
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 6912d15abf3d6..944ce9b4fb1f6 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1,2 @@ custom: https://pandas.pydata.org/donate.html +tidelift: pypi/pandas
https://api.github.com/repos/pandas-dev/pandas/pulls/27823
2019-08-08T16:51:00Z
2019-08-09T14:19:03Z
2019-08-09T14:19:03Z
2019-08-09T14:19:06Z
Add security policy
diff --git a/.github/SECURITY.md b/.github/SECURITY.md new file mode 100644 index 0000000000000..f3b059a5d4f13 --- /dev/null +++ b/.github/SECURITY.md @@ -0,0 +1 @@ +To report a security vulnerability to pandas, please go to https://tidelift.com/security and see the instructions there.
Closes #27821
https://api.github.com/repos/pandas-dev/pandas/pulls/27822
2019-08-08T16:50:46Z
2019-08-09T14:18:54Z
2019-08-09T14:18:54Z
2019-08-09T14:19:09Z
Backport PR #27809 on branch 0.25.x (CI: remove pytest pins)
diff --git a/ci/deps/azure-36-locale.yaml b/ci/deps/azure-36-locale.yaml index 8f8273f57c3fe..6a77b5dbedc61 100644 --- a/ci/deps/azure-36-locale.yaml +++ b/ci/deps/azure-36-locale.yaml @@ -20,8 +20,8 @@ dependencies: - xlsxwriter=0.9.8 - xlwt=1.2.0 # universal - - pytest>=4.0.2,<5.0.0 - - pytest-xdist + - p...
Backport PR #27809: CI: remove pytest pins
https://api.github.com/repos/pandas-dev/pandas/pulls/27819
2019-08-08T11:00:57Z
2019-08-08T12:13:54Z
2019-08-08T12:13:54Z
2019-08-08T12:13:54Z
COMPAT: restore shape for 'invalid' Index with nd array
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index f1d3f152e503d..d48a003d56e4f 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -111,7 +111,7 @@ Plotting ^^^^^^^^ - Added a pandas_plotting_backends entrypoint group for registering plot backends...
closes #27775
https://api.github.com/repos/pandas-dev/pandas/pulls/27818
2019-08-08T09:54:09Z
2019-08-09T07:36:58Z
2019-08-09T07:36:58Z
2019-08-09T07:56:16Z
REF: implement should_extension_dispatch
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index 7229b3de4e9f0..843f12c20b07b 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -47,7 +47,7 @@ import pandas as pd from pandas._typing import ArrayLike -from pandas.core.construction import extract_array +from pa...
This uses should_extension_dispatch in _arith_method_SERIES. We'll be able to use it in _comp_method_SERIES after #27803. (this is orthogonal to 27803 so doesn't matter what order they go in)
https://api.github.com/repos/pandas-dev/pandas/pulls/27815
2019-08-08T03:20:05Z
2019-08-14T20:39:15Z
2019-08-14T20:39:15Z
2019-08-14T21:34:32Z
BUG: Series.rename raises error on values accepted by Series construc…
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 680d69a9862cd..b307fae4fbdc1 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -108,6 +108,7 @@ Other ^^^^^ - Bug in :meth:`Series.replace` and :meth:`DataFrame.replace` when replacing timezone-a...
- closes #27813
https://api.github.com/repos/pandas-dev/pandas/pulls/27814
2019-08-08T02:04:10Z
2019-08-22T13:07:47Z
2019-08-22T13:07:47Z
2019-08-22T13:07:48Z
REF: separate method-pinning functions
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index 4ab1941e3493f..01de1428e290c 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -41,7 +41,6 @@ ABCIndex, ABCIndexClass, ABCSeries, - ABCSparseArray, ABCSparseSeries, ) from pandas.core.dtypes...
These are the ones that are executed at import-time and then never needed again.
https://api.github.com/repos/pandas-dev/pandas/pulls/27811
2019-08-07T22:26:00Z
2019-08-08T12:33:12Z
2019-08-08T12:33:12Z
2019-08-08T13:33:55Z
TST: skip test if running non-installed
diff --git a/pandas/tests/plotting/test_backend.py b/pandas/tests/plotting/test_backend.py index e79e7b6239eb3..d126407cfd823 100644 --- a/pandas/tests/plotting/test_backend.py +++ b/pandas/tests/plotting/test_backend.py @@ -46,14 +46,18 @@ def test_backend_is_correct(monkeypatch): @td.skip_if_no_mpl def test_regis...
If running the tests without the branch installed, this test fails. Skip it instead.
https://api.github.com/repos/pandas-dev/pandas/pulls/27810
2019-08-07T21:33:24Z
2019-08-13T12:06:27Z
2019-08-13T12:06:27Z
2019-08-13T13:57:29Z
CI: remove pytest pins
diff --git a/ci/deps/azure-36-locale.yaml b/ci/deps/azure-36-locale.yaml index 8f8273f57c3fe..6a77b5dbedc61 100644 --- a/ci/deps/azure-36-locale.yaml +++ b/ci/deps/azure-36-locale.yaml @@ -20,8 +20,8 @@ dependencies: - xlsxwriter=0.9.8 - xlwt=1.2.0 # universal - - pytest>=4.0.2,<5.0.0 - - pytest-xdist + - p...
https://api.github.com/repos/pandas-dev/pandas/pulls/27809
2019-08-07T21:20:42Z
2019-08-08T11:00:23Z
2019-08-08T11:00:23Z
2019-08-08T16:22:48Z
VIS: Fix DataFrame.plot() produces incorrect legend markers when plotting multiple series on the same axis
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index b35f230100f8d..82bba1ae22bf2 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -165,6 +165,7 @@ Plotting - Bug in :meth:`Series.plot` not able to plot boolean values (:issue:`23719`) - +- Bug in :met...
I found out that the reason this happens is because `subplots` is not updated accordingly when `plt.subplots()` is used and assign to `ax`, e.g. `fig, ax = plt.subplots(nrows=1, ncols=3)`. I tested my solution and things all get solved, and figure looks very correct like below: ![Screen Shot 2019-08-07 at 10 03 39 PM]...
https://api.github.com/repos/pandas-dev/pandas/pulls/27808
2019-08-07T20:10:10Z
2019-08-16T11:38:47Z
2019-08-16T11:38:47Z
2021-01-31T10:02:37Z
BUG: fix+test op(NaT, ndarray), also simplify
diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index 6fab1b5c02be1..020d1acf0b4ce 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -92,6 +92,9 @@ cdef class _NaT(datetime): # int64_t value # object freq + # higher than np.ndarray ...
https://api.github.com/repos/pandas-dev/pandas/pulls/27807
2019-08-07T18:06:42Z
2019-08-15T12:41:33Z
2019-08-15T12:41:33Z
2019-08-15T14:19:41Z
BUG: fix construction of NonConsolidatableBlock with inconsistent ndim (#27786)
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 26aca34f20594..33517087c5d76 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -274,6 +274,8 @@ def make_block_same_class(self, values, placement=None, ndim=None, dtype=None): ) ...
Manual backport of https://github.com/pandas-dev/pandas/pull/27786, meeseeksdev seemed to be inactive for a moment (PR was properly milestoned).
https://api.github.com/repos/pandas-dev/pandas/pulls/27806
2019-08-07T18:02:30Z
2019-08-07T21:08:37Z
2019-08-07T21:08:37Z
2019-08-07T21:08:37Z
[WIP] Improve CI/CD pipeline performance
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 263a87176a9c9..5abf809a2d924 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -122,7 +122,7 @@ jobs: - script: | source activate pandas-dev # Next we should simply have `doc/make.py --warnings-are-errors`, everything else is requ...
- [X] closes #24028 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27804
2019-08-07T17:57:37Z
2019-10-22T01:48:03Z
null
2019-10-22T01:48:03Z
REF: Simplify _comp_method_SERIES
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index 4ab1941e3493f..92698fdaccead 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -1029,6 +1029,15 @@ def wrapper(self, other, axis=None): self._get_axis_number(axis) res_name = get_op_result_na...
- Do raising checks earlier on, matching how this is done elsewhere (moving towards #23853) - Comment on line 1034 notes possibly-inconsistent behavior that we should either change or add an explanatory comment for. - Ditto line 1058 - Before long we'll be able to collapse all of the dispatch_to_extension_op cases ...
https://api.github.com/repos/pandas-dev/pandas/pulls/27803
2019-08-07T16:04:41Z
2019-08-08T12:35:31Z
2019-08-08T12:35:31Z
2019-08-09T15:39:54Z
ENH: Add argmax and argmin to ExtensionArray
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index cee41f248fc60..38ef1115988b5 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -280,6 +280,7 @@ Other enhancements - :meth:`Styler.highlight_null` now accepts ``subset`` argument (:issue:`31345`) - Whe...
- closes #24382 - tests added - passes `black pandas` - passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - whatsnew entry The methods added in this PR ignore `nan` ,i.e., `skipna=True`. The existing `categorical.min` return `nan` if `categorical` contain any `nan`. This behavior is expected in...
https://api.github.com/repos/pandas-dev/pandas/pulls/27801
2019-08-07T14:45:47Z
2020-07-08T14:38:16Z
2020-07-08T14:38:16Z
2020-07-08T14:47:45Z
DOC: add print statement in to_latex example
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 1b39f9225a0ed..0ddb863fa9402 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2993,10 +2993,15 @@ def to_latex( >>> df = pd.DataFrame({'name': ['Raphael', 'Donatello'], ... 'mask': ['red', 'purple...
changed `df.to_latex` to `print(df.to_latex)` closes #27789
https://api.github.com/repos/pandas-dev/pandas/pulls/27798
2019-08-07T10:05:05Z
2019-08-08T11:42:55Z
2019-08-08T11:42:54Z
2019-08-08T11:43:06Z
DEPR: Remove previously deprecated IntervalIndex.from_intervals
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index bca7bf8cbefbd..f5ca843e1a6f7 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -66,6 +66,7 @@ Removal of prior version deprecations/changes - :meth:`pandas.Series.str.cat` now defaults to aligning ``oth...
Didn't see any references to `IntervalIndex.from_intervals` in the docs. We deprecated this before `IntervalArray` was implemented, so no `from_intervals` to worry about there; `IntervalArray` file just has a "shared" docstring for `from_intervals` that isn't actually shared.
https://api.github.com/repos/pandas-dev/pandas/pulls/27793
2019-08-07T05:36:32Z
2019-08-07T13:16:50Z
2019-08-07T13:16:50Z
2019-08-07T14:35:51Z
CLN: remove nested error handling
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 8eea46af2c353..c035e1174bb27 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1366,20 +1366,8 @@ def func(cond, values, other): # np.where will cast integer array to floats in this...
The removed code is not covered in the test suite, so this makes for a nice little simplification. Moreover, since the condition above on 1369-1373 is an ugly one, de-nesting this function will give us a good shot and further simplifying this code. That said, this could be considered an API change, since now the "e...
https://api.github.com/repos/pandas-dev/pandas/pulls/27792
2019-08-07T02:24:52Z
2019-08-07T16:54:43Z
2019-08-07T16:54:43Z
2019-08-07T17:18:46Z
CLN: Assorted Cleanups
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index d22b4bd4d3f2b..69fa956b73f28 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -22,7 +22,6 @@ ensure_int64, ensure_object, ensure_platform_int, - is_categorical, is_cat...
- make PTA/DTA strftime() return ndarray instead of Index - fix a xfailed Series[Period] test - avoid imports of Index subclass in arrays.categorical and arrays.datetimelike - some typing
https://api.github.com/repos/pandas-dev/pandas/pulls/27791
2019-08-06T23:23:59Z
2019-08-08T12:37:41Z
2019-08-08T12:37:41Z
2019-08-08T13:33:19Z
BUG: Increase range of dates for holiday calculations
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 48c1173a372a7..78ebdb985edad 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -409,6 +409,9 @@ Other - Bug in :meth:`Series.diff` where a boolean series would incorrectly raise a ``TypeError`` (:issue:...
- [x] closes #27761 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27790
2019-08-06T20:39:12Z
2019-10-24T00:04:13Z
2019-10-24T00:04:13Z
2019-10-24T01:58:44Z
TST: Add tests for groupby categorical values with axis=1
diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py index ce724f5a60beb..756de3edd33dd 100644 --- a/pandas/tests/groupby/test_categorical.py +++ b/pandas/tests/groupby/test_categorical.py @@ -1163,3 +1163,13 @@ def test_seriesgroupby_observed_apply_dict(df_cat, observed, ind...
This is xref https://github.com/pandas-dev/pandas/pull/27700#issuecomment-517703401 - [x] closes #13420 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27788
2019-08-06T20:05:29Z
2019-08-07T13:57:34Z
2019-08-07T13:57:33Z
2019-08-07T13:57:41Z
Fix miniconda path issue #26962
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cfd7f6546833d..263a87176a9c9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -22,22 +22,17 @@ jobs: timeoutInMinutes: 90 steps: - script: | - # XXX next command should avoid redefining the path in every step, but - # made the ...
- [x] closes #26962 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27787
2019-08-06T19:24:35Z
2019-08-07T09:38:42Z
2019-08-07T09:38:42Z
2019-12-23T16:13:05Z
BUG: fix construction of NonConsolidatableBlock with inconsistent ndim
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 8c3cf7cc51495..982b3655650fc 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -273,6 +273,8 @@ def make_block_same_class(self, values, placement=None, ndim=None, dtype=None): ) ...
- [x] closes #27785 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27786
2019-08-06T18:56:26Z
2019-08-07T13:25:37Z
2019-08-07T13:25:37Z
2019-08-07T17:50:41Z
ENH: allow object-dtype Index to do arithmetic ops
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 356ae20b2240a..4694ffd160ce6 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5603,7 +5603,7 @@ def shape(self): return (len(self),) -Index._add_numeric_methods_disabled() +Index._add_numeric_methods_...
Implement ops in the base Index class to work the same as Series versions.
https://api.github.com/repos/pandas-dev/pandas/pulls/27784
2019-08-06T17:41:09Z
2019-08-13T00:08:40Z
null
2019-08-14T15:11:00Z
Backport PR #27663 on branch 0.25.x (BUG: pd.crosstab not working when margin and normalize are set together)
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 943a6adb7944e..792dfe4be055e 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -125,6 +125,7 @@ Reshaping ^^^^^^^^^ - A ``KeyError`` is now raised if ``.unstack()`` is called on a :class:`Series`...
Backport PR #27663: BUG: pd.crosstab not working when margin and normalize are set together
https://api.github.com/repos/pandas-dev/pandas/pulls/27783
2019-08-06T15:45:42Z
2019-08-07T03:51:51Z
2019-08-07T03:51:51Z
2019-08-07T03:51:51Z