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
Added a way to check if a numeric type cell is NaN
diff --git a/pandas/io/excel/_xlrd.py b/pandas/io/excel/_xlrd.py index be1b78eeb146e..0a04c0b540817 100644 --- a/pandas/io/excel/_xlrd.py +++ b/pandas/io/excel/_xlrd.py @@ -6,6 +6,7 @@ from pandas.io.excel._base import _BaseExcelReader +from pandas.core.dtypes.missing import isnull class _XlrdReader(_BaseExcelR...
- [ ] 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/28304
2019-09-05T21:32:05Z
2019-09-11T01:20:23Z
null
2019-09-11T01:20:23Z
BUG: make tz_localize operate on values rather than categories
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index fa1669b1f3343..a2a556f22790a 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -288,6 +288,9 @@ Categorical - :meth:`Categorical.searchsorted` and :meth:`CategoricalIndex.searchsorted` now work on unord...
- [x] closes #27952 - [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/28300
2019-09-05T17:28:44Z
2019-11-02T20:19:35Z
2019-11-02T20:19:35Z
2019-11-12T11:25:23Z
fix Rolling for multi-index and reversed index.
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 58892b316c940..a9cb32a80af9f 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -176,8 +176,9 @@ Plotting Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ -- - Bug in :meth:`DataFrame.rolling` not a...
Fix Rolling operation for level of multi-index and descending time index (that is monotonic, but decreasing). - [x] closes #19248 - [x] closes #15584 - [x] tests 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/28297
2019-09-05T14:26:07Z
2019-10-22T01:35:37Z
2019-10-22T01:35:37Z
2020-03-01T16:01:26Z
BUG: Merge on CategoricalIndex fails if left_index=True & right_index=True, but not if on={index} #28189
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index cde2a4279cf27..c95e7d20c1ab4 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -223,7 +223,7 @@ Categorical - Bug where :func:`merge` was unable to join on categorical and extension dtype columns (:issu...
- [x] closes #28189 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This modification resolves the error in issue #28189 but still not working as expected. It seems that there is a bug related with left-join, as you...
https://api.github.com/repos/pandas-dev/pandas/pulls/28296
2019-09-05T14:01:21Z
2019-12-17T17:42:54Z
null
2019-12-17T17:42:55Z
Fix inconsistent casting to bool
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index a94a4ccff0efe..60fa1bef01f3d 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -806,7 +806,13 @@ def na_op(x, y): return result fill_int = lambda x: x.fillna(0) - fill_bool = lambda x: x.fillna(Fa...
Series logical ops (`|`, `&`, `^`) have a bunch of inconsistencies. This partially addresses one of them, and does so in a way that makes the diff for the next one much more manageable than it would be without this.
https://api.github.com/repos/pandas-dev/pandas/pulls/28290
2019-09-05T04:02:35Z
2019-09-05T18:14:17Z
2019-09-05T18:14:17Z
2019-09-05T18:16:25Z
BUG: Series[timdelta64].var() should _not_ work
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 4007ecd5a9412..8703df9406f2b 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -303,6 +303,8 @@ Datetimelike - Bug in :class:`DataFrame` arithmetic operations when operating with a :class:`Series` with ...
- [x] closes #18880 - [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/28289
2019-09-04T22:41:18Z
2019-11-02T15:23:47Z
2019-11-02T15:23:47Z
2019-11-02T15:37:48Z
DOC: Fix PR06 errors in Series docstrings (#28253)
diff --git a/pandas/core/base.py b/pandas/core/base.py index 2d5ffb5e91392..910b05c47071d 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -1289,17 +1289,17 @@ def value_counts( Parameters ---------- - normalize : boolean, default False + normalize : bool, default False ...
First bit of work on #28253, fixes PR06 validation errors in Series docstrings. Mostly just converting boolean -> bool, string -> str, integer -> ; re-worded a little where necessary. - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Ran validate_docstrings.py and ...
https://api.github.com/repos/pandas-dev/pandas/pulls/28288
2019-09-04T21:33:19Z
2019-09-16T02:39:31Z
2019-09-16T02:39:31Z
2019-09-16T02:39:38Z
BUG: datetime64 - Timestamp incorrectly raising TypeError
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 2f72de25c579b..4508c7b08790f 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -98,6 +98,8 @@ Datetimelike - Bug in :meth:`Series.dt` property lookups when the underlying data is read-only (:issue:`2752...
- [ ] closes #xxxx - [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/28286
2019-09-04T16:51:55Z
2019-09-07T19:21:09Z
2019-09-07T19:21:09Z
2019-09-07T19:26:36Z
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
BUG: passing DataFrame to make_block silently raises
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index c0436e9389078..08bbd3940d4c2 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -30,6 +30,7 @@ ensure_int64, ensure_platform_int, is_bool, + is_categorical_dtype, is_datetimelike, ...
ATM in the `except NotImplementedError:` branch of `_cython_agg_blocks`, we take a difference approach to the operation. if that approach succeeds, we end up passing a DataFrame to `make_block` on L189, which will raise `ValueError`. As a result, we'll end up falling back to python-space for the entire operation, whi...
https://api.github.com/repos/pandas-dev/pandas/pulls/28275
2019-09-04T00:09:06Z
2019-09-16T21:04:22Z
null
2020-04-05T17:35:48Z
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
BUG: pd.to_datetime fixed (#28238)
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index b07647cf5b5fb..4f6f971d0f267 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -570,7 +570,7 @@ def to_datetime( unit=None, infer_datetime_format=False, origin="unix", - cache=True, + ...
- [ ] closes #28238 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Fix for KeyError when trying to convert a series with unsorted float index to a DateTime @AntonioAndraues @Vinigl
https://api.github.com/repos/pandas-dev/pandas/pulls/28265
2019-09-03T12:59:35Z
2019-09-07T17:48:56Z
null
2019-09-07T17:48:56Z
Contribute to issue #15580
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index 141d1708d882d..1d1accf52ec74 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -183,7 +183,7 @@ By default the group keys are sorted during the ``groupby`` operation. You may h .. ipython:...
- [ ] closes #15580 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I'm new at contributing on Pandas and any project at all, and saw this generic "fix docs" issue. I made some very small changes that i think it help...
https://api.github.com/repos/pandas-dev/pandas/pulls/28264
2019-09-03T12:29:47Z
2019-09-05T15:34:03Z
null
2019-09-05T15:34:03Z
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
PERF: data = np.nan to speed up empty dataframe creation
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 3d1a39a86c784..7893c0cd24a3e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -387,8 +387,12 @@ def _constructor_expanddim(self): # Constructors def __init__(self, data=None, index=None, columns=None, dtype=None, copy=False): + ...
- [x] closes #28188 - Short summary If we have enough information to know the shape of the final dataframe, we set the value of data to np.nan if not set. - Longer explanation If I understand correctly the `__init__` of DataFrame, with this change when the first if evaluates True then all following ifs eval...
https://api.github.com/repos/pandas-dev/pandas/pulls/28225
2019-08-29T20:57:08Z
2019-09-02T21:34:28Z
null
2023-01-08T20:06:27Z
TYPING: add index and columns attributes to DataFrame
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 3d1a39a86c784..bdf146256d18d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -15,7 +15,7 @@ import itertools import sys from textwrap import dedent -from typing import FrozenSet, List, Optional, Set, Tuple, Type, Union +from typing import...
diff for `mypy pandas --disallow-any-expr` ``` 2887,2888d2886 < pandas\io\formats\format.py:626: error: Expression has type "Any" < pandas\io\formats\format.py:651: error: Expression has type "Any" 2907,2909d2904 < pandas\io\formats\format.py:786: error: Expression has type "Any" < pandas\io\formats\format.py:...
https://api.github.com/repos/pandas-dev/pandas/pulls/28224
2019-08-29T19:54:52Z
2019-08-30T15:26:04Z
null
2019-08-30T15:26:04Z
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
0.24.x | MyPy for Python2 Compatability - Patch "misplaced type annotation"
diff --git a/pandas/core/arrays/sparse.py b/pandas/core/arrays/sparse.py index 6114e578dc90f..9be2c9af169e8 100644 --- a/pandas/core/arrays/sparse.py +++ b/pandas/core/arrays/sparse.py @@ -397,6 +397,7 @@ def _get_fill(arr): def _sparse_array_op(left, right, op, name): + # type: (SparseArray, SparseArray, Calla...
This PR fixes misplaced annotations error, after checking with **MyPy**. **What was fixed?** For Python 2 you need place mypy annotations `# type: ...` before docstrings.
https://api.github.com/repos/pandas-dev/pandas/pulls/28201
2019-08-28T19:05:31Z
2019-08-28T20:13:26Z
null
2019-08-28T20:13:26Z
Update frame.py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 3d1a39a86c784..74d29c80ee26a 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -239,8 +239,8 @@ >>> df1 = pd.DataFrame({'lkey': ['foo', 'bar', 'baz', 'foo'], ... 'value': [1, 2, 3, 5]}) ->>> df2 = pd.DataFrame({'rkey': ...
Instead of just having lists in the examples, other "Index or array-like" types should be use likes tuples especially if they are immutable. - [ ] 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/28200
2019-08-28T18:54:54Z
2019-08-28T19:19:36Z
null
2019-08-28T20:34:58Z
0.24.x
diff --git a/pandas/core/arrays/sparse.py b/pandas/core/arrays/sparse.py index 6114e578dc90f..c9fac1e3e3542 100644 --- a/pandas/core/arrays/sparse.py +++ b/pandas/core/arrays/sparse.py @@ -3,7 +3,6 @@ """ from __future__ import division -import numbers import operator import re import warnings @@ -397,6 +396,7 @...
- [ ] 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/28199
2019-08-28T18:35:04Z
2019-08-28T18:47:34Z
null
2019-08-28T18:47:34Z
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
TYPING: add skeleton stub for Timestamp
diff --git a/pandas/_libs/tslibs/timestamps.pyi b/pandas/_libs/tslibs/timestamps.pyi new file mode 100644 index 0000000000000..090d4091cbe00 --- /dev/null +++ b/pandas/_libs/tslibs/timestamps.pyi @@ -0,0 +1,109 @@ +# flake8: noqa + +from typing import Any + +class RoundTo: + @property + def MINUS_INFTY(self) -> i...
xref #28133 This PR adds just the skeleton so that the attributes, methods and arguments available are known. in this PR, the methods starting with an underscore have been omitted and the attributes typed with Any. This follows default stubgen output. https://mypy.readthedocs.io/en/latest/stubgen.html#automatic-s...
https://api.github.com/repos/pandas-dev/pandas/pulls/28195
2019-08-28T15:19:45Z
2019-08-30T15:21:59Z
null
2021-01-12T18:20:27Z
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
Astype keeps nan when converting into string
diff --git a/doc/source/getting_started/basics.rst b/doc/source/getting_started/basics.rst index f47fa48eb6202..9983de4e4d135 100644 --- a/doc/source/getting_started/basics.rst +++ b/doc/source/getting_started/basics.rst @@ -974,12 +974,14 @@ On a ``Series``, multiple functions return a ``Series``, indexed by the funct...
- closes #25353 - 1 test added - passes black pandas - whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/28176
2019-08-27T14:36:58Z
2020-05-08T16:40:48Z
null
2022-02-06T22:49:51Z
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
BUG: do not hard-code matplotlib backend for boxplot
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 2e6a401b49efc..2572650c7c52b 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -70,7 +70,7 @@ def hist_series( -------- matplotlib.axes.Axes.hist : Plot a histogram using matplotlib. """ - plot_backend = _get_...
https://api.github.com/repos/pandas-dev/pandas/pulls/28159
2019-08-26T22:54:54Z
2019-09-05T17:46:25Z
null
2019-09-05T17:46:25Z
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 io.formats
diff --git a/pandas/io/formats/console.py b/pandas/io/formats/console.py index 7f8f2fbea2352..757ca86855cbe 100644 --- a/pandas/io/formats/console.py +++ b/pandas/io/formats/console.py @@ -65,7 +65,8 @@ def check_main(): return not hasattr(main, "__file__") or get_option("mode.sim_interactive") try: - ...
xref #27568 ``` pandas\io\formats\console.py:68: error: Name '__IPYTHON__' is not defined pandas\io\formats\console.py:78: error: Name 'get_ipython' is not defined pandas\io\formats\csvs.py:230: error: Need type annotation for 'encoded_labels' pandas\io\formats\css.py:92: error: Incompatible types in assignment ...
https://api.github.com/repos/pandas-dev/pandas/pulls/28129
2019-08-24T20:51:32Z
2019-08-30T15:26:17Z
null
2019-08-30T15:26:17Z
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
Allow `fillna(value=None, method="constant")`
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index a895da6184eeb..a70e83274b4a8 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1813,8 +1813,6 @@ def fillna(self, value=None, method=None, limit=None): value, method, validate_s...
Sometimes data has object columns that contain both `NaN`s and `None` and we want to standardize them to `None`. Currently `fillna` doesn't allow `value=None` because `None` is used to mean "no value", and `method=None` to mean "fill with the value", so when both are none it's considered invalid. (On columns with dtype...
https://api.github.com/repos/pandas-dev/pandas/pulls/28124
2019-08-24T05:24:24Z
2019-09-13T01:40:18Z
null
2019-09-13T01:40:18Z
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: DataFrame.drop raising TypeError when passing empty DatetimeIndex/list
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index cd0714838a3f1..2e188ec5a9af5 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -184,7 +184,7 @@ Groupby/resample/rolling Reshaping ^^^^^^^^^ -- +- Bug in :meth:`DataFrame.drop` when passing empty :cl...
- [x] closes #27994 - [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/28114
2019-08-23T13:49:54Z
2019-12-17T17:50:19Z
null
2019-12-17T17:50:19Z
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 ![Screen Shot 2020-10-13 at 8 06 48 PM](https://user-images.githubusercontent.com/9269816/95898874-037e6980-0d90-11eb-85b3-e00fe36611b9.png)
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
Bug: merge_asof() cannot use datetime.timedelta as tolerance kwarg
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 63dd56f4a3793..86ae7b7169883 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -99,6 +99,7 @@ Reshaping - Bug in :meth:`DataFrame.crosstab` when ``margins`` set to ``True`` and ``normalize`` is not ...
- [x] Fixes issue #28098 - [x] tests added / passed [1/0] - [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/28100
2019-08-22T19:15:06Z
2019-08-27T22:07:51Z
null
2019-08-31T02:39:22Z
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
Repeat headings every n-th row in Jupyter-lab notebook
diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index 08dce6aca6e6d..61b944a389e52 100644 --- a/pandas/core/config_init.py +++ b/pandas/core/config_init.py @@ -343,6 +343,8 @@ def is_terminal(): ) cf.register_option("max_categories", 8, pc_max_categories_doc, validator=is_int) cf.reg...
- [ ] closes #27563 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Adds a new option in `pd.set_option()` method. Usage: ```python # n is an int that represents the interval of rows which the headers are repeat...
https://api.github.com/repos/pandas-dev/pandas/pulls/28091
2019-08-22T14:33:12Z
2019-08-26T14:39:47Z
null
2019-08-26T14:39:47Z
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