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: Fix typo in min_rows / max_rows option example | diff --git a/doc/source/user_guide/options.rst b/doc/source/user_guide/options.rst
index f32a8adfd4d33..1f1dff417e68f 100644
--- a/doc/source/user_guide/options.rst
+++ b/doc/source/user_guide/options.rst
@@ -163,7 +163,7 @@ determines how many rows are shown in the truncated repr.
.. ipython:: python
pd.set_opt... | - Fix typo in example
- Regenerated output also seems to fix a bad output in the next line (out 32 in current online documentation) where df is truncated, when it shouldn't by according to the code
| https://api.github.com/repos/pandas-dev/pandas/pulls/28281 | 2019-09-04T11:25:42Z | 2019-09-04T16:13:12Z | 2019-09-04T16:13:12Z | 2019-09-05T07:49:56Z |
CLN: catch Exception in fewer places, assorted cleanups | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 333136ddfddd9..d9369b916fe4d 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -203,7 +203,7 @@ if [[ -z "$CHECK" || "$CHECK" == "code" ]]; then
import sys
import pandas
-blacklist = {'bs4', 'gcsfs', 'html5lib', 'ipython', 'jinja2' 'hypothesis',
+blac... | https://api.github.com/repos/pandas-dev/pandas/pulls/28276 | 2019-09-04T02:51:26Z | 2019-09-04T11:23:12Z | 2019-09-04T11:23:12Z | 2019-09-04T15:30:21Z | |
DEV: remove seed isort config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 5cc22c638c9b1..b79f0f71dac23 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -15,7 +15,3 @@ repos:
hooks:
- id: isort
language: python_venv
-- repo: https://github.com/asottile/seed-isort-config
- rev: v... | This was causing issues for me locally. Anyone else?
It took a while to run, and didn't seem to give the same
output as others (depends on something peculiar to my environment)
which doesn't seem to be great for a pre-commit hook.
Closes https://github.com/pandas-dev/pandas/issues/28236 | https://api.github.com/repos/pandas-dev/pandas/pulls/28272 | 2019-09-03T19:16:44Z | 2019-09-04T11:26:12Z | 2019-09-04T11:26:12Z | 2019-09-04T11:26:12Z |
BUG: Timestamp+int should raise NullFrequencyError, not ValueError | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 161ebf9783e1b..e1fe2f7fe77e2 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -99,6 +99,7 @@ Datetimelike
- Bug in ``HDFStore.__getitem__`` incorrectly reading tz attribute created in Python 2 (:issue:... | Last prerequisite before we can fix #28080. | https://api.github.com/repos/pandas-dev/pandas/pulls/28268 | 2019-09-03T17:53:20Z | 2019-09-08T17:09:55Z | 2019-09-08T17:09:55Z | 2019-09-08T17:12:39Z |
BUG: Make sure correct values are passed to Rolling._on when axis=1 | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index cd0714838a3f1..f6b497486c324 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -177,7 +177,7 @@ Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
-
--
+- Bug in :meth:`DataFrame.rolling` not allowing... | - [x] closes #28192
- [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/28267 | 2019-09-03T17:24:19Z | 2019-09-04T17:07:17Z | 2019-09-04T17:07:17Z | 2019-09-04T17:10:19Z |
re-implement #27959 | diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py
index cc2d4ced1243f..9fd6efe32de29 100644
--- a/pandas/core/ops/__init__.py
+++ b/pandas/core/ops/__init__.py
@@ -829,6 +829,13 @@ def wrapper(self, other):
# Defer to DataFrame implementation; fail early
return NotImplemen... | Previous version broke because a different branch changed the behavior of when extract_array is called. | https://api.github.com/repos/pandas-dev/pandas/pulls/28260 | 2019-09-03T01:39:37Z | 2019-09-03T18:53:53Z | 2019-09-03T18:53:53Z | 2019-09-03T19:04:23Z |
Fix to_json Memory Tests | diff --git a/asv_bench/benchmarks/io/json.py b/asv_bench/benchmarks/io/json.py
index b249c92b53e93..5c1d39776b91c 100644
--- a/asv_bench/benchmarks/io/json.py
+++ b/asv_bench/benchmarks/io/json.py
@@ -118,7 +118,7 @@ def setup(self, orient, frame):
def time_to_json(self, orient, frame):
getattr(self, fram... | Inspired by @mroeschke I noticed the JSON tests weren't actually measuring anything because you need to return something for the `mem_` tests which these weren't. In any case probably better served as `peakmem_`
| https://api.github.com/repos/pandas-dev/pandas/pulls/28259 | 2019-09-03T00:04:39Z | 2019-09-04T11:56:26Z | 2019-09-04T11:56:26Z | 2020-01-16T00:35:11Z |
Revert #27959 | diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py
index df097d7ad91dc..cc2d4ced1243f 100644
--- a/pandas/core/ops/__init__.py
+++ b/pandas/core/ops/__init__.py
@@ -829,11 +829,6 @@ def wrapper(self, other):
# Defer to DataFrame implementation; fail early
return NotImplemen... | On Sparse tests it is causing recursion errors. Revert and I'll revisit | https://api.github.com/repos/pandas-dev/pandas/pulls/28258 | 2019-09-02T23:31:09Z | 2019-09-03T00:07:27Z | 2019-09-03T00:07:27Z | 2019-09-03T01:31:07Z |
BUG: CategoricalIndex allowed reindexing duplicate sources | diff --git a/doc/source/user_guide/advanced.rst b/doc/source/user_guide/advanced.rst
index 62a9b6396404a..4949dd580414f 100644
--- a/doc/source/user_guide/advanced.rst
+++ b/doc/source/user_guide/advanced.rst
@@ -783,27 +783,41 @@ values **not** in the categories, similarly to how you can reindex **any** panda
.. ip... | For consistency with normal indexes, `CategoricalIndex.reindex` should allow targets to be duplicated but not the sources. However, currently in allows the source to be duplicated but not the targets, which is exactly the wrong behaviour.
Most of the work here is fixing the tests, which in many cases explicitly chec... | https://api.github.com/repos/pandas-dev/pandas/pulls/28257 | 2019-09-02T22:12:25Z | 2019-10-16T12:52:55Z | 2019-10-16T12:52:55Z | 2019-10-16T12:52:58Z |
BENCH: Add peakmem benchmarks for rolling | diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py
index 3640513d31be2..b42fa553b495c 100644
--- a/asv_bench/benchmarks/rolling.py
+++ b/asv_bench/benchmarks/rolling.py
@@ -21,6 +21,9 @@ def setup(self, constructor, window, dtype, method):
def time_rolling(self, constructor, window, dty... | ```
$ asv dev -b rolling
[ 20.00%] ··· rolling.Methods.peakmem_rolling ok
[ 20.00%] ··· ============ ======== ======= ======== ======= ======= ======= ======= ... | https://api.github.com/repos/pandas-dev/pandas/pulls/28255 | 2019-09-02T19:31:29Z | 2019-09-03T05:04:46Z | 2019-09-03T05:04:46Z | 2019-09-03T05:04:49Z |
BUG: Fix numpy boolean subtraction error in Series.diff | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 77807a338d21f..37f559e45ec71 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -240,6 +240,7 @@ Other
- Trying to set the ``display.precision``, ``display.max_rows`` or ``display.max_columns`` using :me... | A new version of the pull request (#27755), the other one was a bit behind. Original text below.
This fixes #17294, for more than three years now NumPy has not allowed the subtraction of boolean series.
TypeError Traceback (most recent call last)
<ipython-input-46-3da3b949c6bd> i... | https://api.github.com/repos/pandas-dev/pandas/pulls/28251 | 2019-09-02T14:49:53Z | 2019-10-01T16:38:46Z | 2019-10-01T16:38:46Z | 2019-10-01T21:06:20Z |
BUG: pivot_table not returning correct type when margin=True and aggfunc='mean' | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 2b68ddf3d8918..28a61c535f951 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -595,6 +595,7 @@ Reshaping
- Bug in :meth:`DataFrame.apply` that caused incorrect output with empty :class:`DataFrame` (:... | - [x] closes #24893
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
# What's new
Use of `maybe_downcast_to_dtype` in `_add_margins` so it can resolve the dtype conversion, avoiding floats being converted to integers when the result of th... | https://api.github.com/repos/pandas-dev/pandas/pulls/28248 | 2019-09-01T17:11:13Z | 2019-11-23T22:43:53Z | 2019-11-23T22:43:53Z | 2019-11-23T22:44:03Z |
DOC: fix read_excel and ExcelFile engine parameter description (#28231) | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index 997edf49d9e8f..9cdb0b3d7c51b 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -112,7 +112,7 @@
engine : str, default None
If io is not a buffer or path, this must be set to identify io.
- Acceptable values are None ... | Closes #28231.
First PR. Not sure if I'm doing anything wrong. | https://api.github.com/repos/pandas-dev/pandas/pulls/28245 | 2019-08-31T21:57:19Z | 2019-09-05T18:03:57Z | 2019-09-05T18:03:57Z | 2019-09-05T18:04:03Z |
Datetime mergeasof tolerance | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 7ca93d7d75854..a3d75d69e1e82 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -279,6 +279,7 @@ Reshaping
- Bug in :meth:`DataFrame.apply` that caused incorrect output with empty :class:`DataFrame` (:... | - [x] closes #28098
- [x] tests 1 / 1
- [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/28241 | 2019-08-31T13:51:23Z | 2019-09-25T15:50:32Z | 2019-09-25T15:50:32Z | 2021-06-27T18:50:43Z |
PERF: asv for import | diff --git a/asv_bench/benchmarks/package.py b/asv_bench/benchmarks/package.py
new file mode 100644
index 0000000000000..8ca33db361fa0
--- /dev/null
+++ b/asv_bench/benchmarks/package.py
@@ -0,0 +1,25 @@
+"""
+Benchmarks for pandas at the package-level.
+"""
+import subprocess
+import sys
+
+from pandas.compat import P... | - [x] closes #26663
for py37 this uses `-X importtime` to get a more precise number without subprocess overhead. Doesn't actually do anything with it, but what the heck.
Couple of unrelated cleanups. | https://api.github.com/repos/pandas-dev/pandas/pulls/28239 | 2019-08-31T01:15:12Z | 2019-09-05T15:34:44Z | 2019-09-05T15:34:44Z | 2019-09-05T15:45:44Z |
fix DatetimeIndex.tz_localize examples docstring | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 70df708d36b3b..732f819e743a4 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -1063,6 +1063,7 @@ def tz_localize(self, tz, ambiguous="raise", nonexistent="raise", errors=None):
Be careful... | [DatetimeIndex.tz_localize](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DatetimeIndex.tz_localize.html#pandas.DatetimeIndex.tz_localize) doc string has improperly formatted examples near the bottom. Trivial fix, so didn't think it needed an issue or whatsnew entry, but happy to add if needed. Now ... | https://api.github.com/repos/pandas-dev/pandas/pulls/28237 | 2019-08-30T19:56:23Z | 2019-08-30T20:54:02Z | 2019-08-30T20:54:02Z | 2019-08-30T21:04:20Z |
Backport PR #28216 on branch 0.25.x (REGR: <th> tags for notebook display closes #28204) | diff --git a/doc/source/whatsnew/v0.25.2.rst b/doc/source/whatsnew/v0.25.2.rst
index 8d8a39139cf84..1cdf213d81a74 100644
--- a/doc/source/whatsnew/v0.25.2.rst
+++ b/doc/source/whatsnew/v0.25.2.rst
@@ -62,6 +62,7 @@ Missing
I/O
^^^
+- Fix regression in notebook display where <th> tags not used for :attr:`DataFrame.i... | Backport PR #28216: REGR: <th> tags for notebook display closes #28204 | https://api.github.com/repos/pandas-dev/pandas/pulls/28233 | 2019-08-30T17:07:00Z | 2019-08-30T18:34:44Z | 2019-08-30T18:34:44Z | 2019-08-30T18:34:44Z |
Backport PR #28229 on branch 0.25.x (REGR: Fix to_csv with IntervalIndex) | diff --git a/doc/source/whatsnew/v0.25.2.rst b/doc/source/whatsnew/v0.25.2.rst
index 6974c7521a237..8d8a39139cf84 100644
--- a/doc/source/whatsnew/v0.25.2.rst
+++ b/doc/source/whatsnew/v0.25.2.rst
@@ -62,7 +62,7 @@ Missing
I/O
^^^
--
+- Regression in :meth:`~DataFrame.to_csv` where writing a :class:`Series` or :cla... | Backport PR #28229: REGR: Fix to_csv with IntervalIndex | https://api.github.com/repos/pandas-dev/pandas/pulls/28232 | 2019-08-30T14:32:57Z | 2019-08-30T16:55:06Z | 2019-08-30T16:55:06Z | 2019-08-30T16:55:06Z |
Improved benchmark coverage for reading spreadsheets | diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json
index 571ede1a21134..c04bbf53a86a6 100644
--- a/asv_bench/asv.conf.json
+++ b/asv_bench/asv.conf.json
@@ -50,12 +50,13 @@
"xlsxwriter": [],
"xlrd": [],
"xlwt": [],
+ "odfpy": [],
"pytest": [],
// If using ... | - [x] closes #27485
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
AFAIK there's no writer for OpenDocument spreadsheet, so I came up with the minimal amount of code to generate the spreadsheet `odf` engine can read. | https://api.github.com/repos/pandas-dev/pandas/pulls/28230 | 2019-08-30T10:40:51Z | 2019-09-05T17:10:54Z | 2019-09-05T17:10:54Z | 2019-09-05T17:11:04Z |
REGR: Fix to_csv with IntervalIndex | diff --git a/doc/source/whatsnew/v0.25.2.rst b/doc/source/whatsnew/v0.25.2.rst
index 6974c7521a237..8d8a39139cf84 100644
--- a/doc/source/whatsnew/v0.25.2.rst
+++ b/doc/source/whatsnew/v0.25.2.rst
@@ -62,7 +62,7 @@ Missing
I/O
^^^
--
+- Regression in :meth:`~DataFrame.to_csv` where writing a :class:`Series` or :cla... | - [X] closes #28210
- [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/28229 | 2019-08-30T00:25:14Z | 2019-08-30T14:32:28Z | 2019-08-30T14:32:27Z | 2019-08-30T17:15:32Z |
PERF: lazify pytz seqToRE call, trims 35ms from import | diff --git a/pandas/_libs/tslibs/strptime.pyx b/pandas/_libs/tslibs/strptime.pyx
index d93858cff5e05..fbda5f178e164 100644
--- a/pandas/_libs/tslibs/strptime.pyx
+++ b/pandas/_libs/tslibs/strptime.pyx
@@ -341,7 +341,8 @@ def array_strptime(object[:] values, object fmt,
return result, result_timezone.base
-"""_... | Shaves on the order of 5% off of import time.
Unrelated docstring fixups, improve typing on parse_timezone_directive and _calc_julian_from_V.
The important thing here is setting the "Z" key dynamically in `__getitem__` instead of in `__init__` (since an instance is created in the module namespace at importt) | https://api.github.com/repos/pandas-dev/pandas/pulls/28228 | 2019-08-29T23:35:37Z | 2019-08-30T16:38:40Z | 2019-08-30T16:38:40Z | 2019-08-30T17:10:07Z |
PERF: trim import time ~5% | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index d9369b916fe4d..f839d86318e2e 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -203,10 +203,14 @@ if [[ -z "$CHECK" || "$CHECK" == "code" ]]; then
import sys
import pandas
-blacklist = {'bs4', 'gcsfs', 'html5lib', 'ipython', 'jinja2', 'hypothesis',
+b... | by avoiding/lazifying expensive stdlib imports.
Exact timings are tough because repeated runs of `python3 -X importtime -c "import pandas as pd"` are really high variance, but my general read is that this trims about 35 ms out of about 650 ms.
| https://api.github.com/repos/pandas-dev/pandas/pulls/28227 | 2019-08-29T23:16:02Z | 2019-09-05T15:52:22Z | 2019-09-05T15:52:22Z | 2019-09-05T16:02:56Z |
Don't fail when plotting Series/DataFrame with no row | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 050a26cc86d42..5bd28997d5bfe 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -168,6 +168,7 @@ Plotting
- Bug in :meth:`Series.plot` not able to plot boolean values (:issue:`23719`)
-
+- Bug in :met... | When Series or DataFrames was empty (no cells) after removing columns
without a suitable type (.select_dtypes), pandas was throwing a "no
numeric data to plot" exception.
This can happen:
1) either because there is no column with a suitable type;
2) or if there is no row.
Raising an exception in the first... | https://api.github.com/repos/pandas-dev/pandas/pulls/28226 | 2019-08-29T22:03:24Z | 2019-09-11T19:26:20Z | 2019-09-11T19:26:19Z | 2021-12-02T15:21:43Z |
CLN: minor typos MutliIndex -> MultiIndex | diff --git a/doc/source/whatsnew/v0.20.0.rst b/doc/source/whatsnew/v0.20.0.rst
index ef6108ae3ec90..62604dd3edd2d 100644
--- a/doc/source/whatsnew/v0.20.0.rst
+++ b/doc/source/whatsnew/v0.20.0.rst
@@ -495,7 +495,7 @@ Other enhancements
- :func:`pandas.util.hash_pandas_object` has gained the ability to hash a ``MultiIn... | https://api.github.com/repos/pandas-dev/pandas/pulls/28223 | 2019-08-29T18:42:15Z | 2019-08-29T19:28:55Z | 2019-08-29T19:28:55Z | 2019-08-30T10:34:59Z | |
Fix read of py27 pytables tz attribute, gh#26443 | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 050a26cc86d42..c146b2782b028 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -97,6 +97,7 @@ Datetimelike
^^^^^^^^^^^^
- Bug in :meth:`Series.__setitem__` incorrectly casting ``np.timedelta64("NaT")``... | When created by python 2.7, the "tz" attribute will be created with CSET
H5T_CSET_ASCII instead of H5T_CSET_UTF8, therefore it is read as bytes
when string is expected.
- [ X] closes #26443
- [ X] tests added / passed
- [ X] passes `black pandas`
- [ X] passes `git diff upstream/master -u -- "*.py" | flake8 --d... | https://api.github.com/repos/pandas-dev/pandas/pulls/28221 | 2019-08-29T14:50:35Z | 2019-08-30T17:08:33Z | 2019-08-30T17:08:33Z | 2019-08-30T17:08:34Z |
DOC: Update index parameter in pandas to_parquet | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 3d1a39a86c784..75e57c2a4447f 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2150,8 +2150,12 @@ def to_parquet(
Name of the compression to use. Use ``None`` for no compression.
index : bool, default None
I... | - [ ] closes #xxxx (reference: https://github.com/python-sprints/pandas-mentoring/issues/156)
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
The documentation ([https://dev.pandas.io/reference/api/pandas.DataFrame.t... | https://api.github.com/repos/pandas-dev/pandas/pulls/28217 | 2019-08-29T12:52:00Z | 2019-09-16T11:50:20Z | 2019-09-16T11:50:20Z | 2019-09-16T12:45:17Z |
REGR: <th> tags for notebook display closes #28204 | diff --git a/doc/source/whatsnew/v0.25.2.rst b/doc/source/whatsnew/v0.25.2.rst
index 8d8a39139cf84..1cdf213d81a74 100644
--- a/doc/source/whatsnew/v0.25.2.rst
+++ b/doc/source/whatsnew/v0.25.2.rst
@@ -62,6 +62,7 @@ Missing
I/O
^^^
+- Fix regression in notebook display where <th> tags not used for :attr:`DataFrame.i... | - [ ] closes #28204
- [ ] 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/28216 | 2019-08-29T11:04:53Z | 2019-08-30T17:06:50Z | 2019-08-30T17:06:50Z | 2019-08-30T23:40:27Z |
Add function to clean up column names with special characters | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index b9cc1dad53674..014bd22aa2dab 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -1016,6 +1016,7 @@ Other
- Bug in :meth:`Series.diff` where a boolean series would incorrectly raise a ``TypeError`` (:issu... | Changed the backtick quoting functions so that you can also use backtick quoting to use invalid Python identifiers like ones that start with a digit, start with a number, or are separated by operators instead of spaces.
- [x] closes #27017
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git ... | https://api.github.com/repos/pandas-dev/pandas/pulls/28215 | 2019-08-29T10:25:38Z | 2020-01-04T19:07:05Z | 2020-01-04T19:07:05Z | 2020-01-05T13:32:27Z |
BUG: Fix issue with apply on empty DataFrame | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 9840e4e94d28c..9aa374f92a9aa 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -206,8 +206,8 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
+- Bug in :meth:`DataFrame.apply` that caused incorrect ou... | Fixes a bug where the return value for certain functions was hard-coded as `np.nan` when operating on an empty `DataFrame`.
Before
```python
>>> import numpy as np
>>> import pandas as pd
>>> df = pd.DataFrame(columns=["a", "b", "c"])
>>> df.apply(np.sum)
a NaN
b NaN
c NaN
dtype: float64
>>> df.apply... | https://api.github.com/repos/pandas-dev/pandas/pulls/28213 | 2019-08-29T04:09:10Z | 2019-09-20T03:36:07Z | 2019-09-20T03:36:06Z | 2020-04-09T02:37:34Z |
STY: whitespace before class docstringsd | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 767b559445038..2d5ffb5e91392 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -47,7 +47,6 @@
class PandasObject(DirNamesMixin):
-
"""baseclass for various pandas objects"""
@property
diff --git a/pandas/core/computation/expr.py b... | all occurrences of `'class.*:\n\n( )+"""'`
@datapythonista would it make sense to add this to the checks or docstring validation? | https://api.github.com/repos/pandas-dev/pandas/pulls/28209 | 2019-08-29T02:20:39Z | 2019-08-29T12:17:04Z | 2019-08-29T12:17:04Z | 2019-08-29T13:57:58Z |
CLN: avoid catching Exception in _choose_path | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 7d6690a0dfa5a..cb05d56216aec 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -646,20 +646,21 @@ def _choose_path(self, fast_path, slow_path, group):
# if we make it here, test if we can use th... | - [ ] 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/28205 | 2019-08-28T22:06:33Z | 2019-09-02T21:23:19Z | 2019-09-02T21:23:19Z | 2019-09-02T22:54:10Z |
CLN: catch less inside try/except | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index f95685c337969..c892c1cf1b8a3 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -296,8 +296,6 @@ cdef class SeriesBinGrouper:
islider.advance(group_size)
vslider.advance(group_size)
- ... | - [ ] 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/28203 | 2019-08-28T19:48:11Z | 2019-08-30T18:43:48Z | 2019-08-30T18:43:48Z | 2019-08-30T21:20:16Z |
CLN: Catch more specific exception in groupby.ops | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 1a3f0da3cf92b..40517eefe4d5d 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -212,9 +212,12 @@ def apply(self, f, data, axis=0):
# This Exception is also raised if `f` triggers an exception
... | Lots of these to whittle down. | https://api.github.com/repos/pandas-dev/pandas/pulls/28198 | 2019-08-28T18:16:12Z | 2019-09-07T19:43:43Z | 2019-09-07T19:43:43Z | 2019-09-07T21:25:30Z |
Solving GL01,GL02 in pandas.Interval and a few mentioned in the comments | diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index 021ff5fb46276..6b0081c6a2ff5 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -331,7 +331,8 @@ def __contains__(self, key):
>>> idx.to_tuples()
Index([(0.0, 1.0), (nan, nan), (2.0,... | - [1] closes #28196
- [0] tests added / passed
- [0] passes `black pandas`
- [0] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [0] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/28197 | 2019-08-28T17:33:52Z | 2019-08-28T20:34:57Z | 2019-08-28T20:34:56Z | 2019-08-28T20:35:01Z |
DOC: Fix docs on merging categoricals. | diff --git a/doc/source/user_guide/categorical.rst b/doc/source/user_guide/categorical.rst
index 8ca96ba0daa5e..5443f24161f67 100644
--- a/doc/source/user_guide/categorical.rst
+++ b/doc/source/user_guide/categorical.rst
@@ -797,37 +797,52 @@ Assigning a ``Categorical`` to parts of a column of other types will use the ... | Fixes #28166.
Updated docs about merging categorical to reflect current behavior. | https://api.github.com/repos/pandas-dev/pandas/pulls/28185 | 2019-08-28T07:35:14Z | 2019-11-08T16:47:38Z | 2019-11-08T16:47:37Z | 2019-11-08T16:47:44Z |
REF: import _libs.reduction as libreduction | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 5c8599dbb054b..b96b3c7572031 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -3,7 +3,7 @@
import numpy as np
-from pandas._libs import reduction
+from pandas._libs import reduction as libreduction
from pandas.util._decorators import ca... | Make it easier to grep for the places where it is used. Broken off from a WIP branch. | https://api.github.com/repos/pandas-dev/pandas/pulls/28184 | 2019-08-28T01:11:12Z | 2019-08-30T14:28:37Z | 2019-08-30T14:28:37Z | 2019-08-30T14:58:22Z |
BUG: to_html() with formatters=<list> and max_cols fixed | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 58918f2d8c40e..7c02a6e72f0cb 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -83,6 +83,7 @@ Performance improvements
Bug fixes
~~~~~~~~~
+- Bug in :meth:`DataFrame.to_html` when using ``formatters=... | - [x] closes #25955
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
@hugoecarl
@guipleite
| https://api.github.com/repos/pandas-dev/pandas/pulls/28183 | 2019-08-27T22:50:18Z | 2019-09-16T20:23:24Z | 2019-09-16T20:23:24Z | 2019-10-19T01:22:31Z |
Example for adding a calculated column in SQL and Pandas | diff --git a/doc/source/getting_started/comparison/comparison_with_sql.rst b/doc/source/getting_started/comparison/comparison_with_sql.rst
index 366fdd546f58b..6a03c06de3699 100644
--- a/doc/source/getting_started/comparison/comparison_with_sql.rst
+++ b/doc/source/getting_started/comparison/comparison_with_sql.rst
@@ ... | - [ ] closes https://github.com/pandas-dev/pandas/issues/28162
- [ ] 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/28182 | 2019-08-27T21:24:23Z | 2019-08-29T12:31:32Z | 2019-08-29T12:31:32Z | 2019-08-29T12:31:38Z |
ENH: Enable read_csv interpret 'Infinity' as floating point value #10065 | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 7a10447e3ad40..e5f46103e0f04 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -161,7 +161,7 @@ I/O
- :meth:`read_csv` now accepts binary mode file buffers when using the Python csv engine (:issue:`23... |
- [x] closes #10065
- [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/28181 | 2019-08-27T18:53:33Z | 2019-09-02T23:52:10Z | 2019-09-02T23:52:10Z | 2019-09-02T23:52:21Z |
DOC: Add missing public plotting functions to the docs | diff --git a/doc/source/reference/plotting.rst b/doc/source/reference/plotting.rst
index 7615e1d20f5e2..95657dfa5fde5 100644
--- a/doc/source/reference/plotting.rst
+++ b/doc/source/reference/plotting.rst
@@ -13,10 +13,14 @@ The following functions are contained in the `pandas.plotting` module.
:toctree: api/
... | Some plotting public functions are missing from the documentation.
As proposed in #28177 I think those should be moved out of pandas or deprecated, but I guess it's worth having them documented as the rest of similar functions until that happens.
| https://api.github.com/repos/pandas-dev/pandas/pulls/28179 | 2019-08-27T16:12:15Z | 2019-09-03T11:47:36Z | 2019-09-03T11:47:36Z | 2019-09-03T11:47:38Z |
TYPING: change to FrameOrSeries Alias in pandas._typing | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 837a7a89e0b83..37a5d7945955d 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -11,9 +11,9 @@
from pandas.core.arrays.base import ExtensionArray # noqa: F401
from pandas.core.dtypes.dtypes import ExtensionDtype # noqa: F401
from pandas.co... | xref https://github.com/pandas-dev/pandas/pull/27646#pullrequestreview-279692079
cc @WillAyd | https://api.github.com/repos/pandas-dev/pandas/pulls/28173 | 2019-08-27T12:50:17Z | 2019-08-27T21:50:23Z | 2019-08-27T21:50:22Z | 2019-08-28T11:34:26Z |
BUG: fix custom xticks in bar() plotting function | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index b02769322e013..674e469c3b619 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -262,6 +262,7 @@ Plotting
- Bug in :meth:`DataFrame.plot` when ``kind='box'`` and data contains datetime or timedelta data.... | - [x] closes #14119
- [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/28172 | 2019-08-27T12:48:38Z | 2019-09-23T16:34:56Z | 2019-09-23T16:34:55Z | 2019-09-23T16:35:00Z |
ENH: implement TimedeltaArray/TimedeltaIIndex sum, median, std | diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py
index 3609c68a26c0f..6c9462ff4fa4d 100644
--- a/pandas/core/arrays/timedeltas.py
+++ b/pandas/core/arrays/timedeltas.py
@@ -14,6 +14,7 @@
precision_from_unit,
)
import pandas.compat as compat
+from pandas.compat.numpy import functio... | The signatures match those in PandasArray.
- [x] closes #25335 | https://api.github.com/repos/pandas-dev/pandas/pulls/28165 | 2019-08-27T03:21:29Z | 2019-10-08T12:43:11Z | 2019-10-08T12:43:11Z | 2019-10-10T22:46:33Z |
Validate plot backend when setting. | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 3b6288146bdf2..6fe0b6a671222 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -172,6 +172,7 @@ Plotting
- Bug in :meth:`DataFrame.plot` producing incorrect legend markers when plotting multiple series ... | ```python
In [1]: import pandas as pd
In [2]: import sys
In [3]: import types
In [4]: module = types.ModuleType("foo")
In [5]: sys.modules['foo'] = module
In [6]: pd.set_option('plotting.backend', 'foo')
---------------------------------------------------------------------------
ValueError ... | https://api.github.com/repos/pandas-dev/pandas/pulls/28164 | 2019-08-27T02:40:09Z | 2019-09-03T19:01:09Z | 2019-09-03T19:01:09Z | 2019-09-03T19:01:13Z |
BUG: fix+test Timestamp with int array | diff --git a/pandas/_libs/tslibs/c_timestamp.pyx b/pandas/_libs/tslibs/c_timestamp.pyx
index 906dabba09486..70b7fd7f1e9ee 100644
--- a/pandas/_libs/tslibs/c_timestamp.pyx
+++ b/pandas/_libs/tslibs/c_timestamp.pyx
@@ -251,6 +251,14 @@ cdef class _Timestamp(datetime):
result = result.normalize()
... | Preliminary 2/3 for fixing #28080. | https://api.github.com/repos/pandas-dev/pandas/pulls/28161 | 2019-08-27T00:41:02Z | 2019-09-02T21:17:44Z | 2019-09-02T21:17:44Z | 2019-09-02T22:54:36Z |
Backport PR #28113 on branch 0.25.x (BUG: Fix groupby quantile array) | diff --git a/doc/source/whatsnew/v0.25.2.rst b/doc/source/whatsnew/v0.25.2.rst
index 403c02c3ff129..6974c7521a237 100644
--- a/doc/source/whatsnew/v0.25.2.rst
+++ b/doc/source/whatsnew/v0.25.2.rst
@@ -76,8 +76,7 @@ Plotting
Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
--
--
+- Bug incorrectly raising an ``Inde... | Backport PR #28113: BUG: Fix groupby quantile array | https://api.github.com/repos/pandas-dev/pandas/pulls/28160 | 2019-08-26T23:11:16Z | 2019-08-27T01:04:38Z | 2019-08-27T01:04:38Z | 2019-08-27T01:04:38Z |
CLN: Use ABC classes for isinstance checks, remove unnecessary imports | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 9da7999724a18..1ac084e769f5d 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -86,12 +86,7 @@
from pandas.core.arrays.datetimelike import DatetimeLikeArrayMixin as DatetimeLikeArray
from pandas.core.arrays.sparse import SparseFrameAccessor
... | Per #27353 changed ``isinstance`` checks listed in the @WillAyd script to use ABCs where it enabled removal of imports only.
Note there may be additional files which can be cleaned as the script does not parse multi-line statements.
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [... | https://api.github.com/repos/pandas-dev/pandas/pulls/28158 | 2019-08-26T22:44:15Z | 2019-08-27T21:39:04Z | 2019-08-27T21:39:04Z | 2019-08-27T21:39:04Z |
CLN: have Timestamp return NotImplemented | diff --git a/pandas/_libs/tslibs/c_timestamp.pyx b/pandas/_libs/tslibs/c_timestamp.pyx
index 906dabba09486..10ed2588deaca 100644
--- a/pandas/_libs/tslibs/c_timestamp.pyx
+++ b/pandas/_libs/tslibs/c_timestamp.pyx
@@ -269,15 +269,8 @@ cdef class _Timestamp(datetime):
return self + neg_other
typ =... | broken off from a branch fixing #28080. | https://api.github.com/repos/pandas-dev/pandas/pulls/28157 | 2019-08-26T22:34:53Z | 2019-09-02T21:02:10Z | 2019-09-02T21:02:10Z | 2019-09-02T22:55:18Z |
DOC: whatsnew for 28099 | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 2bfc09e52c68b..7fe358d3820f2 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -76,6 +76,7 @@ Performance improvements
- Performance improvement in indexing with a non-unique :class:`IntervalIndex` (:is... | https://api.github.com/repos/pandas-dev/pandas/pulls/28154 | 2019-08-26T20:16:59Z | 2019-08-26T20:56:58Z | 2019-08-26T20:56:58Z | 2019-08-26T20:56:58Z | |
PERF: Speed up Spearman calculation | diff --git a/asv_bench/benchmarks/stat_ops.py b/asv_bench/benchmarks/stat_ops.py
index 6032bee41958e..ed5ebfa61594e 100644
--- a/asv_bench/benchmarks/stat_ops.py
+++ b/asv_bench/benchmarks/stat_ops.py
@@ -113,12 +113,23 @@ def setup(self, method, use_bottleneck):
nanops._USE_BOTTLENECK = use_bottleneck
... | Saves off ranks for later reuse once they're calculated during the computation of `DataFrame.corr(method="spearman")` so as to speed up the calculation.
~~This PR ranks data outside the nested loop in `nancorr_spearman` so as to speed up the calculation~~ (closes #28139). The performance benchmarks show a nice impr... | https://api.github.com/repos/pandas-dev/pandas/pulls/28151 | 2019-08-26T14:42:49Z | 2019-09-07T17:59:26Z | 2019-09-07T17:59:26Z | 2019-09-08T01:20:18Z |
DOC: Set 1.0.0 in index.rst | diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template
index b57ce83cfc33c..f5669626aa2b3 100644
--- a/doc/source/index.rst.template
+++ b/doc/source/index.rst.template
@@ -39,7 +39,7 @@ See the :ref:`overview` for more detail about what's in the library.
:hidden:
{% endif %}
{% if not single... | https://api.github.com/repos/pandas-dev/pandas/pulls/28149 | 2019-08-26T14:30:05Z | 2019-08-26T22:49:09Z | 2019-08-26T22:49:09Z | 2019-08-26T22:49:09Z | |
DOC: Set 0.25.2 in index.rst | diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template
index b57ce83cfc33c..09d18d6f96197 100644
--- a/doc/source/index.rst.template
+++ b/doc/source/index.rst.template
@@ -39,7 +39,7 @@ See the :ref:`overview` for more detail about what's in the library.
:hidden:
{% endif %}
{% if not single... | Forgot this for 0.25.1 | https://api.github.com/repos/pandas-dev/pandas/pulls/28148 | 2019-08-26T14:28:40Z | 2019-08-26T22:49:23Z | 2019-08-26T22:49:23Z | 2019-08-26T23:11:53Z |
Backport PR #28101 on branch 0.25.x (COMPAT: implement visit_Constant for 3.8 compat) | diff --git a/doc/source/whatsnew/v0.25.2.rst b/doc/source/whatsnew/v0.25.2.rst
index 76473405374e8..403c02c3ff129 100644
--- a/doc/source/whatsnew/v0.25.2.rst
+++ b/doc/source/whatsnew/v0.25.2.rst
@@ -99,7 +99,7 @@ Sparse
Other
^^^^^
--
+- Compatibility with Python 3.8 in :meth:`DataFrame.query` (:issue:`27261`)
-... | Backport PR #28101: COMPAT: implement visit_Constant for 3.8 compat | https://api.github.com/repos/pandas-dev/pandas/pulls/28146 | 2019-08-26T14:23:10Z | 2019-08-26T17:09:25Z | 2019-08-26T17:09:25Z | 2019-08-26T17:09:25Z |
Run clang-format on objToJSON | diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c
index de336fb3aa1dc..4b612bb033761 100644
--- a/pandas/_libs/src/ujson/python/objToJSON.c
+++ b/pandas/_libs/src/ujson/python/objToJSON.c
@@ -16,18 +16,19 @@ derived from this software without specific prior written permi... | POC for #28143
@TomAugspurger may have interest | https://api.github.com/repos/pandas-dev/pandas/pulls/28144 | 2019-08-25T22:36:06Z | 2019-08-26T17:54:00Z | 2019-08-26T17:54:00Z | 2019-08-26T17:54:04Z |
TYPING: --check-untyped-defs for Index.__new__ | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 415255cdbad06..d81b7115fd4a8 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -10,6 +10,7 @@
import pandas._libs.join as libjoin
from pandas._libs.lib import is_datetime_array
from pandas._libs.tslibs import Out... | xref #27568
```
pandas\core\indexes\base.py:335: error: Incompatible types in assignment (expression has type "TimedeltaIndex", variable has type "DatetimeIndex")
pandas\core\indexes\base.py:338: error: Incompatible types in assignment (expression has type "TimedeltaIndex", variable has type "DatetimeIndex")
pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/28141 | 2019-08-25T21:03:09Z | 2019-08-26T14:26:26Z | 2019-08-26T14:26:25Z | 2019-08-27T09:30:24Z |
TYPING: --disallow-any-expr for HTMLFormatter.__init__ | diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py
index 61af935bd8227..8ff4b9bda0430 100644
--- a/pandas/io/formats/format.py
+++ b/pandas/io/formats/format.py
@@ -549,7 +549,8 @@ def __init__(
decimal: str = ".",
table_id: Optional[str] = None,
render_links: bool = False... | ```
pandas\io\formats\html.py:44: error: Expression type contains "Any" (has type "Union[str, List[Any], Tuple[Any, ...], None]")
pandas\io\formats\html.py:49: error: Expression type contains "Any" (has type "Dict[str, Any]")
pandas\io\formats\html.py:49: error: Expression has type "Any"
pandas\io\formats\html.py:5... | https://api.github.com/repos/pandas-dev/pandas/pulls/28140 | 2019-08-25T17:53:23Z | 2019-08-26T23:16:14Z | 2019-08-26T23:16:14Z | 2019-08-27T09:28:19Z |
Remove outdated docstring that no longer applies | diff --git a/pandas/compat/pickle_compat.py b/pandas/compat/pickle_compat.py
index bca33513b0069..87240a9f986c3 100644
--- a/pandas/compat/pickle_compat.py
+++ b/pandas/compat/pickle_compat.py
@@ -196,10 +196,6 @@ def load_newobj_ex(self):
def load(fh, encoding=None, is_verbose=False):
"""load a pickle, with a pr... | - [X] closes #28136
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
For a change this minor that affects only a comment, not sure if a `whatsnew entry` update is needed? | https://api.github.com/repos/pandas-dev/pandas/pulls/28137 | 2019-08-25T13:09:35Z | 2019-08-25T15:56:16Z | 2019-08-25T15:56:16Z | 2019-08-25T15:58:05Z |
TYPING: add stubs for _packer and _unpacker | diff --git a/pandas/io/msgpack/_packer.pyi b/pandas/io/msgpack/_packer.pyi
new file mode 100644
index 0000000000000..e95a1622c5615
--- /dev/null
+++ b/pandas/io/msgpack/_packer.pyi
@@ -0,0 +1,22 @@
+# flake8: noqa
+
+class Packer:
+ def __cinit__(self): ...
+ def __init__(
+ self,
+ default=...,
+ ... | xref #28133
```
pandas\io\packers.py:800: error: Base type _Packer becomes "Any" due to an unfollowed import
pandas\io\packers.py:820: error: Base type _Unpacker becomes "Any" due to an unfollowed import
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/28135 | 2019-08-25T12:10:05Z | 2019-08-26T17:10:27Z | 2019-08-26T17:10:27Z | 2019-08-27T09:29:13Z |
TYPING: _pytest.mark.structures.MarkDecorator -> Callable | diff --git a/pandas/util/_test_decorators.py b/pandas/util/_test_decorators.py
index 3de4e5d66d577..627757aaa3741 100644
--- a/pandas/util/_test_decorators.py
+++ b/pandas/util/_test_decorators.py
@@ -25,9 +25,8 @@ def test_foo():
"""
from distutils.version import LooseVersion
import locale
-from typing import Optio... | xref #28133
```
pandas\util\_test_decorators.py:106: error: Return type becomes "Any" due to an unfollowed import
pandas\util\_test_decorators.py:120: error: Return type becomes "Any" due to an unfollowed import
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/28134 | 2019-08-25T11:19:20Z | 2019-08-25T15:57:59Z | 2019-08-25T15:57:59Z | 2019-08-25T18:09:00Z |
Fix slicer assignment bug | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 8e25857e5ad69..ce0910ab9498e 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -140,7 +140,7 @@ Interval
Indexing
^^^^^^^^
--
+- Bug in assignment using a reverse slicer (:issue:`26939`)
-
Missin... | - [x] closes #26939
- [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/28131 | 2019-08-25T03:07:38Z | 2019-08-28T23:01:47Z | 2019-08-28T23:01:47Z | 2019-08-29T11:57:25Z |
Add Indent Support in to_json | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index c78e27f098f13..c379d1a2a160d 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -35,7 +35,7 @@ Other enhancements
when using the ``pyarrow`` engine. It is currently not yet supported when converting ba... | - [X] closes #12004
- [X] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
After some of the recent refactor this should be relatively easy to do after vendoring a few updates | https://api.github.com/repos/pandas-dev/pandas/pulls/28130 | 2019-08-24T22:33:50Z | 2019-09-18T15:10:07Z | 2019-09-18T15:10:07Z | 2020-01-28T13:12:43Z |
TYPING: check-untyped-defs for util._decorators | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index ea2bd22cccc3d..7d6690a0dfa5a 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -833,45 +833,45 @@ def apply(self, func, *args, **kwargs):
axis="",
)
@Appender(_shared_docs["aggregate"]... | - [X] closes #27404
xref #27568
```
$ mypy pandas/util/_decorators.py --check-untyped-defs --follow-imports skip
pandas\util\_decorators.py:181: error: Item "function" of "Union[Dict[Any, Any], Callable[[Any], Any]]" has no attribute "get"
pandas\util\_decorators.py:183: error: "Dict[Any, Any]" not callable
pa... | https://api.github.com/repos/pandas-dev/pandas/pulls/28128 | 2019-08-24T19:07:08Z | 2019-08-27T21:32:41Z | 2019-08-27T21:32:40Z | 2019-08-28T11:35:15Z |
DOC: Fix RangeIndex and other docstrings for missing period in summary | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index a895da6184eeb..5929a8d51fe43 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -471,7 +471,7 @@ def ordered(self) -> Ordered:
@property
def dtype(self) -> CategoricalDtype:
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
@datapythonista
I added the period to the following cases:
pandas.Categorical.dtype: Summary does not end with a period
pandas.merge_ordered: S... | https://api.github.com/repos/pandas-dev/pandas/pulls/28123 | 2019-08-24T01:12:35Z | 2019-08-26T02:19:38Z | 2019-08-26T02:19:38Z | 2019-08-26T09:40:22Z |
CLN: change regex try/except to checks | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index e24e6e088b92a..f0ee56f403325 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -2830,9 +2830,9 @@ def _replace_single(
regex = regex_re or to_rep_re
# try to get the pattern attri... | https://api.github.com/repos/pandas-dev/pandas/pulls/28121 | 2019-08-23T20:43:55Z | 2019-08-25T15:54:41Z | 2019-08-25T15:54:41Z | 2019-08-25T16:01:38Z | |
BUG: Fixed PandasArray.__setitem__ with str | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 8b2b3a09f8c87..bb8c8969693a9 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -240,7 +240,7 @@ Sparse
ExtensionArray
^^^^^^^^^^^^^^
--
+- Bug in :class:`arrays.PandasArray` when setting a scalar str... | Closes https://github.com/pandas-dev/pandas/issues/28118
Closes https://github.com/pandas-dev/pandas/issues/28150 | https://api.github.com/repos/pandas-dev/pandas/pulls/28119 | 2019-08-23T19:08:53Z | 2019-09-17T20:21:25Z | 2019-09-17T20:21:24Z | 2019-09-17T20:21:29Z |
BUG: Fix groupby quantile array | diff --git a/doc/source/whatsnew/v0.25.2.rst b/doc/source/whatsnew/v0.25.2.rst
index 76473405374e8..fdd354c2e915a 100644
--- a/doc/source/whatsnew/v0.25.2.rst
+++ b/doc/source/whatsnew/v0.25.2.rst
@@ -76,8 +76,7 @@ Plotting
Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
--
--
+- Bug incorrectly raising an ``Inde... | xref https://github.com/pandas-dev/pandas/pull/28085#issuecomment-524066959
This is a regression in 0.25.2. It was partially fixed in #28085, but there was an issue with the first fix. | https://api.github.com/repos/pandas-dev/pandas/pulls/28113 | 2019-08-23T13:43:55Z | 2019-08-26T23:11:06Z | 2019-08-26T23:11:06Z | 2019-08-26T23:11:06Z |
Backport PR #28111 on branch 0.25.x (DOC: Start 0.25.2) | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 0509a370d7866..6cfda147da312 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -16,6 +16,7 @@ Version 0.25
.. toctree::
:maxdepth: 2
+ v0.25.2
v0.25.1
v0.25.0
diff --git a/doc/source/whats... | Backport PR #28111: DOC: Start 0.25.2 | https://api.github.com/repos/pandas-dev/pandas/pulls/28112 | 2019-08-23T13:37:20Z | 2019-08-25T18:09:58Z | 2019-08-25T18:09:57Z | 2019-08-25T18:09:59Z |
DOC: Start 0.25.2 | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index aeab2cf5809e7..fe80cc8bb959a 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -24,6 +24,7 @@ Version 0.25
.. toctree::
:maxdepth: 2
+ v0.25.2
v0.25.1
v0.25.0
diff --git a/doc/source/whats... | https://api.github.com/repos/pandas-dev/pandas/pulls/28111 | 2019-08-23T12:57:46Z | 2019-08-23T13:36:20Z | 2019-08-23T13:36:20Z | 2019-08-23T13:36:23Z | |
BUG: SparseDataFrame op incorrectly casting to float | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 7a10447e3ad40..76aadd2c97b67 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -187,7 +187,7 @@ Reshaping
Sparse
^^^^^^
-
+- Bug in :class:`SparseDataFrame` arithmetic operations incorrectly casting ... | - [ ] closes #xxxx
- [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/28107 | 2019-08-23T00:57:56Z | 2019-09-02T21:04:12Z | 2019-09-02T21:04:12Z | 2019-09-02T22:57:04Z |
DataFrameGroupby.boxplot fails when subplots=False | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 33e9bd0c2732a..3ce2bb0978385 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -507,6 +507,8 @@ Plotting
- Bug in :meth:`DataFrame.plot` was rotating xticklabels when ``subplots=True``, even if the x-ax... | - [x] closes #16748
- [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/28102 | 2019-08-22T20:37:07Z | 2020-11-08T03:03:11Z | 2020-11-08T03:03:11Z | 2020-11-08T03:03:16Z |
COMPAT: implement visit_Constant for 3.8 compat | diff --git a/doc/source/whatsnew/v0.25.2.rst b/doc/source/whatsnew/v0.25.2.rst
index 76473405374e8..403c02c3ff129 100644
--- a/doc/source/whatsnew/v0.25.2.rst
+++ b/doc/source/whatsnew/v0.25.2.rst
@@ -99,7 +99,7 @@ Sparse
Other
^^^^^
--
+- Compatibility with Python 3.8 in :meth:`DataFrame.query` (:issue:`27261`)
-... | Closes https://github.com/pandas-dev/pandas/issues/27261
xref https://bugs.python.org/issue32892
| https://api.github.com/repos/pandas-dev/pandas/pulls/28101 | 2019-08-22T19:49:26Z | 2019-08-26T14:22:31Z | 2019-08-26T14:22:31Z | 2019-08-26T14:22:35Z |
PERF: replace with list, closes #28084 | diff --git a/asv_bench/benchmarks/replace.py b/asv_bench/benchmarks/replace.py
index 6137e944e6b9e..f69ae15028525 100644
--- a/asv_bench/benchmarks/replace.py
+++ b/asv_bench/benchmarks/replace.py
@@ -36,6 +36,23 @@ def time_replace_series(self, inplace):
self.s.replace(self.to_rep, inplace=inplace)
+class... | - [x] closes #28084
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
based on the OP's example:
```
In [2]: df = pd.DataFrame({"A": 0, "B": 0}, index=range(4*10**7))
In [3]: %timeit df.replace([np.inf, -np.inf]... | https://api.github.com/repos/pandas-dev/pandas/pulls/28099 | 2019-08-22T18:59:55Z | 2019-08-26T20:14:07Z | 2019-08-26T20:14:07Z | 2019-08-26T20:35:21Z |
ENH: groupby missing data in index | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 8c1ce1195369d..1d33a1c1d5e58 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -374,6 +374,8 @@ Plotting
Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
+-
+- Bug in :meth:`DataFrame.groupby` with ... | - [x] closes #20519
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
`.groupby` intialize "grouper" by _get_grouper_for_level. Base on "code", "level_index" fills with non-NA value if there is NA value. Problem is if ... | https://api.github.com/repos/pandas-dev/pandas/pulls/28097 | 2019-08-22T17:34:29Z | 2019-10-25T16:34:52Z | 2019-10-25T16:34:52Z | 2019-10-27T10:23:18Z |
DOC: Fixes to docstrings formatting | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index ba1c516b9b444..90779baea32cb 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1875,7 +1875,7 @@ def __iter__(self):
# can we get a better explanation of this?
def keys(self):
"""
- Get the 'info axis' (see I... | - [ ] 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/28096 | 2019-08-22T17:12:54Z | 2019-08-25T20:11:01Z | 2019-08-25T20:11:01Z | 2019-08-25T20:11:07Z |
DOC: Make explicit in pandas IO doc the imports and options | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 1d49dbdee9c03..5e58494f3e1fc 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -3,15 +3,6 @@
.. currentmodule:: pandas
-{{ header }}
-
-.. ipython:: python
- :suppress:
-
- clipdf = pd.DataFrame({'A': [... | - [x] works on #28038
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] Removes code header from IO doc page.
- [x] Uses explicit imports in the IO doc page of user guide on first occurrence of requirement.
Reference @datapythonista - [149](https://github.com... | https://api.github.com/repos/pandas-dev/pandas/pulls/28089 | 2019-08-22T13:25:11Z | 2019-11-07T21:14:26Z | 2019-11-07T21:14:26Z | 2019-11-07T21:14:32Z |
Backport PR #27650 on branch 0.25.x (issue #27642 - timedelta merge asof with tolerance) | diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst
index 680d69a9862cd..33296045fa05c 100644
--- a/doc/source/whatsnew/v0.25.1.rst
+++ b/doc/source/whatsnew/v0.25.1.rst
@@ -95,6 +95,7 @@ Reshaping
^^^^^^^^^
- A ``KeyError`` is now raised if ``.unstack()`` is called on a :class:`Series` o... | Backport PR #27650: issue #27642 - timedelta merge asof with tolerance | https://api.github.com/repos/pandas-dev/pandas/pulls/28088 | 2019-08-22T13:10:13Z | 2019-08-22T14:29:29Z | 2019-08-22T14:29:29Z | 2019-08-22T14:29:30Z |
TST: share logical tests Series/DataFrame | diff --git a/pandas/tests/frame/test_operators.py b/pandas/tests/frame/test_operators.py
index 8cf66e2737249..28c1e2a24bc4d 100644
--- a/pandas/tests/frame/test_operators.py
+++ b/pandas/tests/frame/test_operators.py
@@ -244,39 +244,3 @@ def test_logical_with_nas(self):
result = d["a"].fillna(False, downcast=F... | - [ ] 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/37162 | 2020-10-16T16:13:11Z | 2020-10-16T17:17:45Z | 2020-10-16T17:17:45Z | 2020-10-16T17:58:08Z |
BUG: Series.loc[[]] with non-unique MultiIndex #13691 | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 9fc094330fb36..d68d3f9740131 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -400,6 +400,7 @@ Indexing
- Bug in :meth:`DataFrame.sort_index` where parameter ascending passed as a list on a single leve... | - [x] closes #13691
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Broken off from #37150 | https://api.github.com/repos/pandas-dev/pandas/pulls/37161 | 2020-10-16T15:31:10Z | 2020-10-16T19:17:12Z | 2020-10-16T19:17:11Z | 2020-10-16T20:35:36Z |
BUG: Fix parsing of ISO8601 durations | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 9fc094330fb36..e23871a925570 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -348,8 +348,7 @@ Datetimelike
Timedelta
^^^^^^^^^
- Bug in :class:`TimedeltaIndex`, :class:`Series`, and :class:`DataFram... | This PR fixes the following behavior:
- Adds "W" as a valid weeks designator
- Fixes parsing of durations with empty periods (e.g. "PT10M")
- Fixes partial parsing of durations (e.g. "P1DT1H")
Fixes #29773.
Fixes #36204.
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] pass... | https://api.github.com/repos/pandas-dev/pandas/pulls/37159 | 2020-10-16T11:29:05Z | 2020-10-17T00:07:08Z | 2020-10-17T00:07:07Z | 2020-10-17T06:34:22Z |
CLN/REF: Refactor min_periods calculation in rolling | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 9fc094330fb36..dac75349ccff5 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -462,6 +462,7 @@ Groupby/resample/rolling
- Bug in :meth:`RollingGroupby.count` where a ``ValueError`` was raised when spec... | - [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/37156 | 2020-10-16T07:30:53Z | 2020-10-16T19:09:58Z | 2020-10-16T19:09:58Z | 2020-10-16T19:20:30Z |
REF: avoid access to _mgr.blocks -> _mgr._is_single_block | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index f532060f68fc6..784e8877ef128 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5474,7 +5474,7 @@ def _consolidate(self):
@property
def _is_mixed_type(self) -> bool_t:
- if len(self._mgr.blocks) == 1:
+ if sel... | @jbrockmendel a small follow-up on https://github.com/pandas-dev/pandas/pull/36873. It keeps the same spirit of that PR (I think), but just replacing the access of `len(self._mgr.blocks)` with an existing attribute on the manager (could also remove the leading underscore on the attribute).
(this makes it easier to ov... | https://api.github.com/repos/pandas-dev/pandas/pulls/37155 | 2020-10-16T07:09:09Z | 2020-10-16T17:27:33Z | 2020-10-16T17:27:32Z | 2020-10-16T17:27:38Z |
TST: RollingGroupby(..., center=True, on=...) | diff --git a/pandas/tests/window/test_grouper.py b/pandas/tests/window/test_grouper.py
index 27dd6a1591317..5b25577602216 100644
--- a/pandas/tests/window/test_grouper.py
+++ b/pandas/tests/window/test_grouper.py
@@ -297,6 +297,41 @@ def test_groupby_rolling_center_center(self):
)
tm.assert_frame_equa... | - [x] closes #37141
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Didn't look like we had a test case that exactly covered this. | https://api.github.com/repos/pandas-dev/pandas/pulls/37154 | 2020-10-16T04:10:02Z | 2020-10-16T14:14:08Z | 2020-10-16T14:14:08Z | 2020-10-16T16:16:14Z |
BUG: RecursionError when selecting single column from IntervalIndex #26490 | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 875836bafd6ae..5b2ab4c4572e1 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -400,6 +400,7 @@ Indexing
- Bug in :meth:`DataFrame.sort_index` where parameter ascending passed as a list on a single leve... | - [x] closes #26490
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
#37150 is failing, this is the first of two orthogonal bugfixes in that PR | https://api.github.com/repos/pandas-dev/pandas/pulls/37152 | 2020-10-16T01:36:41Z | 2020-10-17T01:53:49Z | 2020-10-17T01:53:49Z | 2020-10-17T01:54:05Z |
BUG: GroupBy().fillna() performance regression | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index bda3ab71d1a00..22f002e6cb79a 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -358,6 +358,26 @@ def time_category_size(self):
self.draws.groupby(self.cats).size()
+class FillNA:
+ de... | - [x] closes #36757
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
A performance regression was introduced with #30679 in handling grouping on a duplicate axis. The regression can be avoided by skipping the call to... | https://api.github.com/repos/pandas-dev/pandas/pulls/37149 | 2020-10-15T22:52:55Z | 2020-10-18T14:56:32Z | 2020-10-18T14:56:32Z | 2020-10-19T09:50:03Z |
BUG: DataFrame[td64].sum(skipna=False) | diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py
index 82cd54182a33d..64e5f78d961d1 100644
--- a/pandas/core/arrays/timedeltas.py
+++ b/pandas/core/arrays/timedeltas.py
@@ -381,15 +381,15 @@ def sum(
nv.validate_sum(
(), dict(dtype=dtype, out=out, keepdims=keepdims,... | - [x] closes #17235
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
The same underlying problem affects mean, so this fixes that too.
| https://api.github.com/repos/pandas-dev/pandas/pulls/37148 | 2020-10-15T20:53:27Z | 2020-10-24T02:47:51Z | 2020-10-24T02:47:50Z | 2020-10-24T03:08:28Z |
CLN: sync min versions | diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst
index 70d145c54e919..cd61f17220f22 100644
--- a/doc/source/getting_started/install.rst
+++ b/doc/source/getting_started/install.rst
@@ -262,7 +262,7 @@ BeautifulSoup4 4.6.0 HTML parser for read_html (see... | The minimum version of pytables and pytest was not synchronized. | https://api.github.com/repos/pandas-dev/pandas/pulls/37147 | 2020-10-15T20:49:08Z | 2020-10-16T01:18:30Z | 2020-10-16T01:18:30Z | 2020-10-21T00:29:38Z |
DOC: capitalize Python as proper noun | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 6af537dcd149a..67621cf585793 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -366,7 +366,7 @@ def ndim(self) -> int:
def item(self):
"""
- Return the first element of the underlying data as a python scalar.
+ Return... | - [ ] closes #xxxx
- [ ] 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/37146 | 2020-10-15T20:48:13Z | 2020-10-16T01:21:53Z | 2020-10-16T01:21:53Z | 2020-10-16T01:21:57Z |
BUG: Fix bug in quantile() for resample and groupby with Timedelta | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index b43ed2963577d..fb6a238218e9f 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -515,6 +515,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrameGroupBy.rolling` returned wrong values with timeaware wi... | - [x] closes #29485
- [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/37145 | 2020-10-15T20:38:45Z | 2020-10-31T18:57:02Z | 2020-10-31T18:57:02Z | 2020-10-31T21:26:00Z |
BLD: update build requirement for py39 #37135 | diff --git a/pyproject.toml b/pyproject.toml
index 8161e8ad752da..2b78147e9294d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,9 +6,10 @@ requires = [
"wheel",
"Cython>=0.29.21,<3", # Note: sync with setup.py
"numpy==1.16.5; python_version=='3.7' and platform_system!='AIX'",
- "numpy==1.17.3;... | - [x] closes #37135
| https://api.github.com/repos/pandas-dev/pandas/pulls/37144 | 2020-10-15T18:33:10Z | 2020-10-16T19:25:30Z | 2020-10-16T19:25:29Z | 2022-11-18T02:21:13Z |
DOC: Remove redundant table in Series docs | diff --git a/doc/source/reference/series.rst b/doc/source/reference/series.rst
index f1069e46b56cc..b4a72c030f7cb 100644
--- a/doc/source/reference/series.rst
+++ b/doc/source/reference/series.rst
@@ -22,10 +22,6 @@ Attributes
:toctree: api/
Series.index
-
-.. autosummary::
- :toctree: api/
-
Series.arr... | The attribute `Series.index` was separated in another table, which makes
the rendering of the documentation slightly inconsistent. This commit
consolidates the tables together to make the documentation consistent
and aligned.
**Live site** (https://pandas.pydata.org/docs/reference/series.html):
:
for k1, k2 in zip(key, value.columns):
self[k1] = value[k2]
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Working on refactoring the indexing setitem code so that we go down the same path regardless of consolidation status. This splits off a small piece ... | https://api.github.com/repos/pandas-dev/pandas/pulls/37142 | 2020-10-15T17:50:27Z | 2020-10-16T01:05:18Z | 2020-10-16T01:05:18Z | 2020-10-16T01:09:22Z |
BUG: algos.diff with datetimelike and NaT | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index c4723a5f064c7..da5ae97bb067b 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -1195,6 +1195,7 @@ ctypedef fused diff_t:
ctypedef fused out_t:
float32_t
float64_t
+ int64_t
@cython.boundscheck(False)
@@ -1204,11 +120... | - [ ] closes #xxxx
- [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/37140 | 2020-10-15T15:51:55Z | 2020-10-17T13:46:11Z | 2020-10-17T13:46:11Z | 2020-10-17T15:10:29Z |
Remove no-longer-necessary CI checks | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 784d2c9a411ab..c8718128e4cc8 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -180,14 +180,6 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
invgrep -r -E --include '*.py' "[[:space:]] pytest.raises" pandas/tests/
RET=$(($RET + $?)) ; e... | xrange is no longer valid in Python3, so this check is unnecessary.
`# -\*- coding: utf-8 -\*-"`, `class\s\S*\((object)?\):`, and `"super\(\w*, (self|cls)\)` are fixed by pyupgrade
closes #37133
| https://api.github.com/repos/pandas-dev/pandas/pulls/37138 | 2020-10-15T15:01:11Z | 2020-10-16T01:08:05Z | 2020-10-16T01:08:05Z | 2020-10-16T07:27:05Z |
TYP: use overload to refine return type of reset_index | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 539275c7ff617..3607fbea594c6 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -34,6 +34,7 @@
Type,
Union,
cast,
+ overload,
)
import warnings
@@ -155,6 +156,8 @@
import pandas.plotting
if TYPE_CHECKING:
+ from typ... | maybe alternative to #33519
with `from __future__ import annotations` on py3.7 the types in the function signature are not evaluated at run-time, so this shouldn't fail 🤞 | https://api.github.com/repos/pandas-dev/pandas/pulls/37137 | 2020-10-15T13:55:31Z | 2020-10-23T21:21:37Z | 2020-10-23T21:21:37Z | 2020-10-24T21:02:24Z |
CI move check incorrect sphinx directives to pre-commit | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1c6d36133f067..e6b021133dd90 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -53,6 +53,15 @@ repos:
types: [rst]
args: [--filename=*.rst]
additional_dependencies: [flake8-rst==0.7.0, flake8==3.7.9]
+ ... | Currently, the check (which uses `grep` with the return codes inverted) doesn't catch
```python
.. warning:
```
, while using `pygrep` from `pre-commit` (which is a Python implementation of `grep` with inverted return codes) does. I think this is because grep doesn't count the newline as a character
Advant... | https://api.github.com/repos/pandas-dev/pandas/pulls/37136 | 2020-10-15T13:17:33Z | 2020-10-16T01:23:04Z | 2020-10-16T01:23:03Z | 2020-10-16T07:26:27Z |
BUG: raise when doing arithmetic on DataFrame and list of iterables | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 339cda4db48fb..ecd6ebfabdb6e 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -371,6 +371,7 @@ Numeric
- Bug in :meth:`DataFrame.diff` with ``datetime64`` dtypes including ``NaT`` values failing to fil... | - [X] closes #36702
- [X] tests 1 added / 1 passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
## Problem
We currently allow doing arithmetic on a DataFrame, and, for example, a list of Series. The latter gets broadcast with `align_meth... | https://api.github.com/repos/pandas-dev/pandas/pulls/37132 | 2020-10-15T08:15:43Z | 2020-10-16T19:24:41Z | 2020-10-16T19:24:40Z | 2021-07-11T17:45:12Z |
TST: test for expanding window with min_periods GH25857 | diff --git a/pandas/tests/window/test_expanding.py b/pandas/tests/window/test_expanding.py
index b06a506281047..3dc1974685226 100644
--- a/pandas/tests/window/test_expanding.py
+++ b/pandas/tests/window/test_expanding.py
@@ -137,6 +137,14 @@ def test_expanding_count_default_min_periods_with_null_values(constructor):
... | - [x] closes #25857
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Hi @mroeschke, here's the new test - please let me know if it needs any changes. | https://api.github.com/repos/pandas-dev/pandas/pulls/37131 | 2020-10-15T07:43:15Z | 2020-10-16T01:16:23Z | 2020-10-16T01:16:23Z | 2020-10-16T09:08:24Z |
PERF: compare RangeIndex to equal RangeIndex | diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py
index 14098ddadb8e2..74ec892d5f8a0 100644
--- a/pandas/core/indexes/range.py
+++ b/pandas/core/indexes/range.py
@@ -811,6 +811,15 @@ def any(self, *args, **kwargs) -> bool:
# -----------------------------------------------------------------... | Fastpath for RangeIndexes with equal `_range` attribute.
Notice this works even if the RangeIndexes are not identical.
Example:
```python
>>> n = 100_000
>>> rng1 = pd.RangeIndex(n)
>>> rng2 = pd.RangeIndex(n)
>>> %timeit rng1 == rng2
374 µs ± 15.1 µs per loop # master
10.4 µs ± 157 ns per loop # this... | https://api.github.com/repos/pandas-dev/pandas/pulls/37130 | 2020-10-15T07:14:21Z | 2020-10-15T12:26:00Z | 2020-10-15T12:26:00Z | 2021-06-13T10:11:15Z |
ENH: DataFrame.to_parquet() returns bytes if path_or_buf not provided | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index e4d97168692b3..28c86015fb7b6 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -221,6 +221,7 @@ Other enhancements
- :meth:`Rolling.var()` and :meth:`Rolling.std()` use Kahan summation and Welfords Meth... | - [x] closes #37105
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Not sure if this is an API breaking change. Prior to this patch `path` was a required positional argument but it becomes optional here. It is now c... | https://api.github.com/repos/pandas-dev/pandas/pulls/37129 | 2020-10-15T05:35:54Z | 2020-10-21T19:14:04Z | 2020-10-21T19:14:04Z | 2020-10-21T19:14:15Z |
TYP: add Shape alias to pandas._typing | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 3e89cf24632e2..55a1c17b0aa53 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -15,6 +15,7 @@
Mapping,
Optional,
Sequence,
+ Tuple,
Type,
TypeVar,
Union,
@@ -93,6 +94,7 @@
Label = Optional[Hashable]
IndexLabel = Union[La... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
xref https://github.com/pandas-dev/pandas/pull/37024#discussion_r503488032
cc @simonjayhawkins | https://api.github.com/repos/pandas-dev/pandas/pulls/37128 | 2020-10-15T04:15:08Z | 2020-11-04T16:53:07Z | 2020-11-04T16:53:07Z | 2020-11-04T16:53:11Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.